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