├── README.md ├── dpos ├── README.md └── main.go ├── pbft ├── README.md ├── client.go ├── cmd.go ├── images │ ├── 关闭两个节点.png │ ├── 启动.png │ ├── 启动后.png │ ├── 掉了一个节点后.png │ └── 流程图.webp ├── main.go ├── pbft.go ├── rsa.go └── tcp.go ├── pos ├── README.md └── main.go ├── pow ├── README.md └── main.go └── raft ├── README.md ├── http.go ├── images ├── 开启端口.png ├── 打印消息.png ├── 残缺打印.png ├── 消息同步.png ├── 选举成功.png ├── 重启B.png └── 领导者节点宕机.png ├── main.go ├── raft.go └── rpc.go /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/README.md -------------------------------------------------------------------------------- /dpos/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/dpos/README.md -------------------------------------------------------------------------------- /dpos/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/dpos/main.go -------------------------------------------------------------------------------- /pbft/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/README.md -------------------------------------------------------------------------------- /pbft/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/client.go -------------------------------------------------------------------------------- /pbft/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/cmd.go -------------------------------------------------------------------------------- /pbft/images/关闭两个节点.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/images/关闭两个节点.png -------------------------------------------------------------------------------- /pbft/images/启动.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/images/启动.png -------------------------------------------------------------------------------- /pbft/images/启动后.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/images/启动后.png -------------------------------------------------------------------------------- /pbft/images/掉了一个节点后.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/images/掉了一个节点后.png -------------------------------------------------------------------------------- /pbft/images/流程图.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/images/流程图.webp -------------------------------------------------------------------------------- /pbft/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/main.go -------------------------------------------------------------------------------- /pbft/pbft.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/pbft.go -------------------------------------------------------------------------------- /pbft/rsa.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/rsa.go -------------------------------------------------------------------------------- /pbft/tcp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pbft/tcp.go -------------------------------------------------------------------------------- /pos/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pos/README.md -------------------------------------------------------------------------------- /pos/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pos/main.go -------------------------------------------------------------------------------- /pow/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pow/README.md -------------------------------------------------------------------------------- /pow/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/pow/main.go -------------------------------------------------------------------------------- /raft/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/README.md -------------------------------------------------------------------------------- /raft/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/http.go -------------------------------------------------------------------------------- /raft/images/开启端口.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/images/开启端口.png -------------------------------------------------------------------------------- /raft/images/打印消息.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/images/打印消息.png -------------------------------------------------------------------------------- /raft/images/残缺打印.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/images/残缺打印.png -------------------------------------------------------------------------------- /raft/images/消息同步.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/images/消息同步.png -------------------------------------------------------------------------------- /raft/images/选举成功.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/images/选举成功.png -------------------------------------------------------------------------------- /raft/images/重启B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/images/重启B.png -------------------------------------------------------------------------------- /raft/images/领导者节点宕机.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/images/领导者节点宕机.png -------------------------------------------------------------------------------- /raft/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/main.go -------------------------------------------------------------------------------- /raft/raft.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/raft.go -------------------------------------------------------------------------------- /raft/rpc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/corgi-kx/blockchain_consensus_algorithm/HEAD/raft/rpc.go --------------------------------------------------------------------------------