├── .idea ├── blockchain_consensus_algorithm-master.iml ├── modules.xml └── workspace.xml ├── README.md ├── dpos ├── README.md └── main.go ├── pbft ├── Keys │ ├── N0 │ │ ├── N0_RSA_PIV │ │ └── N0_RSA_PUB │ ├── N1 │ │ ├── N1_RSA_PIV │ │ └── N1_RSA_PUB │ ├── N2 │ │ ├── N2_RSA_PIV │ │ └── N2_RSA_PUB │ ├── N3 │ │ ├── N3_RSA_PIV │ │ └── N3_RSA_PUB │ └── N4 │ │ ├── N4_RSA_PIV │ │ └── N4_RSA_PUB ├── README.md ├── client.go ├── cmd.go ├── images │ ├── 关闭两个节点.png │ ├── 启动.png │ ├── 启动后.png │ ├── 掉了一个节点后.png │ └── 流程图.webp ├── main.go ├── pbft.exe ├── 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.exe ├── raft.go └── rpc.go /.idea/blockchain_consensus_algorithm-master.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/.idea/blockchain_consensus_algorithm-master.iml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/.idea/workspace.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/README.md -------------------------------------------------------------------------------- /dpos/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/dpos/README.md -------------------------------------------------------------------------------- /dpos/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/dpos/main.go -------------------------------------------------------------------------------- /pbft/Keys/N0/N0_RSA_PIV: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N0/N0_RSA_PIV -------------------------------------------------------------------------------- /pbft/Keys/N0/N0_RSA_PUB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N0/N0_RSA_PUB -------------------------------------------------------------------------------- /pbft/Keys/N1/N1_RSA_PIV: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N1/N1_RSA_PIV -------------------------------------------------------------------------------- /pbft/Keys/N1/N1_RSA_PUB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N1/N1_RSA_PUB -------------------------------------------------------------------------------- /pbft/Keys/N2/N2_RSA_PIV: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N2/N2_RSA_PIV -------------------------------------------------------------------------------- /pbft/Keys/N2/N2_RSA_PUB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N2/N2_RSA_PUB -------------------------------------------------------------------------------- /pbft/Keys/N3/N3_RSA_PIV: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N3/N3_RSA_PIV -------------------------------------------------------------------------------- /pbft/Keys/N3/N3_RSA_PUB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N3/N3_RSA_PUB -------------------------------------------------------------------------------- /pbft/Keys/N4/N4_RSA_PIV: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N4/N4_RSA_PIV -------------------------------------------------------------------------------- /pbft/Keys/N4/N4_RSA_PUB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/Keys/N4/N4_RSA_PUB -------------------------------------------------------------------------------- /pbft/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/README.md -------------------------------------------------------------------------------- /pbft/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/client.go -------------------------------------------------------------------------------- /pbft/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/cmd.go -------------------------------------------------------------------------------- /pbft/images/关闭两个节点.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/images/关闭两个节点.png -------------------------------------------------------------------------------- /pbft/images/启动.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/images/启动.png -------------------------------------------------------------------------------- /pbft/images/启动后.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/images/启动后.png -------------------------------------------------------------------------------- /pbft/images/掉了一个节点后.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/images/掉了一个节点后.png -------------------------------------------------------------------------------- /pbft/images/流程图.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/images/流程图.webp -------------------------------------------------------------------------------- /pbft/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/main.go -------------------------------------------------------------------------------- /pbft/pbft.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/pbft.exe -------------------------------------------------------------------------------- /pbft/pbft.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/pbft.go -------------------------------------------------------------------------------- /pbft/rsa.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/rsa.go -------------------------------------------------------------------------------- /pbft/tcp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pbft/tcp.go -------------------------------------------------------------------------------- /pos/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pos/README.md -------------------------------------------------------------------------------- /pos/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pos/main.go -------------------------------------------------------------------------------- /pow/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pow/README.md -------------------------------------------------------------------------------- /pow/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/pow/main.go -------------------------------------------------------------------------------- /raft/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/README.md -------------------------------------------------------------------------------- /raft/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/http.go -------------------------------------------------------------------------------- /raft/images/开启端口.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/images/开启端口.png -------------------------------------------------------------------------------- /raft/images/打印消息.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/images/打印消息.png -------------------------------------------------------------------------------- /raft/images/残缺打印.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/images/残缺打印.png -------------------------------------------------------------------------------- /raft/images/消息同步.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/images/消息同步.png -------------------------------------------------------------------------------- /raft/images/选举成功.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/images/选举成功.png -------------------------------------------------------------------------------- /raft/images/重启B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/images/重启B.png -------------------------------------------------------------------------------- /raft/images/领导者节点宕机.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/images/领导者节点宕机.png -------------------------------------------------------------------------------- /raft/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/main.go -------------------------------------------------------------------------------- /raft/raft.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/raft.exe -------------------------------------------------------------------------------- /raft/raft.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/raft.go -------------------------------------------------------------------------------- /raft/rpc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/night-scholar/Consensus-algorithm/HEAD/raft/rpc.go --------------------------------------------------------------------------------