cosmos-sdk/codec
Marie 320a852ee2
PubKey proto types (#7147)
* WIP on protobuf keys

* Use Type() and Bytes() in sr25519 pub key Equals

* Add tests

* Add few more tests

* Update other pub/priv key types Equals

* Fix PrivKey's Sign method

* Rename variables in tests

* Fix infinite recursive calls

* Use tm ed25519 keys

* Add Sign and VerifySignature tests

* Remove ed25519 and sr25519 references

* proto linting

* Add proto crypto file

* Implement some of the new multisig proto type methods

* Add tests for MultisigThresholdPubKey

* Add tests for pubkey pb/amino conversion functions

* Move crypto types.go and register new proto pubkeys

* Add missing pointer ref

* Address review comments

* panic in MultisigThresholdPubKey VerifySignature

* Use internal crypto.PubKey in multisig

* Add tests for MultisigThresholdPubKey VerifyMultisignature

* Only keep LegacyAminoMultisigThresholdPubKey and move to proto keys to v1

* Remove conversion functions and introduce internal PubKey type

* Remove old secp256k1 PubKey and PrivKey

* Uncomment test case

* Fix linting issues

* More linting

* Revert tests keys values

* Add Amino overrides to proto keys

* Add pubkey test

* Fix tests

* Use threshold isntead of K

* Standardize Type

* Revert standardize types commit

* Add comment

* Simplify proto names

* Add comment about multisig codec

Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-09-16 11:08:55 +00:00
..
legacy rename RegisterCodec to RegisterLegacyAminoCodec (#7243) 2020-09-07 14:47:12 +00:00
types Migrate {x/auth, x/gov, x/staking} missing CLI queries to proto (#6994) 2020-09-10 18:26:47 +00:00
unknownproto Remove duplicate tests in unknownproto (#7231) 2020-09-03 17:11:13 +00:00
amino.go Merge PR #7251: Cleanup of evidence types 2020-09-08 09:33:53 -07:00
amino_codec.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00
amino_codec_test.go rename RegisterCodec to RegisterLegacyAminoCodec (#7243) 2020-09-07 14:47:12 +00:00
any.go Start removing HybridCodec (init + auth, bank, distribution) (#6838) 2020-07-24 19:04:29 +00:00
any_test.go x/auth/ante: Migrate tests to use the new client.TxConfig (#6661) 2020-07-20 08:30:12 -04:00
codec.go PubKey proto types (#7147) 2020-09-16 11:08:55 +00:00
json.go Enable proto JSON generally and remove HybridCodec (#6859) 2020-08-13 13:20:02 +00:00
proto_codec.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00
proto_codec_test.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00