Dev Ojha
b1bc3e4f89
crypto/secp256k1: Fix signature malleability, adopt more efficient en… ( #2239 )
* crypto/secp256k1: Fix signature malleability, adopt more efficient encoding
This removes signature malleability per ADR 14, and makes secp match
the encoding in ADR 15.
* (squash this) add lock
6 years ago
Ethan Buchman
38b401657e
Cleanup up Multisig naming ( #2255 )
* crypto/multisig: Pubkey -> PubKey
* crypto/encoding/amino: use pkg vars for routes
* crypto/multisig/bitarray
* crypto/multisig: ThresholdMultiSignaturePubKey -> PubKeyMultisigThreshold
* crypto/encoding/amino: add PubKeyMultisig to table
* remove bA import alias
https://github.com/tendermint/tendermint/pull/2255#discussion_r211900709
6 years ago
ValarDragon
f903947ff3
crypto: Remove interface from crypto.Signature
Signatures are now []byte, which saves on the number of bytes after
amino encoding
(squash this) address Ismail's comment
6 years ago
ValarDragon
f3d519c966
crypto: Fix package imports from the refactor
6 years ago
ValarDragon
c798702764
crypto: Remove Ed25519 and Secp256k1 suffix on GenPrivKey
6 years ago
ValarDragon
99e582d79a
crypto: Refactor to move files out of the top level directory
Currently the top level directory contains basically all of the code
for the crypto package. This PR moves the crypto code into submodules
in a similar manner to what `golang/x/crypto` does. This improves code
organization.
Ref discussion: https://github.com/tendermint/tendermint/pull/1966
Closes #1956
6 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
6 years ago
Zach Ramsay
d02c5d1e30
detele everything
6 years ago
Liamsi
5a70fa6f35
fix typos
7 years ago
Ethan Frey
9016390a6e
Moved crypto code to top level again
8 years ago
Ethan Frey
17ed6d178d
move go-crypto files pre-keys merge
8 years ago
Ethan Buchman
8bb25ec5ed
update paths
8 years ago
Ethan Frey
c410fc5e24
Add extra test for encoding with sig,for p2p test fail
8 years ago
Jae Kwon
a3324cc97b
Cleanup; Implement .Wrap()
8 years ago
Ethan Frey
eb6fcef8d2
Better docs and naming thanks to bucky
8 years ago
Ethan Frey
5b94758d4c
Make PubKey struct compatible with go-wire.JSONBytes/ReadJSON
8 years ago
Ethan Frey
66ecd7705f
Use new naming scheme PubKey{PubKeyInner}
8 years ago
Ethan Frey
0e92dd5bb5
One name, type byte per algorithm
8 years ago
Ethan Frey
8c9b889ccf
Support json encode/decode for nil values in S structs
8 years ago
Ethan Frey
cbe35e07d1
Add more tests for de/en-coding public and private keys
8 years ago