You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
851 B

  1. syntax = "proto3";
  2. package tendermint.crypto.merkle;
  3. option go_package = "github.com/tendermint/tendermint/crypto/merkle";
  4. // For more information on gogo.proto, see:
  5. // https://github.com/gogo/protobuf/blob/master/extensions.md
  6. import "third_party/proto/gogoproto/gogo.proto";
  7. option (gogoproto.marshaler_all) = true;
  8. option (gogoproto.unmarshaler_all) = true;
  9. option (gogoproto.sizer_all) = true;
  10. //----------------------------------------
  11. // Message types
  12. // ProofOp defines an operation used for calculating Merkle root
  13. // The data could be arbitrary format, providing nessecary data
  14. // for example neighbouring node hash
  15. message ProofOp {
  16. string type = 1;
  17. bytes key = 2;
  18. bytes data = 3;
  19. }
  20. // Proof is Merkle proof defined by the list of ProofOps
  21. message Proof {
  22. repeated ProofOp ops = 1 [(gogoproto.nullable) = false];
  23. }