github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/protobuf/crypto.proto (about)

     1  syntax = 'proto3';
     2  
     3  package crypto;
     4  
     5  option go_package = "github.com/hyperledger/burrow/crypto";
     6  
     7  import "gogoproto/gogo.proto";
     8  
     9  option (gogoproto.stable_marshaler_all) = true;
    10  option (gogoproto.marshaler_all) = true;
    11  option (gogoproto.unmarshaler_all) = true;
    12  option (gogoproto.sizer_all) = true;
    13  option (gogoproto.goproto_registration) = true;
    14  option (gogoproto.messagename_all) = true;
    15  
    16  message PublicKey {
    17      option (gogoproto.goproto_stringer) = false;
    18      uint32 CurveType = 1 [(gogoproto.casttype) = "CurveType"];
    19      bytes PublicKey = 2[(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false];
    20  }
    21  
    22  message PrivateKey {
    23      option (gogoproto.goproto_stringer) = false;
    24      option (gogoproto.goproto_getters) = false;
    25      uint32 CurveType = 1 [(gogoproto.casttype) = "CurveType"];
    26      // Note may need initialisation
    27      bytes PublicKey = 2;
    28      bytes PrivateKey = 3;
    29  }
    30  
    31  message Signature {
    32      option (gogoproto.goproto_stringer) = false;
    33      uint32 CurveType = 1 [(gogoproto.casttype) = "CurveType"];
    34      bytes Signature = 2;
    35  }