github.com/Tri-stone/burrow@v0.25.0/protobuf/txs.proto (about)

     1  syntax = 'proto3';
     2  
     3  option go_package = "github.com/hyperledger/burrow/txs";
     4  
     5  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
     6  
     7  import "crypto.proto";
     8  
     9  package txs;
    10  
    11  // Enable custom Marshal method.
    12  option (gogoproto.marshaler_all) = true;
    13  // Enable custom Unmarshal method.
    14  option (gogoproto.unmarshaler_all) = true;
    15  // Enable custom Size method (Required by Marshal and Unmarshal).
    16  option (gogoproto.sizer_all) = true;
    17  // Enable registration with golang/protobuf for the grpc-gateway.
    18  option (gogoproto.goproto_registration) = true;
    19  // Enable generation of XXX_MessageName methods for grpc-go/status.
    20  option (gogoproto.messagename_all) = true;
    21  
    22  // An envelope contains both the signable Tx and the signatures for each input (in signatories)
    23  message Envelope {
    24      option (gogoproto.goproto_stringer) = false;
    25      repeated Signatory Signatories = 1 [(gogoproto.nullable) = false];
    26      // Canonical bytes of the Tx ready to be signed
    27      bytes Tx = 2 [(gogoproto.customtype) = "Tx"];
    28  }
    29  
    30  // Signatory contains signature and one or both of Address and PublicKey to identify the signer
    31  message Signatory {
    32      bytes Address = 1 [(gogoproto.customtype) = "github.com/hyperledger/burrow/crypto.Address"];
    33      crypto.PublicKey PublicKey = 2;
    34      crypto.Signature Signature = 4;
    35  }
    36  
    37  // BroadcastTx or Transaction receipt
    38  message Receipt {
    39      // Transaction type
    40      uint32 TxType = 1[(gogoproto.casttype) = "github.com/hyperledger/burrow/txs/payload.Type"];
    41      // The hash of the transaction that caused this event to be generated
    42      bytes TxHash = 2 [(gogoproto.customtype) = "github.com/hyperledger/burrow/binary.HexBytes", (gogoproto.nullable) = false];
    43      // Whether the transaction creates a contract
    44      bool CreatesContract = 3;
    45      // The address of the contract being called
    46      bytes ContractAddress = 4 [(gogoproto.customtype) = "github.com/hyperledger/burrow/crypto.Address", (gogoproto.nullable) = false];
    47  }