Robert Zaremba
|
c66f1f7efe
|
crypto: add secp256r1 (#8559)
* Optimize secp256k1 hashing
* Add ADR-028 related functions
* Update ed25519
* fix errors/handle
* fix build
* fix build
* Add tests and update function names
* wip
* Use LengthPrefix for composed addresses
* add tests for NewComposed
* add module hash function
* fix append
* rollback ed25519 ADR-28 update
* rollback ed25519 ADR-28 test
* Adding Module tests and convert tests to test suite
* convert store_key_test.go to test suite
* rollback test check comment
* any.pb.go update
* generated proto files
* wip
* renames
* wip2
* add String method to PBBytes
* wip3
* add pubkey tests
* adding cryptotypes.PrivKey methods
* re-enable test
* fix equals test
* fix ecdsa object receiver
* add ProtoMarshaler implementation and tests
* move code to init and add interface registry
* add bytes tests
* merge Unmarshal with UnmarshalAmino
* implement ProtoMarshaler to ecdsaSK
* remove bytes.go
* add private key marshaling tests
* break tests into 2 suites
* add signature tests
* remove TODO
* remove bytes.proto
* adding changelog
* Update CHANGELOG.md
* Update crypto/keys/ecdsa/ecdsa_privkey.go
* Update crypto/keys/ecdsa/ecdsa_pubkey.go
* comments: add dot (.) at the end
* update comments
* update commented code
* rename files
* remove Amino methods
* use 2 spaces in protocgen.sh
* rollback changes in protocgen.sh
* add MessageName
* rework ecdsa proto structure
* move ecdsa to internal package
* add secp256r1 proto
* refactore proto definition for secp256r1
* fix err check
* update comments
* create const for fieldSize+1
* simplify the PubKey.String test
* Apply suggestions from code review
Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
* Update doc comments: SDK Interface -> sdk.Interface
* rename init.go to doc.go
* Add PubKey.Type() test
* Revert "Update doc comments: SDK Interface -> sdk.Interface"
This reverts commit 01f2b4f5efcd79a452483bcda152db54a8fbfee2.
* Use cryptotypes.Address instead of tmcrypto
* Revert "Use cryptotypes.Address instead of tmcrypto"
This reverts commit 15b866ae67bdb7ca4872f4089fcab19f9e2e3608.
This issue will be solved in https://github.com/cosmos/cosmos-sdk/issues/8775
* add link to ANSI X9.62
* move init.go -> doc.go
* use proto.MessageName()
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
|
2021-03-04 12:29:48 +00:00 |