proto: reorganize Protobuf schemas (#5102)

Reorganizes the Protobuf schemas. It is mostly bikeshedding, so if something is contentious or causes a lot of extra work then I'm fine with reverting. Some Protobuf and Go import paths will change.

* Move `abci/types/types.proto` to `abci/types.proto`.

* Move `crypto/keys/types.proto` and `crypto/merkle/types.proto` to `crypto/keys.proto` and `crypto/proof.proto`.

* Drop the use of `msgs` in filenames, as "message" is a very overloaded term (all Protobuf types are messages, and we also have `message Message`). Use `types.proto` as a catch-all, and otherwise name files by conceptual grouping instead of message kind.
This commit is contained in:
Erik Grinaker
2020-07-08 17:47:01 +02:00
committed by GitHub
parent 59a17b28a7
commit 66ed8ec39d
44 changed files with 4370 additions and 4421 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519"
pc "github.com/tendermint/tendermint/proto/tendermint/crypto/keys"
pc "github.com/tendermint/tendermint/proto/tendermint/crypto"
)
// PubKeyToProto takes crypto.PubKey and transforms it to a protobuf Pubkey