aboutsummaryrefslogtreecommitdiffstats
path: root/core/crypto
Commit message (Collapse)AuthorAgeFilesLines
* dkg: first part of change to BLS12_381 (#561)Sonic2019-04-111-1/+1
| | | | | * bin: polish install_dkg_dep script * dkg: change to use BLS12_381
* core, core: crypto: dkg: fix concurrent access bug (#551)Jimmy Hu2019-04-062-9/+30
| | | | | | * core: crypto: dkg: fix concurrent access bug * core: fix concurrent bug
* core/crypto/dkg: concurrent access for gpk (#548)Jimmy Hu2019-04-042-24/+113
| | | | | * core/crypto/dkg: add benchmark * core/crypto/dkg: concurrent access for gpk
* core: fix PrivateShares RLP decode/encode bug (#510)bojie2019-03-222-5/+62
|
* core: recover DKG master private shares (#487)bojie2019-03-132-0/+43
|
* dkg: no need to rlp encode/decode cache related data (#462)Sonic2019-03-051-44/+6
| | | | | | * dkg: no need to rlp encode/decode cache related data * fixup! dkg: no need to rlp encode/decode cache related data
* misc: Add gosec to check security issues (#424)Jimmy Hu2019-01-182-3/+12
| | | | | | | | * Add gosec to tools * Run security check to ci * Fix secrity issues
* core: cache dkg's private key in db (#371)Mission Liao2018-12-161-0/+21
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-029-56/+56
|
* Change BLS to dexon-foundation (#245)Jimmy Hu2018-10-234-4/+4
|
* core: add equality checker for dkg related structure (#237)Mission Liao2018-10-232-26/+155
| | | | | | | | | Besides adding equality, also renaming those fields. - PublicKeyShares.shares -> shareCaches - PublicKeyShares.shareIndex -> shareCacheIndex - rlpPublicKeyShares.Shares -> ShareCaches - rlpPublicKeyShares.ShareIndexK -> ShareCacheIndexK - rlpPublicKeyShares.ShareIndexV -> ShareCahceIndexV
* core: Handling self proposed DKG private share (#236)Jimmy Hu2018-10-221-5/+5
|
* crypto: dkg: implement rlp.Encoder, rlp.Decoder for PrivateKey (#235)Sonic2018-10-202-0/+26
|
* core: types: implement rlp.Encoder and rlp.Decoder (#232)Sonic2018-10-202-3/+120
| | | | | * core: types: implement rlp.Encoder and rlp.Decoder * crypto: dkg: fix PublicKey.Bytes
* crypto: ecdsa: make NodeID match dexon address (#229)Sonic2018-10-192-50/+31
| | | | | | | * Remove publicKey struct * PublicKey.Bytes() return uncompressed public key to match the address format of dexon (Keccak256(pubBytes[1:])[12:], where pubBytes is 65 bytes uncompressed public key.). * Rename ethcrypto to dexCrypto
* core: crypto: ecdsa: add method to create PrivateKey from ecdsa.PrivateKey ↵Wei-Ning Huang2018-10-131-0/+9
| | | | (#195)
* core: hide types.NodeID from full node. (#147)Mission Liao2018-09-281-0/+6
| | | | | | | | | * Refine core.Governance interface - Remove types.NodeID from interface declaration. - All parameter should be round based. * Add core.NodeSetCache * Agreement accepts map of nodeID directly. * test.Transport.Peers method return public keys.
* core: rename crypto/eth to crypto/ecdsa (#144)Wei-Ning Huang2018-09-262-3/+3
|
* core: use dexon-foundation/dexon instead of ethereum/go-ethereum (#143)Wei-Ning Huang2018-09-262-2/+2
|
* crypto: sigtopub to crypto package. remove SigToPubFn (#141)Jimmy Hu2018-09-266-18/+77
|
* core: move crypto to core/crypto (#140)Mission Liao2018-09-269-0/+1288
- 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