Commit Graph

393 Commits (f317e536c05517789860aac9ae37167a7eef4249)

Author SHA1 Message Date
Rongjian Lan 762b6ec219 Aggregate responses and create schnorr multi-sig 6 years ago
Rongjian Lan 4e2e26261a Leader verifies validator's signatures and collect responses by node id 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 7fe3daf0e3 Refactor into utility that generates a unique Id from Peer 6 years ago
Rongjian Lan 189f0e8bb1 Use map<nodeId, validatorPeer> instead of array; verify validator's signature in commit message processing 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 d0f51b3cbb Fix import path issue for schnorr package 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 f783dbb47b Refactor consensus and client's message.go file 6 years ago
Rongjian Lan 3d37dae7ca Refactor common folder into proto folder and rename common/message.go into proto/common.go 6 years ago
Rongjian Lan 6a408a2e97 Change COMMITTEE message category to CONSENSUS, which is more understandable 6 years ago
Minh Doan 7f3c717092 return consensus pointer instead a copy which contains mutex 6 years ago
Minh Doan 35dda18b4d add shard id in tps report 6 years ago
Rongjian Lan 605b1730d8 Pull logging util func into utils/metrics.go; add more comments for consensus 7 years ago
Rongjian Lan da45cdeef5 Fix the broadcast bug introduced by for loop deferencing to the last element (for loop variable is just a temp pointer to the element) 7 years ago
Minh Doan 91a4ef0dab add todo 7 years ago
Rongjian Lan c3f65d4402 Fix utxopool udpate bug for invalid cross shard tx (finally the consensus is stable with 30% cross shard tx); reset consensus before retry 7 years ago
Rongjian Lan 4efc1bfcfa Add client directory for client related codes; refactor message protocol files 7 years ago
Minh Doan 8e36f57fd5 fix typo 7 years ago
Rongjian Lan 1b3ceccf2d Synchronization bug fixes on consensus 7 years ago
Minh Doan 31f111ed5d polish code 7 years ago
Rongjian Lan 3b7edd4710 Add post-consensus processing of blockchain (add new block to blockchain) 7 years ago
Rongjian Lan de988ef76a Add block verification in validator node; link verification function from Node obj to Consensus obj 7 years ago
Minh Doan ca404d2d71 fix comments and add TODO 7 years ago
Richard Liu 5096238128 update logs 7 years ago
Richard Liu 91ea18228f added log package 7 years ago
Richard Liu 105e393169 minor fix 7 years ago
Rongjian Lan 6adafcb8c9 Fill in multisig mocks 7 years ago
Rongjian Lan 461b3fa3d1 Refactor message/message.go to common/message.go 7 years ago
Rongjian Lan d771fe7df9 Format existing code according to gofmt 7 years ago
Rongjian Lan c7d9c6843a Add shardId into consensus and rename ipList file into config file 7 years ago
Richard Liu a3663106d3 updated log functions 7 years ago
Rongjian Lan 79adb14279 create channel to send new block to consensus and consensus to signal readiness 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
Rongjian Lan 15f8bc607a Scaled consensus to 100 nodes。 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 0e66f7147f Add challenge broadcast; put consensus signature in map; refactor consensus init into consensus package 7 years ago
Rongjian Lan c0fd09be05 Refactor consensus code into leader part and validator part 7 years ago
Rongjian Lan 9d721891e8 Fix send_tnx to only send START_CONCENSUS to leader; Add consensus signature threshold counting 7 years ago
Rongjian Lan 2225441b17 Add p2p and consensus messaging protocol structure and utility; Add socket connection messaging reading utility; modify send_tnx to send message based on the new protocol 7 years ago
alok b6cff08f2a addressing RJ comments 2 7 years ago
alok 9c46cd45a9 addressing RJ comments 7 years ago
alok 8a2f82a540 Work In Progress 7 years ago
alok 0505d872d5 WIP 7 years ago