cosmos-sdk/proto/cosmos
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
..
auth/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
bank/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
base Remove UNINITIALIZED usage from connection and channel (#7297) 2020-09-14 21:41:23 +00:00
capability/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
crisis/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
crypto PubKey proto types (#7147) 2020-09-16 11:08:55 +00:00
distribution/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
evidence/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
genutil/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
gov/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
mint/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
params/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
slashing/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
staking/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
tx Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
upgrade/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00
vesting/v1beta1 Add proto formatting tool (#7266) 2020-09-08 22:06:54 +00:00