aboutsummaryrefslogtreecommitdiffstats
path: root/core/dkg-tsig-protocol_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: Add DKGSuccess (#569)Jimmy Hu2019-04-151-0/+21
| | | | | | * core: Add DKGSuccess * core: reset if not enough of dkg success
* core/crypto/dkg: concurrent access for gpk (#548)Jimmy Hu2019-04-041-5/+5
| | | | | * core/crypto/dkg: add benchmark * core/crypto/dkg: concurrent access for gpk
* core: add benchmarkJimmy Hu2019-04-031-8/+50
|
* core: fix disqualified (#544)Jimmy Hu2019-04-021-1/+1
| | | | | | * core: fix disqualified * fix test
* core: abort hang DKG (#508)Mission Liao2019-03-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * Capitalize log * Fix DKG aborting hangs Make sure reset cc.dkg to nil in runDKG * Remember to purge tsig verfier too * Replace abortCh with context.Context * Fix obvious bug * Fixup: forever blockin at Wait method when runDKG is not called * Fixup: fix corner case If the Add(1) moved to runDKG under cc.dkgLock, we may not catch it after unlocking cc.dkgLock. * fixup
* core: remove round from addDKG fuction (#501)Jimmy Hu2019-03-191-17/+17
|
* dkg: add reset field (#492)Mission Liao2019-03-171-44/+108
| | | | | | | | | | | | | | | | | | | | | | | | * Add Reset fields to DKG types * Fix crypto part after adding Reset field * Prohibit DKG messages with different resetCount * Add TODO * Add reset parameter to dkgProtocol constructor * Add TODO * Fix inconsist hash to prepare CRS * Add reset parameter when runnning DKG * Fix test for utils.RoundEvent * Add dummy test to prohibit DKG messages with unexpected reset count * Fix test.App
* core: split GroupPublicKey and NodePublicKeys (#484)Jimmy Hu2019-03-121-4/+95
| | | | | | | | * core: add benchmark * core: split NPKs and GPK * Add benchmark
* core: move some dkg utils (#476)Mission Liao2019-03-111-28/+28
| | | | | | * Move core.getDKGThreshold to core.utils.GetDKGThreshold * Move core.DKGGroupPublicKey to typesDKG.GroupPublicKey
* core: check if self's privateShare match MPK registered (#474)Jimmy Hu2019-03-101-0/+136
| | | | | | * core: check if self's privateShare match MPK registered * add test
* core: first few round will not have DKG (#455)Jimmy Hu2019-03-041-9/+9
| | | | | | | | | | | | | | * core: Add DKGDelayRound constant * core: use constant value * core, utils: set DKGDelayRound for utils. * test: add dkgDelayRound to state * core: do not run dkg and crs for round < DKGDelayRound * fix test
* core: polish dkg for recovery (#443)Jimmy Hu2019-02-131-0/+6
| | | | | | | | * core: Add an error to NewGroupPublicKey * core: Add Delete to TSigVerifierCache * remove duplicated check
* utils: move authenticator to utils package (#378)Mission Liao2018-12-221-23/+22
|
* core: Add a `MPKReady` so `MasterPublicKey` cannot be added afterwards (#375)Jimmy Hu2018-12-191-0/+29
| | | | | | | | | | | | | | | | * Add type DKGReady * Add DKGReady to interface and state * DKG will wait for MPK to be ready before running * Modify test * Check if self's MPK is registered * Add test for delay add MPK * Rename Ready to MPKReady
* core: Fix a bug of DKGNackComplaints (#370)Jimmy Hu2018-12-141-0/+42
| | | | | | * core: Fix a bug if DKGNackComplaint is added after required time. * Duplicated NackComplaint should be only count once.
* test: allow to log in test.State (#359)Mission Liao2018-12-061-8/+16
|
* core: expose implicit round shift (#321)Mission Liao2018-11-131-8/+8
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-12/+12
|
* core: Move dkg in types to types/dkg. (#253)Jimmy Hu2018-10-251-28/+29
|
* test: add test.State (#239)Mission Liao2018-10-241-8/+25
| | | | | | | | | * separate test utility and interface implementation for test.Governance. * add test.State. * integrate test.State to test.Governance. test.State is mainly used to emulate state propagation on fullnode.
* core: sync compaction chain (#222)Jimmy Hu2018-10-181-0/+61
|
* core: Change DKG threshold (#204)Jimmy Hu2018-10-151-2/+2
|
* core: Add round to DKG methods in gov. Change network interface name (#185)Jimmy Hu2018-10-091-8/+8
|
* core: Add DKG final message. (#181)Jimmy Hu2018-10-091-0/+19
|
* core: General tsig (#177)Jimmy Hu2018-10-051-6/+6
|
* core: export some crypto verification function (#166)Wei-Ning Huang2018-10-031-1/+1
| | | | | verifyDKGMasterPublicKeySignature and verifyDKGComplaintSignature are needed in the governance contract to verify the signature. Export than so fullnode can use it.
* core: Export DKGGroupPublicKey and its verify function (#160)Jimmy Hu2018-10-021-7/+7
|
* test: Non-qualified node are accepted in test. (#154)Jimmy Hu2018-10-011-1/+1
|
* core: rename crypto/eth to crypto/ecdsa (#144)Wei-Ning Huang2018-09-261-2/+2
|
* crypto: sigtopub to crypto package. remove SigToPubFn (#141)Jimmy Hu2018-09-261-8/+7
|
* core: move crypto to core/crypto (#140)Mission Liao2018-09-261-3/+3
| | | | | | | | | - Move key-holder to authenticator Make core.keyHolder public as core.Authenticator, it is not required to make this part an interface. - Make private when there is no need to go public. - Fix data race
* core: run TSIG for first configuration block at startup (#135)Jimmy Hu2018-09-261-8/+17
|
* core: Fix random test failure (#131)Jimmy Hu2018-09-251-1/+1
|
* core: run first DKG at startup. (#129)Jimmy Hu2018-09-231-10/+23
|
* core: add anti-complaint and nack-complaint to dkg protocol (#123)Jimmy Hu2018-09-211-14/+177
|
* Rename validator* to node* (#120)Mission Liao2018-09-201-58/+58
|
* core: Add dkg test (#119)Jimmy Hu2018-09-191-0/+194
|
* core: Nack Complaint (#116)Jimmy Hu2018-09-191-11/+63
|
* core:DKG and TSIG protocol (#115)Jimmy Hu2018-09-191-0/+191