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.

31 lines
932 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. option (gogoproto.populate_all) = true;
  11. option (gogoproto.equal_all) = true;
  12. //----------------------------------------
  13. // Message types
  14. // ProofOp defines an operation used for calculating Merkle root
  15. // The data could be arbitrary format, providing nessecary data
  16. // for example neighbouring node hash
  17. message ProofOp {
  18. string type = 1;
  19. bytes key = 2;
  20. bytes data = 3;
  21. }
  22. // Proof is Merkle proof defined by the list of ProofOps
  23. message Proof {
  24. repeated ProofOp ops = 1 [(gogoproto.nullable) = false];
  25. }