Commit Graph

79 Commits (a6d7c050db82195b988a6840659c64d5e0777689)

Author SHA1 Message Date
Rongjian Lan 38a011f42f Remove proto/consensus and migrate consensus message types fully to gRpc 6 years ago
Minh Doan 15020e14af move attack under internal 6 years ago
Rongjian Lan 4578cc6331 move consensus/proto to api/consensus; change refernece package name to consensus_proto 6 years ago
Rongjian Lan 80e05b8837 Migrate consensus message to grpc proto 6 years ago
Rongjian Lan a73a9a9f09 Remove UTXO model 6 years ago
Rongjian Lan da48957bea Add message length check to prevent index out of bound issue 6 years ago
Rongjian Lan a581053084 Remove consensus ID check for stability of devnet 6 years ago
Richard Liu 64230da6ee abstract out 2 versions of p2p 6 years ago
Leo Chen 449d015c07 HAR-65: add more debug message in consensus 6 years ago
Minh Doan 15fddd608f fix dependencies 6 years ago
Richard Liu ba47c85faf ip+port => peer; update signature of consensus.New and node.New as preparation for p2p 6 years ago
Leo Chen 91f804eb13 [HAR-5] Leader populates public keys to all validators 6 years ago
Rongjian Lan 48c0d684f9 Merge conflict 6 years ago
Rongjian Lan 0c0dfd8462 integrate account model into consensus without the block verification part 6 years ago
Rongjian Lan 9fbfee9907 integrate account model into consensus without the block verification part 6 years ago
Leo Chen 2a602db9b0 fix the build after rename the repo to harmony-one 6 years ago
Leo Chen e8b6a45fe0 log size of messages in log file 6 years ago
Minh Doan 0e34dcf448 fix a lot of basic mistakes. See https://docs.google.com/document/d/1eIuVFnRra8Ggnj5zSTcGLn9iXGwHEdOHGC6-gHvvuGc 6 years ago
Minh Doan 29b3281d4a fix lint, now 138 left 6 years ago
Minh Doan ef2521e068 refactor: changing constant from ALLCAPS to format of gofmt 6 years ago
Minh Doan 04f6435ebf fix comment and fix lint 6 years ago
Minh Doan c7908e8821 change myLeaderId to myLeaderID 6 years ago
Minh Doan bae896c944 fix comments and fix ALL_CAPS lint 6 years ago
Rongjian Lan 279fbc4b0d Remove accidentally introduced debug log 6 years ago
Rongjian Lan d997b4271f Lower the threshold from 1/1 to 2/3 6 years ago
Rongjian Lan f6963f44af Add more log for aws debugging 6 years ago
Minh Doan 428387f34a clean up 6 years ago
Rongjian Lan c9a54e1784 Add more logs for aws debugging 6 years ago
Minh Doan 93a7f92136 add more wires for syncing. add flag node_sync to assume the new node will start with sync first. also fix some code of identitychain which make some copies of struct containing Mutex 6 years ago
Rongjian Lan 94db55e780 Add final challenge and final response round which finish the commit phase of PBFT 6 years ago
Rongjian Lan ab091e9881 Add final commit and final challenge messaging process and temporarily disable block wrap-up process 6 years ago
Rongjian Lan 0e5e4dce1f Bring back the 2/3f+1 threshold for multi-sig and add basic response check 6 years ago
Rongjian Lan 09676aafb9 Add collective signature verification and temporarily bump the sig threshold to every nodes 6 years ago
Rongjian Lan 88ee34821c Clean up consensus handler's switch clause 6 years ago
Rongjian Lan c519f495ca Refactor constructResponseMessage to support final response 6 years ago
Rongjian Lan 8dc7448e82 Refactor constructChallengeMessage to support final challenge 6 years ago
Rongjian Lan 25c99ea3a4 Refactor constructCommitMessage func so it can be used for final commit too 6 years ago
Rongjian Lan 7007f9d769 Refactor consensus leader/validator code into handler specific and message specific ones 6 years ago
Richard Liu 7ad223816f update for github.com folder structure 6 years ago
Rongjian Lan da7959f9e3 Clear the unused variables 6 years ago
Rongjian Lan 491078febb Verify challenge based on aggregated commitments and public keys 6 years ago
Rongjian Lan 8782c71697 Generate real response in validator node; correct the commitment threshold as now leader is also part of the bft 6 years ago
Rongjian Lan c56930921b Check signature for challenge message and reorder the sig-checking clause after lighter checks 6 years ago
Rongjian Lan 189f0e8bb1 Use map<nodeId, validatorPeer> instead of array; verify validator's signature in commit message processing 6 years ago
Richard Liu 94a9a52cab clean code; fix build break. 6 years ago
Rongjian Lan a28c7898e5 Check the leader's signature when receiving announcement; assign deterministic private key to each node based on their ip and port 6 years ago
Rongjian Lan 9a691a3963 Remove the unnecessary field for length to sign in Announcement message 6 years ago
Rongjian Lan fe645f16d4 Use schnorr signature for signing the messages 6 years ago
Rongjian Lan b32dfa211b Rename Curve to Ed25519Curve for clarity 6 years ago
Rongjian Lan c03c08d4d9 Implement the crypto commitment for phase-announce and phase-commit in cosi 6 years ago