摘要: 根据论文《Practical Byzantine Fault Tolerance and Proactive Recovery》整理 Practical byzantine fault tolerance and proactive recovery M.Castro and B.Liskov. 2 阅读全文
posted @ 2018-07-02 22:32 gexin1023 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: Paxos共识算法 paxos是一族用来解决分布式系统共识的基础算法,共识过程就是在一组节点上达成一个一致的结果。由于节点可能会错误,通讯消息也可能会丢失,所以建立共识是一个比较复杂的过程。 paxos算法的假定 Processors(可理解为节点) + Processor以任意速度运行 + Pro 阅读全文
posted @ 2018-06-28 14:04 gexin1023 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 6. Zigzag convertion 对输入的字符串做锯齿形变换,并输出新的字符串,所谓zigzag变化如下图所示。 将"ABCDEFGHIJKL"做4行的锯齿变换,新的字符串为:AGBFHLCEIKDJ" 实现一个根据输入字符串s与行数numRows的函数。 思路: 根据输入的行数创建一个字符 阅读全文
posted @ 2018-06-28 09:10 gexin1023 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 3. Find the longest substring without repeating characters Given a string, find the length of the longest substring without repeating characters. 给一个字 阅读全文
posted @ 2018-06-27 17:35 gexin1023 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Hyperledger Fabric中的Identity 什么是Identity 区块链网络中存在如下的角色:peers, orderers, client application, administrators等等。每一个这样的角色都有一个身份标识(Identity),该身份标识是通过X.509 阅读全文
posted @ 2018-06-26 22:47 gexin1023 阅读(792) 评论(0) 推荐(0) 编辑
摘要: 2. Add_Two_Number 用两个非空链表分别表示两个非负整数,链表的节点表示数字的位,链表头表示数字的低位,链表尾表示数字高位。求两个链表所表示数字的和。 比如: Input: (2 4 3) + (5 6 4) Output: 7 0 8 Explanation: 342 + 465 = 阅读全文
posted @ 2018-06-26 18:00 gexin1023 阅读(142) 评论(0) 推荐(0) 编辑
摘要: PKI(Public Key Infrastucture)介绍 根据Wikipedia PKI词条整理。 PKI(Public Key Infrastucture)是一系列的规则、策略以及过程,可以用来创建、管理、分发、使用、存储、移除数字证书以及管理公钥加密。PKI是用来实现信息的安全传输,在包括 阅读全文
posted @ 2018-06-26 08:32 gexin1023 阅读(848) 评论(0) 推荐(0) 编辑
摘要: Hyperledger Consensus 共识过程 Hyperlydger中建立共识的过程由以下两个独立的过程构成: + Ordering of transactions (交易排序) + Validating Transactions(交易验证) 逻辑上将这个两个过程分离可以保证Hyperled 阅读全文
posted @ 2018-06-20 17:58 gexin1023 阅读(4806) 评论(0) 推荐(0) 编辑
摘要: 1. Two Sum + 输入:一个整数数组nums[],一个整数target + 返回:数组中找出2个数,使其和为target,并返回两个数在数列中的索引。 比如: Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] 阅读全文
posted @ 2018-06-18 22:45 gexin1023 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Hyperledger_Fabric_Model 本部分描述了Hyperledger Fabric的主要设计特点 + Assets: 资产定义使得任何东西都可以通过货币值在网络中交易,从食物到老爷车再到期货。 + Chaincode: 由以下几部分构成的执行部分,包括交易排序,限制信任等级,验证节点 阅读全文
posted @ 2018-06-17 23:11 gexin1023 阅读(151) 评论(0) 推荐(0) 编辑