Commit Graph

102 Commits (896c2b20f4476097845e0a556a0e3f266061bac5)

Author SHA1 Message Date
Richard Liu 7ad223816f update for github.com folder structure 6 years ago
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 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 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
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 d0f51b3cbb Fix import path issue for schnorr package 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 fcb194bbd7 Generate real challenge in the cosi challenge phase 6 years ago
Rongjian Lan 3eb5370c13 Implement the key aggregation for collective sig 6 years ago
Rongjian Lan 7e2634cdc0 Make leader aggregate real commitments 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 82b93a26d2 Fix consensus_test.go 6 years ago
Rongjian Lan 651af74bf0 Fix bad code from last refactoring 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
Richard Liu cbedf08a6c log mem usage. 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
Richard Liu 0a97d984be updated tps starttime location 6 years ago
Rongjian Lan 605b1730d8 Pull logging util func into utils/metrics.go; add more comments for consensus 6 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) 6 years ago
Richard Liu 1bacb1a8db added mem report 6 years ago
Richard Liu 3266c20077 added tps 6 years ago
Rongjian Lan d9ff51d534 Remove some legacy lines and fix some comments for consensus and blocks 6 years ago
Minh Doan 91a4ef0dab add todo 6 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 6 years ago
Minh Doan 39b9a36feb replace block hash by transaction hash 6 years ago
Rongjian Lan 4efc1bfcfa Add client directory for client related codes; refactor message protocol files 6 years ago
Rongjian Lan 9baa7c8503 Add lock on UTXO pool operations; fix validator catch up logic 6 years ago
Rongjian Lan 2ddd32882c Add ShardId into the revelant data structures: block, UTXO etc. 6 years ago
Rongjian Lan 60647c9833 clean up more logging and commented lines; make tx simulator wait more time for other nodes to be ready 6 years ago
Rongjian Lan 89f8f5bb38 Clean up the logs 6 years ago
Rongjian Lan 4a16c007e7 Fine tune consensus throughput locally: one shard / 300 nodes / 800 tps 6 years ago
Rongjian Lan 71d1a819a4 Correct code format, add numTxProcessed stats reporting 6 years ago
Rongjian Lan b9cd467460 Add consensus retry so the consensus process won't get stuck forever 6 years ago
Minh Doan 2a05aedbf5 polish code by gofmt 6 years ago