github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/protos/peer/transaction.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: peer/transaction.proto 3 // DO NOT EDIT! 4 5 package peer 6 7 import proto "github.com/golang/protobuf/proto" 8 import fmt "fmt" 9 import math "math" 10 import _ "github.com/golang/protobuf/ptypes/timestamp" 11 import common "github.com/hyperledger/fabric/protos/common" 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 type TxValidationCode int32 19 20 const ( 21 TxValidationCode_VALID TxValidationCode = 0 22 TxValidationCode_NIL_ENVELOPE TxValidationCode = 1 23 TxValidationCode_BAD_PAYLOAD TxValidationCode = 2 24 TxValidationCode_BAD_COMMON_HEADER TxValidationCode = 3 25 TxValidationCode_BAD_CREATOR_SIGNATURE TxValidationCode = 4 26 TxValidationCode_INVALID_ENDORSER_TRANSACTION TxValidationCode = 5 27 TxValidationCode_INVALID_CONFIG_TRANSACTION TxValidationCode = 6 28 TxValidationCode_UNSUPPORTED_TX_PAYLOAD TxValidationCode = 7 29 TxValidationCode_BAD_PROPOSAL_TXID TxValidationCode = 8 30 TxValidationCode_DUPLICATE_TXID TxValidationCode = 9 31 TxValidationCode_ENDORSEMENT_POLICY_FAILURE TxValidationCode = 10 32 TxValidationCode_MVCC_READ_CONFLICT TxValidationCode = 11 33 TxValidationCode_PHANTOM_READ_CONFLICT TxValidationCode = 12 34 TxValidationCode_UNKNOWN_TX_TYPE TxValidationCode = 13 35 TxValidationCode_TARGET_CHAIN_NOT_FOUND TxValidationCode = 14 36 TxValidationCode_MARSHAL_TX_ERROR TxValidationCode = 15 37 TxValidationCode_NIL_TXACTION TxValidationCode = 16 38 TxValidationCode_INVALID_OTHER_REASON TxValidationCode = 255 39 ) 40 41 var TxValidationCode_name = map[int32]string{ 42 0: "VALID", 43 1: "NIL_ENVELOPE", 44 2: "BAD_PAYLOAD", 45 3: "BAD_COMMON_HEADER", 46 4: "BAD_CREATOR_SIGNATURE", 47 5: "INVALID_ENDORSER_TRANSACTION", 48 6: "INVALID_CONFIG_TRANSACTION", 49 7: "UNSUPPORTED_TX_PAYLOAD", 50 8: "BAD_PROPOSAL_TXID", 51 9: "DUPLICATE_TXID", 52 10: "ENDORSEMENT_POLICY_FAILURE", 53 11: "MVCC_READ_CONFLICT", 54 12: "PHANTOM_READ_CONFLICT", 55 13: "UNKNOWN_TX_TYPE", 56 14: "TARGET_CHAIN_NOT_FOUND", 57 15: "MARSHAL_TX_ERROR", 58 16: "NIL_TXACTION", 59 255: "INVALID_OTHER_REASON", 60 } 61 var TxValidationCode_value = map[string]int32{ 62 "VALID": 0, 63 "NIL_ENVELOPE": 1, 64 "BAD_PAYLOAD": 2, 65 "BAD_COMMON_HEADER": 3, 66 "BAD_CREATOR_SIGNATURE": 4, 67 "INVALID_ENDORSER_TRANSACTION": 5, 68 "INVALID_CONFIG_TRANSACTION": 6, 69 "UNSUPPORTED_TX_PAYLOAD": 7, 70 "BAD_PROPOSAL_TXID": 8, 71 "DUPLICATE_TXID": 9, 72 "ENDORSEMENT_POLICY_FAILURE": 10, 73 "MVCC_READ_CONFLICT": 11, 74 "PHANTOM_READ_CONFLICT": 12, 75 "UNKNOWN_TX_TYPE": 13, 76 "TARGET_CHAIN_NOT_FOUND": 14, 77 "MARSHAL_TX_ERROR": 15, 78 "NIL_TXACTION": 16, 79 "INVALID_OTHER_REASON": 255, 80 } 81 82 func (x TxValidationCode) String() string { 83 return proto.EnumName(TxValidationCode_name, int32(x)) 84 } 85 func (TxValidationCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor10, []int{0} } 86 87 // This message is necessary to facilitate the verification of the signature 88 // (in the signature field) over the bytes of the transaction (in the 89 // transactionBytes field). 90 type SignedTransaction struct { 91 // The bytes of the Transaction. NDD 92 TransactionBytes []byte `protobuf:"bytes,1,opt,name=transaction_bytes,json=transactionBytes,proto3" json:"transaction_bytes,omitempty"` 93 // Signature of the transactionBytes The public key of the signature is in 94 // the header field of TransactionAction There might be multiple 95 // TransactionAction, so multiple headers, but there should be same 96 // transactor identity (cert) in all headers 97 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` 98 } 99 100 func (m *SignedTransaction) Reset() { *m = SignedTransaction{} } 101 func (m *SignedTransaction) String() string { return proto.CompactTextString(m) } 102 func (*SignedTransaction) ProtoMessage() {} 103 func (*SignedTransaction) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} } 104 105 // ProcessedTransaction wraps an Envelope that includes a transaction along with an indication 106 // of whether the transaction was validated or invalidated by committing peer. 107 // The use case is that GetTransactionByID API needs to retrieve the transaction Envelope 108 // from block storage, and return it to a client, and indicate whether the transaction 109 // was validated or invalidated by committing peer. So that the originally submitted 110 // transaction Envelope is not modified, the ProcessedTransaction wrapper is returned. 111 type ProcessedTransaction struct { 112 // An Envelope which includes a processed transaction 113 TransactionEnvelope *common.Envelope `protobuf:"bytes,1,opt,name=transactionEnvelope" json:"transactionEnvelope,omitempty"` 114 // An indication of whether the transaction was validated or invalidated by committing peer 115 ValidationCode int32 `protobuf:"varint,2,opt,name=validationCode" json:"validationCode,omitempty"` 116 } 117 118 func (m *ProcessedTransaction) Reset() { *m = ProcessedTransaction{} } 119 func (m *ProcessedTransaction) String() string { return proto.CompactTextString(m) } 120 func (*ProcessedTransaction) ProtoMessage() {} 121 func (*ProcessedTransaction) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{1} } 122 123 func (m *ProcessedTransaction) GetTransactionEnvelope() *common.Envelope { 124 if m != nil { 125 return m.TransactionEnvelope 126 } 127 return nil 128 } 129 130 // The transaction to be sent to the ordering service. A transaction contains 131 // one or more TransactionAction. Each TransactionAction binds a proposal to 132 // potentially multiple actions. The transaction is atomic meaning that either 133 // all actions in the transaction will be committed or none will. Note that 134 // while a Transaction might include more than one Header, the Header.creator 135 // field must be the same in each. 136 // A single client is free to issue a number of independent Proposal, each with 137 // their header (Header) and request payload (ChaincodeProposalPayload). Each 138 // proposal is independently endorsed generating an action 139 // (ProposalResponsePayload) with one signature per Endorser. Any number of 140 // independent proposals (and their action) might be included in a transaction 141 // to ensure that they are treated atomically. 142 type Transaction struct { 143 // The payload is an array of TransactionAction. An array is necessary to 144 // accommodate multiple actions per transaction 145 Actions []*TransactionAction `protobuf:"bytes,1,rep,name=actions" json:"actions,omitempty"` 146 } 147 148 func (m *Transaction) Reset() { *m = Transaction{} } 149 func (m *Transaction) String() string { return proto.CompactTextString(m) } 150 func (*Transaction) ProtoMessage() {} 151 func (*Transaction) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{2} } 152 153 func (m *Transaction) GetActions() []*TransactionAction { 154 if m != nil { 155 return m.Actions 156 } 157 return nil 158 } 159 160 // TransactionAction binds a proposal to its action. The type field in the 161 // header dictates the type of action to be applied to the ledger. 162 type TransactionAction struct { 163 // The header of the proposal action, which is the proposal header 164 Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` 165 // The payload of the action as defined by the type in the header For 166 // chaincode, it's the bytes of ChaincodeActionPayload 167 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` 168 } 169 170 func (m *TransactionAction) Reset() { *m = TransactionAction{} } 171 func (m *TransactionAction) String() string { return proto.CompactTextString(m) } 172 func (*TransactionAction) ProtoMessage() {} 173 func (*TransactionAction) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{3} } 174 175 // ChaincodeActionPayload is the message to be used for the TransactionAction's 176 // payload when the Header's type is set to CHAINCODE. It carries the 177 // chaincodeProposalPayload and an endorsed action to apply to the ledger. 178 type ChaincodeActionPayload struct { 179 // This field contains the bytes of the ChaincodeProposalPayload message from 180 // the original invocation (essentially the arguments) after the application 181 // of the visibility function. The main visibility modes are "full" (the 182 // entire ChaincodeProposalPayload message is included here), "hash" (only 183 // the hash of the ChaincodeProposalPayload message is included) or 184 // "nothing". This field will be used to check the consistency of 185 // ProposalResponsePayload.proposalHash. For the CHAINCODE type, 186 // ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || 187 // f(ChaincodeProposalPayload)) where f is the visibility function. 188 ChaincodeProposalPayload []byte `protobuf:"bytes,1,opt,name=chaincode_proposal_payload,json=chaincodeProposalPayload,proto3" json:"chaincode_proposal_payload,omitempty"` 189 // The list of actions to apply to the ledger 190 Action *ChaincodeEndorsedAction `protobuf:"bytes,2,opt,name=action" json:"action,omitempty"` 191 } 192 193 func (m *ChaincodeActionPayload) Reset() { *m = ChaincodeActionPayload{} } 194 func (m *ChaincodeActionPayload) String() string { return proto.CompactTextString(m) } 195 func (*ChaincodeActionPayload) ProtoMessage() {} 196 func (*ChaincodeActionPayload) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{4} } 197 198 func (m *ChaincodeActionPayload) GetAction() *ChaincodeEndorsedAction { 199 if m != nil { 200 return m.Action 201 } 202 return nil 203 } 204 205 // ChaincodeEndorsedAction carries information about the endorsement of a 206 // specific proposal 207 type ChaincodeEndorsedAction struct { 208 // This is the bytes of the ProposalResponsePayload message signed by the 209 // endorsers. Recall that for the CHAINCODE type, the 210 // ProposalResponsePayload's extenstion field carries a ChaincodeAction 211 ProposalResponsePayload []byte `protobuf:"bytes,1,opt,name=proposal_response_payload,json=proposalResponsePayload,proto3" json:"proposal_response_payload,omitempty"` 212 // The endorsement of the proposal, basically the endorser's signature over 213 // proposalResponsePayload 214 Endorsements []*Endorsement `protobuf:"bytes,2,rep,name=endorsements" json:"endorsements,omitempty"` 215 } 216 217 func (m *ChaincodeEndorsedAction) Reset() { *m = ChaincodeEndorsedAction{} } 218 func (m *ChaincodeEndorsedAction) String() string { return proto.CompactTextString(m) } 219 func (*ChaincodeEndorsedAction) ProtoMessage() {} 220 func (*ChaincodeEndorsedAction) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{5} } 221 222 func (m *ChaincodeEndorsedAction) GetEndorsements() []*Endorsement { 223 if m != nil { 224 return m.Endorsements 225 } 226 return nil 227 } 228 229 func init() { 230 proto.RegisterType((*SignedTransaction)(nil), "protos.SignedTransaction") 231 proto.RegisterType((*ProcessedTransaction)(nil), "protos.ProcessedTransaction") 232 proto.RegisterType((*Transaction)(nil), "protos.Transaction") 233 proto.RegisterType((*TransactionAction)(nil), "protos.TransactionAction") 234 proto.RegisterType((*ChaincodeActionPayload)(nil), "protos.ChaincodeActionPayload") 235 proto.RegisterType((*ChaincodeEndorsedAction)(nil), "protos.ChaincodeEndorsedAction") 236 proto.RegisterEnum("protos.TxValidationCode", TxValidationCode_name, TxValidationCode_value) 237 } 238 239 func init() { proto.RegisterFile("peer/transaction.proto", fileDescriptor10) } 240 241 var fileDescriptor10 = []byte{ 242 // 724 bytes of a gzipped FileDescriptorProto 243 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x54, 0x4d, 0x6f, 0xe3, 0x36, 244 0x14, 0xac, 0x93, 0x26, 0x69, 0x9e, 0xd3, 0x84, 0x61, 0xb2, 0x5e, 0xc7, 0x08, 0xba, 0x0b, 0x1f, 245 0x8a, 0x6d, 0x17, 0x88, 0x81, 0xec, 0xa1, 0x40, 0xd1, 0x0b, 0x2d, 0x31, 0xb1, 0x50, 0x99, 0x14, 246 0x28, 0x3a, 0x4d, 0x7a, 0x28, 0x21, 0x5b, 0x5c, 0x47, 0x80, 0x2d, 0x0a, 0x92, 0xb2, 0x68, 0xae, 247 0xfd, 0x01, 0xed, 0x7f, 0xea, 0x1f, 0x6b, 0xa1, 0x2f, 0x7f, 0x64, 0xdb, 0x8b, 0x69, 0xce, 0x8c, 248 0xde, 0xcc, 0x7b, 0x94, 0x08, 0x9d, 0x44, 0xeb, 0x74, 0x90, 0xa7, 0x41, 0x9c, 0x05, 0xb3, 0x3c, 249 0x32, 0xf1, 0x55, 0x92, 0x9a, 0xdc, 0xe0, 0xfd, 0x72, 0xc9, 0x7a, 0x6f, 0xe6, 0xc6, 0xcc, 0x17, 250 0x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x41, 0x89, 0xe4, 0x42, 0xf9, 0xce, 0x2d, 0x23, 0x72, 273 0x22, 0x28, 0xfa, 0x12, 0xbf, 0x85, 0x4b, 0x87, 0x95, 0x0e, 0x8a, 0x32, 0x9b, 0x0b, 0x9f, 0x0a, 274 0x25, 0x05, 0x61, 0x3e, 0xb1, 0xa4, 0xc3, 0x19, 0xda, 0xc3, 0xdf, 0x40, 0xaf, 0x51, 0x58, 0x9c, 275 0xdd, 0x38, 0xb7, 0x5b, 0xfc, 0x3e, 0xee, 0x41, 0x67, 0xc2, 0xfc, 0x89, 0xe7, 0x71, 0x21, 0xa9, 276 0xad, 0xe4, 0xfd, 0x2a, 0xcf, 0x41, 0x93, 0xc7, 0x13, 0xdc, 0xe3, 0x3e, 0x71, 0x95, 0xbc, 0x77, 277 0x6c, 0xf4, 0x15, 0xc6, 0x70, 0x6c, 0x4f, 0x3c, 0xd7, 0xb1, 0x88, 0xa4, 0x15, 0x76, 0x58, 0xd8, 278 0xd4, 0x01, 0xc6, 0x94, 0x49, 0xe5, 0x71, 0xd7, 0xb1, 0x1e, 0xd4, 0x0d, 0x71, 0xdc, 0x22, 0x28, 279 0xe0, 0x0e, 0xe0, 0xf1, 0x9d, 0x65, 0x29, 0x41, 0x49, 0x15, 0xc4, 0x75, 0x2c, 0x89, 0xda, 0x45, 280 0x6f, 0xde, 0x88, 0x30, 0xc9, 0xc7, 0x2f, 0xa8, 0x23, 0x7c, 0x06, 0x27, 0x13, 0xf6, 0x33, 0xe3, 281 0xbf, 0xb0, 0x22, 0x95, 0x7c, 0xf0, 0x28, 0xfa, 0xba, 0x88, 0x2b, 0x89, 0xb8, 0xa5, 0x52, 0x59, 282 0x23, 0xe2, 0x30, 0xc5, 0xb8, 0x54, 0x37, 0x7c, 0xc2, 0x6c, 0x74, 0x8c, 0xcf, 0x01, 0x8d, 0x89, 283 0xf0, 0x47, 0x65, 0x52, 0x45, 0x85, 0xe0, 0x02, 0x9d, 0x34, 0x73, 0x97, 0xf7, 0x75, 0xcb, 0x08, 284 0x5f, 0xc0, 0x79, 0x33, 0x12, 0x2e, 0x47, 0x54, 0x14, 0xce, 0x3e, 0x67, 0xe8, 0x9f, 0xd6, 0xf0, 285 0xfd, 0xaf, 0xdf, 0xcd, 0xa3, 0xfc, 0xf1, 0x69, 0x5a, 0x7c, 0xc9, 0x83, 0xc7, 0xe7, 0x44, 0xa7, 286 0x0b, 0x1d, 0xce, 0x75, 0x3a, 0xf8, 0x18, 0x4c, 0xd3, 0x68, 0x56, 0x5d, 0x62, 0xd9, 0xa0, 0xb8, 287 0xb1, 0xa6, 0xd5, 0x05, 0xf7, 0xe1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x6e, 0x52, 0x79, 288 0x01, 0x05, 0x00, 0x00, 289 }