Commit Graph

103 Commits (8267607b169d874b4db82b685f9e0ed374ecfa3c)

Author SHA1 Message Date
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
Rongjian Lan 86093d6ffc Add real public and private key into Peer object; initialize schnorr multi-signature bitmap in the consensus 6 years ago
Rongjian Lan 3ceab2168d Create the secret and real commitment message for validator commit 6 years ago
Rongjian Lan 651af74bf0 Fix bad code from last refactoring 6 years ago
Minh Doan 9266fdc264 make sure attack_enabled default to false so that tnx client wont get attacked. also add more attack in validator 6 years ago
Minh Doan e7e5792d41 add incorrect response attack 6 years ago
Minh Doan 283ef0b3da enable attack timeout and killing itself 6 years ago
Rongjian Lan 605b1730d8 Pull logging util func into utils/metrics.go; add more comments for consensus 6 years ago
Minh Doan 39b9a36feb replace block hash by transaction hash 7 years ago
Rongjian Lan 9baa7c8503 Add lock on UTXO pool operations; fix validator catch up logic 7 years ago
Rongjian Lan 60647c9833 clean up more logging and commented lines; make tx simulator wait more time for other nodes to be ready 7 years ago
Rongjian Lan 89f8f5bb38 Clean up the logs 7 years ago
Minh Doan 2a05aedbf5 polish code by gofmt 7 years ago
Rongjian Lan 1b3ceccf2d Synchronization bug fixes on consensus 7 years ago
Rongjian Lan 3b7edd4710 Add post-consensus processing of blockchain (add new block to blockchain) 7 years ago
Rongjian Lan 3f9bdde12e Implement block verifier for verifying new block 7 years ago
Rongjian Lan de988ef76a Add block verification in validator node; link verification function from Node obj to Consensus obj 7 years ago
Rongjian Lan d5214f3b3d Add logic to select transactions from pendingTxs using UTXO pool 7 years ago
Richard Liu 5096238128 update logs 7 years ago
Richard Liu 91ea18228f added log package 7 years ago
Rongjian Lan 6adafcb8c9 Fill in multisig mocks 7 years ago
Rongjian Lan c66f7be673 Fix log formating 7 years ago
Rongjian Lan 0498d87059 Add consensus view Id and checks 7 years ago
Richard Liu a3663106d3 updated log functions 7 years ago
Richard Liu 7bd78e56a2 temp fix for enabling travis 7 years ago
Rongjian Lan 0b4d06ce5e add message dir; add msgCategory, msgType in messaging protocol; add node struct as the entry point for messages 7 years ago
Rongjian Lan 9dc0f9c66d Fill in consensus message structure and send realistic consensus message instead of dummy string 7 years ago
Minh Doan 32d1f71ac1 fix import 7 years ago
Rongjian Lan 403508f2d1 Two-round consensus finished; change logging to use log package everywhere; limit the visibility of Consensus struct fields 7 years ago
Rongjian Lan c0fd09be05 Refactor consensus code into leader part and validator part 7 years ago