Documentation ¶
Index ¶
- Variables
- type Batch
- func (*Batch) Descriptor() ([]byte, []int)deprecated
- func (x *Batch) GetHeader() []byte
- func (x *Batch) GetHeaderSignature() string
- func (x *Batch) GetTrace() bool
- func (x *Batch) GetTransactions() []*Transaction
- func (*Batch) ProtoMessage()
- func (x *Batch) ProtoReflect() protoreflect.Message
- func (x *Batch) Reset()
- func (x *Batch) String() string
- type BatchHeader
- func (*BatchHeader) Descriptor() ([]byte, []int)deprecated
- func (x *BatchHeader) GetSignerPublicKey() string
- func (x *BatchHeader) GetTransactionIds() []string
- func (*BatchHeader) ProtoMessage()
- func (x *BatchHeader) ProtoReflect() protoreflect.Message
- func (x *BatchHeader) Reset()
- func (x *BatchHeader) String() string
- type BatchList
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetHeader() []byte
- func (x *Transaction) GetHeaderSignature() string
- func (x *Transaction) GetPayload() []byte
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionHeader
- func (*TransactionHeader) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionHeader) GetBatcherPublicKey() string
- func (x *TransactionHeader) GetDependencies() []string
- func (x *TransactionHeader) GetFamilyName() string
- func (x *TransactionHeader) GetFamilyVersion() string
- func (x *TransactionHeader) GetInputs() []string
- func (x *TransactionHeader) GetNonce() string
- func (x *TransactionHeader) GetOutputs() []string
- func (x *TransactionHeader) GetPayloadSha512() string
- func (x *TransactionHeader) GetSignerPublicKey() string
- func (*TransactionHeader) ProtoMessage()
- func (x *TransactionHeader) ProtoReflect() protoreflect.Message
- func (x *TransactionHeader) Reset()
- func (x *TransactionHeader) String() string
- type TransactionList
Constants ¶
This section is empty.
Variables ¶
View Source
var File_batch_proto protoreflect.FileDescriptor
View Source
var File_transaction_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct { // The serialized version of the BatchHeader Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The signature derived from signing the header HeaderSignature string `protobuf:"bytes,2,opt,name=header_signature,json=headerSignature,proto3" json:"header_signature,omitempty"` // A list of the transactions that match the list of // transaction_ids listed in the batch header Transactions []*Transaction `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` // A debugging flag which indicates this batch should be traced through the // system, resulting in a higher level of debugging output. Trace bool `protobuf:"varint,4,opt,name=trace,proto3" json:"trace,omitempty"` // contains filtered or unexported fields }
func (*Batch) Descriptor
deprecated
func (*Batch) GetHeaderSignature ¶
func (*Batch) GetTransactions ¶
func (x *Batch) GetTransactions() []*Transaction
func (*Batch) ProtoMessage ¶
func (*Batch) ProtoMessage()
func (*Batch) ProtoReflect ¶
func (x *Batch) ProtoReflect() protoreflect.Message
type BatchHeader ¶
type BatchHeader struct { // Public key for the client that signed the BatchHeader SignerPublicKey string `protobuf:"bytes,1,opt,name=signer_public_key,json=signerPublicKey,proto3" json:"signer_public_key,omitempty"` // List of transaction.header_signatures that match the order of // transactions required for the batch TransactionIds []string `protobuf:"bytes,2,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` // contains filtered or unexported fields }
func (*BatchHeader) Descriptor
deprecated
func (*BatchHeader) Descriptor() ([]byte, []int)
Deprecated: Use BatchHeader.ProtoReflect.Descriptor instead.
func (*BatchHeader) GetSignerPublicKey ¶
func (x *BatchHeader) GetSignerPublicKey() string
func (*BatchHeader) GetTransactionIds ¶
func (x *BatchHeader) GetTransactionIds() []string
func (*BatchHeader) ProtoMessage ¶
func (*BatchHeader) ProtoMessage()
func (*BatchHeader) ProtoReflect ¶
func (x *BatchHeader) ProtoReflect() protoreflect.Message
func (*BatchHeader) Reset ¶
func (x *BatchHeader) Reset()
func (*BatchHeader) String ¶
func (x *BatchHeader) String() string
type BatchList ¶
type BatchList struct { Batches []*Batch `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"` // contains filtered or unexported fields }
func (*BatchList) Descriptor
deprecated
func (*BatchList) GetBatches ¶
func (*BatchList) ProtoMessage ¶
func (*BatchList) ProtoMessage()
func (*BatchList) ProtoReflect ¶
func (x *BatchList) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct { // The serialized version of the TransactionHeader Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The signature derived from signing the header HeaderSignature string `protobuf:"bytes,2,opt,name=header_signature,json=headerSignature,proto3" json:"header_signature,omitempty"` // The payload is the encoded family specific information of the // transaction. Example cbor({'Verb': verb, 'Name': name,'Value': value}) Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetHeader ¶
func (x *Transaction) GetHeader() []byte
func (*Transaction) GetHeaderSignature ¶
func (x *Transaction) GetHeaderSignature() string
func (*Transaction) GetPayload ¶
func (x *Transaction) GetPayload() []byte
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionHeader ¶
type TransactionHeader struct { // Public key for the client who added this transaction to a batch BatcherPublicKey string `protobuf:"bytes,1,opt,name=batcher_public_key,json=batcherPublicKey,proto3" json:"batcher_public_key,omitempty"` // A list of transaction signatures that describe the transactions that // must be processed before this transaction can be valid Dependencies []string `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // The family name correlates to the transaction processor's family name // that this transaction can be processed on, for example 'intkey' FamilyName string `protobuf:"bytes,3,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` // The family version correlates to the transaction processor's family // version that this transaction can be processed on, for example "1.0" FamilyVersion string `protobuf:"bytes,4,opt,name=family_version,json=familyVersion,proto3" json:"family_version,omitempty"` // A list of addresses that are given to the context manager and control // what addresses the transaction processor is allowed to read from. Inputs []string `protobuf:"bytes,5,rep,name=inputs,proto3" json:"inputs,omitempty"` // A random string that provides uniqueness for transactions with // otherwise identical fields. Nonce string `protobuf:"bytes,6,opt,name=nonce,proto3" json:"nonce,omitempty"` // A list of addresses that are given to the context manager and control // what addresses the transaction processor is allowed to write to. Outputs []string `protobuf:"bytes,7,rep,name=outputs,proto3" json:"outputs,omitempty"` //The sha512 hash of the encoded payload PayloadSha512 string `protobuf:"bytes,9,opt,name=payload_sha512,json=payloadSha512,proto3" json:"payload_sha512,omitempty"` // Public key for the client that signed the TransactionHeader SignerPublicKey string `protobuf:"bytes,10,opt,name=signer_public_key,json=signerPublicKey,proto3" json:"signer_public_key,omitempty"` // contains filtered or unexported fields }
func (*TransactionHeader) Descriptor
deprecated
func (*TransactionHeader) Descriptor() ([]byte, []int)
Deprecated: Use TransactionHeader.ProtoReflect.Descriptor instead.
func (*TransactionHeader) GetBatcherPublicKey ¶
func (x *TransactionHeader) GetBatcherPublicKey() string
func (*TransactionHeader) GetDependencies ¶
func (x *TransactionHeader) GetDependencies() []string
func (*TransactionHeader) GetFamilyName ¶
func (x *TransactionHeader) GetFamilyName() string
func (*TransactionHeader) GetFamilyVersion ¶
func (x *TransactionHeader) GetFamilyVersion() string
func (*TransactionHeader) GetInputs ¶
func (x *TransactionHeader) GetInputs() []string
func (*TransactionHeader) GetNonce ¶
func (x *TransactionHeader) GetNonce() string
func (*TransactionHeader) GetOutputs ¶
func (x *TransactionHeader) GetOutputs() []string
func (*TransactionHeader) GetPayloadSha512 ¶
func (x *TransactionHeader) GetPayloadSha512() string
func (*TransactionHeader) GetSignerPublicKey ¶
func (x *TransactionHeader) GetSignerPublicKey() string
func (*TransactionHeader) ProtoMessage ¶
func (*TransactionHeader) ProtoMessage()
func (*TransactionHeader) ProtoReflect ¶
func (x *TransactionHeader) ProtoReflect() protoreflect.Message
func (*TransactionHeader) Reset ¶
func (x *TransactionHeader) Reset()
func (*TransactionHeader) String ¶
func (x *TransactionHeader) String() string
type TransactionList ¶
type TransactionList struct { Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
A simple list of transactions that needs to be serialized before it can be transmitted to a batcher.
func (*TransactionList) Descriptor
deprecated
func (*TransactionList) Descriptor() ([]byte, []int)
Deprecated: Use TransactionList.ProtoReflect.Descriptor instead.
func (*TransactionList) GetTransactions ¶
func (x *TransactionList) GetTransactions() []*Transaction
func (*TransactionList) ProtoMessage ¶
func (*TransactionList) ProtoMessage()
func (*TransactionList) ProtoReflect ¶
func (x *TransactionList) ProtoReflect() protoreflect.Message
func (*TransactionList) Reset ¶
func (x *TransactionList) Reset()
func (*TransactionList) String ¶
func (x *TransactionList) String() string
Click to show internal directories.
Click to hide internal directories.