Documentation ¶
Index ¶
- func RegisterProverServer(s *grpc.Server, srv ProverServer)
- type AllowanceRecipientShare
- func (*AllowanceRecipientShare) Descriptor() ([]byte, []int)
- func (m *AllowanceRecipientShare) GetQuantity() uint64
- func (m *AllowanceRecipientShare) GetRecipient() []byte
- func (*AllowanceRecipientShare) ProtoMessage()
- func (m *AllowanceRecipientShare) Reset()
- func (m *AllowanceRecipientShare) String() string
- func (m *AllowanceRecipientShare) XXX_DiscardUnknown()
- func (m *AllowanceRecipientShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AllowanceRecipientShare) XXX_Merge(src proto.Message)
- func (m *AllowanceRecipientShare) XXX_Size() int
- func (m *AllowanceRecipientShare) XXX_Unmarshal(b []byte) error
- type ApproveRequest
- func (*ApproveRequest) Descriptor() ([]byte, []int)
- func (m *ApproveRequest) GetAllowanceShares() []*AllowanceRecipientShare
- func (m *ApproveRequest) GetCredential() []byte
- func (m *ApproveRequest) GetTokenIds() [][]byte
- func (*ApproveRequest) ProtoMessage()
- func (m *ApproveRequest) Reset()
- func (m *ApproveRequest) String() string
- func (m *ApproveRequest) XXX_DiscardUnknown()
- func (m *ApproveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ApproveRequest) XXX_Merge(src proto.Message)
- func (m *ApproveRequest) XXX_Size() int
- func (m *ApproveRequest) XXX_Unmarshal(b []byte) error
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetApproveRequest() *ApproveRequest
- func (m *Command) GetExpectationRequest() *ExpectationRequest
- func (m *Command) GetHeader() *Header
- func (m *Command) GetImportRequest() *ImportRequest
- func (m *Command) GetListRequest() *ListRequest
- func (m *Command) GetPayload() isCommand_Payload
- func (m *Command) GetRedeemRequest() *RedeemRequest
- func (m *Command) GetTransferFromRequest() *TransferRequest
- func (m *Command) GetTransferRequest() *TransferRequest
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Command) XXX_Merge(src proto.Message)
- func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type CommandResponse
- func (*CommandResponse) Descriptor() ([]byte, []int)
- func (m *CommandResponse) GetErr() *Error
- func (m *CommandResponse) GetHeader() *CommandResponseHeader
- func (m *CommandResponse) GetPayload() isCommandResponse_Payload
- func (m *CommandResponse) GetTokenTransaction() *TokenTransaction
- func (m *CommandResponse) GetUnspentTokens() *UnspentTokens
- func (*CommandResponse) ProtoMessage()
- func (m *CommandResponse) Reset()
- func (m *CommandResponse) String() string
- func (m *CommandResponse) XXX_DiscardUnknown()
- func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CommandResponse) XXX_Merge(src proto.Message)
- func (*CommandResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *CommandResponse) XXX_Size() int
- func (m *CommandResponse) XXX_Unmarshal(b []byte) error
- type CommandResponseHeader
- func (*CommandResponseHeader) Descriptor() ([]byte, []int)
- func (m *CommandResponseHeader) GetCommandHash() []byte
- func (m *CommandResponseHeader) GetCreator() []byte
- func (m *CommandResponseHeader) GetTimestamp() *timestamp.Timestamp
- func (*CommandResponseHeader) ProtoMessage()
- func (m *CommandResponseHeader) Reset()
- func (m *CommandResponseHeader) String() string
- func (m *CommandResponseHeader) XXX_DiscardUnknown()
- func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CommandResponseHeader) XXX_Merge(src proto.Message)
- func (m *CommandResponseHeader) XXX_Size() int
- func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error
- type CommandResponse_Err
- type CommandResponse_TokenTransaction
- type CommandResponse_UnspentTokens
- type Command_ApproveRequest
- type Command_ExpectationRequest
- type Command_ImportRequest
- type Command_ListRequest
- type Command_RedeemRequest
- type Command_TransferFromRequest
- type Command_TransferRequest
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetMessage() string
- func (m *Error) GetPayload() []byte
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type ExpectationRequest
- func (*ExpectationRequest) Descriptor() ([]byte, []int)
- func (m *ExpectationRequest) GetCredential() []byte
- func (m *ExpectationRequest) GetExpectation() *TokenExpectation
- func (m *ExpectationRequest) GetTokenIds() [][]byte
- func (*ExpectationRequest) ProtoMessage()
- func (m *ExpectationRequest) Reset()
- func (m *ExpectationRequest) String() string
- func (m *ExpectationRequest) XXX_DiscardUnknown()
- func (m *ExpectationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ExpectationRequest) XXX_Merge(src proto.Message)
- func (m *ExpectationRequest) XXX_Size() int
- func (m *ExpectationRequest) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetChannelId() string
- func (m *Header) GetCreator() []byte
- func (m *Header) GetNonce() []byte
- func (m *Header) GetTimestamp() *timestamp.Timestamp
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type ImportRequest
- func (*ImportRequest) Descriptor() ([]byte, []int)
- func (m *ImportRequest) GetCredential() []byte
- func (m *ImportRequest) GetTokensToIssue() []*TokenToIssue
- func (*ImportRequest) ProtoMessage()
- func (m *ImportRequest) Reset()
- func (m *ImportRequest) String() string
- func (m *ImportRequest) XXX_DiscardUnknown()
- func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ImportRequest) XXX_Merge(src proto.Message)
- func (m *ImportRequest) XXX_Size() int
- func (m *ImportRequest) XXX_Unmarshal(b []byte) error
- type InputId
- func (*InputId) Descriptor() ([]byte, []int)
- func (m *InputId) GetIndex() uint32
- func (m *InputId) GetTxId() string
- func (*InputId) ProtoMessage()
- func (m *InputId) Reset()
- func (m *InputId) String() string
- func (m *InputId) XXX_DiscardUnknown()
- func (m *InputId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InputId) XXX_Merge(src proto.Message)
- func (m *InputId) XXX_Size() int
- func (m *InputId) XXX_Unmarshal(b []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetCredential() []byte
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type PlainApprove
- func (*PlainApprove) Descriptor() ([]byte, []int)
- func (m *PlainApprove) GetDelegatedOutputs() []*PlainDelegatedOutput
- func (m *PlainApprove) GetInputs() []*InputId
- func (m *PlainApprove) GetOutput() *PlainOutput
- func (*PlainApprove) ProtoMessage()
- func (m *PlainApprove) Reset()
- func (m *PlainApprove) String() string
- func (m *PlainApprove) XXX_DiscardUnknown()
- func (m *PlainApprove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainApprove) XXX_Merge(src proto.Message)
- func (m *PlainApprove) XXX_Size() int
- func (m *PlainApprove) XXX_Unmarshal(b []byte) error
- type PlainDelegatedOutput
- func (*PlainDelegatedOutput) Descriptor() ([]byte, []int)
- func (m *PlainDelegatedOutput) GetDelegatees() [][]byte
- func (m *PlainDelegatedOutput) GetOwner() []byte
- func (m *PlainDelegatedOutput) GetQuantity() uint64
- func (m *PlainDelegatedOutput) GetType() string
- func (*PlainDelegatedOutput) ProtoMessage()
- func (m *PlainDelegatedOutput) Reset()
- func (m *PlainDelegatedOutput) String() string
- func (m *PlainDelegatedOutput) XXX_DiscardUnknown()
- func (m *PlainDelegatedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainDelegatedOutput) XXX_Merge(src proto.Message)
- func (m *PlainDelegatedOutput) XXX_Size() int
- func (m *PlainDelegatedOutput) XXX_Unmarshal(b []byte) error
- type PlainExpectation
- func (*PlainExpectation) Descriptor() ([]byte, []int)
- func (m *PlainExpectation) GetImportExpectation() *PlainTokenExpectation
- func (m *PlainExpectation) GetPayload() isPlainExpectation_Payload
- func (m *PlainExpectation) GetTransferExpectation() *PlainTokenExpectation
- func (*PlainExpectation) ProtoMessage()
- func (m *PlainExpectation) Reset()
- func (m *PlainExpectation) String() string
- func (m *PlainExpectation) XXX_DiscardUnknown()
- func (m *PlainExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainExpectation) XXX_Merge(src proto.Message)
- func (*PlainExpectation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *PlainExpectation) XXX_Size() int
- func (m *PlainExpectation) XXX_Unmarshal(b []byte) error
- type PlainExpectation_ImportExpectation
- type PlainExpectation_TransferExpectation
- type PlainImport
- func (*PlainImport) Descriptor() ([]byte, []int)
- func (m *PlainImport) GetOutputs() []*PlainOutput
- func (*PlainImport) ProtoMessage()
- func (m *PlainImport) Reset()
- func (m *PlainImport) String() string
- func (m *PlainImport) XXX_DiscardUnknown()
- func (m *PlainImport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainImport) XXX_Merge(src proto.Message)
- func (m *PlainImport) XXX_Size() int
- func (m *PlainImport) XXX_Unmarshal(b []byte) error
- type PlainOutput
- func (*PlainOutput) Descriptor() ([]byte, []int)
- func (m *PlainOutput) GetOwner() []byte
- func (m *PlainOutput) GetQuantity() uint64
- func (m *PlainOutput) GetType() string
- func (*PlainOutput) ProtoMessage()
- func (m *PlainOutput) Reset()
- func (m *PlainOutput) String() string
- func (m *PlainOutput) XXX_DiscardUnknown()
- func (m *PlainOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainOutput) XXX_Merge(src proto.Message)
- func (m *PlainOutput) XXX_Size() int
- func (m *PlainOutput) XXX_Unmarshal(b []byte) error
- type PlainTokenAction
- func (*PlainTokenAction) Descriptor() ([]byte, []int)
- func (m *PlainTokenAction) GetData() isPlainTokenAction_Data
- func (m *PlainTokenAction) GetPlainApprove() *PlainApprove
- func (m *PlainTokenAction) GetPlainImport() *PlainImport
- func (m *PlainTokenAction) GetPlainRedeem() *PlainTransfer
- func (m *PlainTokenAction) GetPlainTransfer() *PlainTransfer
- func (m *PlainTokenAction) GetPlainTransfer_From() *PlainTransferFrom
- func (*PlainTokenAction) ProtoMessage()
- func (m *PlainTokenAction) Reset()
- func (m *PlainTokenAction) String() string
- func (m *PlainTokenAction) XXX_DiscardUnknown()
- func (m *PlainTokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainTokenAction) XXX_Merge(src proto.Message)
- func (*PlainTokenAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *PlainTokenAction) XXX_Size() int
- func (m *PlainTokenAction) XXX_Unmarshal(b []byte) error
- type PlainTokenAction_PlainApprove
- type PlainTokenAction_PlainImport
- type PlainTokenAction_PlainRedeem
- type PlainTokenAction_PlainTransfer
- type PlainTokenAction_PlainTransfer_From
- type PlainTokenExpectation
- func (*PlainTokenExpectation) Descriptor() ([]byte, []int)
- func (m *PlainTokenExpectation) GetOutputs() []*PlainOutput
- func (*PlainTokenExpectation) ProtoMessage()
- func (m *PlainTokenExpectation) Reset()
- func (m *PlainTokenExpectation) String() string
- func (m *PlainTokenExpectation) XXX_DiscardUnknown()
- func (m *PlainTokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainTokenExpectation) XXX_Merge(src proto.Message)
- func (m *PlainTokenExpectation) XXX_Size() int
- func (m *PlainTokenExpectation) XXX_Unmarshal(b []byte) error
- type PlainTransfer
- func (*PlainTransfer) Descriptor() ([]byte, []int)
- func (m *PlainTransfer) GetInputs() []*InputId
- func (m *PlainTransfer) GetOutputs() []*PlainOutput
- func (*PlainTransfer) ProtoMessage()
- func (m *PlainTransfer) Reset()
- func (m *PlainTransfer) String() string
- func (m *PlainTransfer) XXX_DiscardUnknown()
- func (m *PlainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainTransfer) XXX_Merge(src proto.Message)
- func (m *PlainTransfer) XXX_Size() int
- func (m *PlainTransfer) XXX_Unmarshal(b []byte) error
- type PlainTransferFrom
- func (*PlainTransferFrom) Descriptor() ([]byte, []int)
- func (m *PlainTransferFrom) GetDelegatedOutput() *PlainDelegatedOutput
- func (m *PlainTransferFrom) GetInputs() []*InputId
- func (m *PlainTransferFrom) GetOutputs() []*PlainOutput
- func (*PlainTransferFrom) ProtoMessage()
- func (m *PlainTransferFrom) Reset()
- func (m *PlainTransferFrom) String() string
- func (m *PlainTransferFrom) XXX_DiscardUnknown()
- func (m *PlainTransferFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainTransferFrom) XXX_Merge(src proto.Message)
- func (m *PlainTransferFrom) XXX_Size() int
- func (m *PlainTransferFrom) XXX_Unmarshal(b []byte) error
- type ProverClient
- type ProverServer
- type RecipientTransferShare
- func (*RecipientTransferShare) Descriptor() ([]byte, []int)
- func (m *RecipientTransferShare) GetQuantity() uint64
- func (m *RecipientTransferShare) GetRecipient() []byte
- func (*RecipientTransferShare) ProtoMessage()
- func (m *RecipientTransferShare) Reset()
- func (m *RecipientTransferShare) String() string
- func (m *RecipientTransferShare) XXX_DiscardUnknown()
- func (m *RecipientTransferShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RecipientTransferShare) XXX_Merge(src proto.Message)
- func (m *RecipientTransferShare) XXX_Size() int
- func (m *RecipientTransferShare) XXX_Unmarshal(b []byte) error
- type RedeemRequest
- func (*RedeemRequest) Descriptor() ([]byte, []int)
- func (m *RedeemRequest) GetCredential() []byte
- func (m *RedeemRequest) GetQuantityToRedeem() uint64
- func (m *RedeemRequest) GetTokenIds() [][]byte
- func (*RedeemRequest) ProtoMessage()
- func (m *RedeemRequest) Reset()
- func (m *RedeemRequest) String() string
- func (m *RedeemRequest) XXX_DiscardUnknown()
- func (m *RedeemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RedeemRequest) XXX_Merge(src proto.Message)
- func (m *RedeemRequest) XXX_Size() int
- func (m *RedeemRequest) XXX_Unmarshal(b []byte) error
- type SignedCommand
- func (*SignedCommand) Descriptor() ([]byte, []int)
- func (m *SignedCommand) GetCommand() []byte
- func (m *SignedCommand) GetSignature() []byte
- func (*SignedCommand) ProtoMessage()
- func (m *SignedCommand) Reset()
- func (m *SignedCommand) String() string
- func (m *SignedCommand) XXX_DiscardUnknown()
- func (m *SignedCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedCommand) XXX_Merge(src proto.Message)
- func (m *SignedCommand) XXX_Size() int
- func (m *SignedCommand) XXX_Unmarshal(b []byte) error
- type SignedCommandResponse
- func (*SignedCommandResponse) Descriptor() ([]byte, []int)
- func (m *SignedCommandResponse) GetResponse() []byte
- func (m *SignedCommandResponse) GetSignature() []byte
- func (*SignedCommandResponse) ProtoMessage()
- func (m *SignedCommandResponse) Reset()
- func (m *SignedCommandResponse) String() string
- func (m *SignedCommandResponse) XXX_DiscardUnknown()
- func (m *SignedCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedCommandResponse) XXX_Merge(src proto.Message)
- func (m *SignedCommandResponse) XXX_Size() int
- func (m *SignedCommandResponse) XXX_Unmarshal(b []byte) error
- type TokenExpectation
- func (*TokenExpectation) Descriptor() ([]byte, []int)
- func (m *TokenExpectation) GetExpectation() isTokenExpectation_Expectation
- func (m *TokenExpectation) GetPlainExpectation() *PlainExpectation
- func (*TokenExpectation) ProtoMessage()
- func (m *TokenExpectation) Reset()
- func (m *TokenExpectation) String() string
- func (m *TokenExpectation) XXX_DiscardUnknown()
- func (m *TokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TokenExpectation) XXX_Merge(src proto.Message)
- func (*TokenExpectation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *TokenExpectation) XXX_Size() int
- func (m *TokenExpectation) XXX_Unmarshal(b []byte) error
- type TokenExpectation_PlainExpectation
- type TokenOutput
- func (*TokenOutput) Descriptor() ([]byte, []int)
- func (m *TokenOutput) GetId() []byte
- func (m *TokenOutput) GetQuantity() uint64
- func (m *TokenOutput) GetType() string
- func (*TokenOutput) ProtoMessage()
- func (m *TokenOutput) Reset()
- func (m *TokenOutput) String() string
- func (m *TokenOutput) XXX_DiscardUnknown()
- func (m *TokenOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TokenOutput) XXX_Merge(src proto.Message)
- func (m *TokenOutput) XXX_Size() int
- func (m *TokenOutput) XXX_Unmarshal(b []byte) error
- type TokenToIssue
- func (*TokenToIssue) Descriptor() ([]byte, []int)
- func (m *TokenToIssue) GetQuantity() uint64
- func (m *TokenToIssue) GetRecipient() []byte
- func (m *TokenToIssue) GetType() string
- func (*TokenToIssue) ProtoMessage()
- func (m *TokenToIssue) Reset()
- func (m *TokenToIssue) String() string
- func (m *TokenToIssue) XXX_DiscardUnknown()
- func (m *TokenToIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TokenToIssue) XXX_Merge(src proto.Message)
- func (m *TokenToIssue) XXX_Size() int
- func (m *TokenToIssue) XXX_Unmarshal(b []byte) error
- type TokenTransaction
- func (*TokenTransaction) Descriptor() ([]byte, []int)
- func (m *TokenTransaction) GetAction() isTokenTransaction_Action
- func (m *TokenTransaction) GetPlainAction() *PlainTokenAction
- func (*TokenTransaction) ProtoMessage()
- func (m *TokenTransaction) Reset()
- func (m *TokenTransaction) String() string
- func (m *TokenTransaction) XXX_DiscardUnknown()
- func (m *TokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TokenTransaction) XXX_Merge(src proto.Message)
- func (*TokenTransaction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *TokenTransaction) XXX_Size() int
- func (m *TokenTransaction) XXX_Unmarshal(b []byte) error
- type TokenTransaction_PlainAction
- type TransferRequest
- func (*TransferRequest) Descriptor() ([]byte, []int)
- func (m *TransferRequest) GetCredential() []byte
- func (m *TransferRequest) GetShares() []*RecipientTransferShare
- func (m *TransferRequest) GetTokenIds() [][]byte
- func (*TransferRequest) ProtoMessage()
- func (m *TransferRequest) Reset()
- func (m *TransferRequest) String() string
- func (m *TransferRequest) XXX_DiscardUnknown()
- func (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TransferRequest) XXX_Merge(src proto.Message)
- func (m *TransferRequest) XXX_Size() int
- func (m *TransferRequest) XXX_Unmarshal(b []byte) error
- type UnspentTokens
- func (*UnspentTokens) Descriptor() ([]byte, []int)
- func (m *UnspentTokens) GetTokens() []*TokenOutput
- func (*UnspentTokens) ProtoMessage()
- func (m *UnspentTokens) Reset()
- func (m *UnspentTokens) String() string
- func (m *UnspentTokens) XXX_DiscardUnknown()
- func (m *UnspentTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnspentTokens) XXX_Merge(src proto.Message)
- func (m *UnspentTokens) XXX_Size() int
- func (m *UnspentTokens) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProverServer ¶
func RegisterProverServer(s *grpc.Server, srv ProverServer)
Types ¶
type AllowanceRecipientShare ¶
type AllowanceRecipientShare struct { byte `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` //Quantity是委托给收件人的令牌数 }Recipient []
allowance定义了接收者可以代表其实际所有者转让的令牌的数量和内容。
func (*AllowanceRecipientShare) Descriptor ¶
func (*AllowanceRecipientShare) Descriptor() ([]byte, []int)
func (*AllowanceRecipientShare) GetQuantity ¶
func (m *AllowanceRecipientShare) GetQuantity() uint64
func (*AllowanceRecipientShare) GetRecipient ¶
func (m *AllowanceRecipientShare) GetRecipient() []byte
func (*AllowanceRecipientShare) ProtoMessage ¶
func (*AllowanceRecipientShare) ProtoMessage()
func (*AllowanceRecipientShare) Reset ¶
func (m *AllowanceRecipientShare) Reset()
func (*AllowanceRecipientShare) String ¶
func (m *AllowanceRecipientShare) String() string
func (*AllowanceRecipientShare) XXX_DiscardUnknown ¶
func (m *AllowanceRecipientShare) XXX_DiscardUnknown()
func (*AllowanceRecipientShare) XXX_Marshal ¶
func (m *AllowanceRecipientShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowanceRecipientShare) XXX_Merge ¶
func (dst *AllowanceRecipientShare) XXX_Merge(src proto.Message)
func (*AllowanceRecipientShare) XXX_Size ¶
func (m *AllowanceRecipientShare) XXX_Size() int
func (*AllowanceRecipientShare) XXX_Unmarshal ¶
func (m *AllowanceRecipientShare) XXX_Unmarshal(b []byte) error
type ApproveRequest ¶
type ApproveRequest struct { //凭证是指请求创建者的公共凭证 Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` AllowanceShares []*AllowanceRecipientShare `protobuf:"bytes,2,rep,name=allowance_shares,json=allowanceShares,proto3" json:"allowance_shares,omitempty"` //tokenids是用于创建津贴的令牌标识符。 TokenIds [][]byte `protobuf:"bytes,3,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ApproveRequest用于请求从一个所有者到另一个所有者创建津贴。
func (*ApproveRequest) Descriptor ¶
func (*ApproveRequest) Descriptor() ([]byte, []int)
func (*ApproveRequest) GetAllowanceShares ¶
func (m *ApproveRequest) GetAllowanceShares() []*AllowanceRecipientShare
func (*ApproveRequest) GetCredential ¶
func (m *ApproveRequest) GetCredential() []byte
func (*ApproveRequest) GetTokenIds ¶
func (m *ApproveRequest) GetTokenIds() [][]byte
func (*ApproveRequest) ProtoMessage ¶
func (*ApproveRequest) ProtoMessage()
func (*ApproveRequest) Reset ¶
func (m *ApproveRequest) Reset()
func (*ApproveRequest) String ¶
func (m *ApproveRequest) String() string
func (*ApproveRequest) XXX_DiscardUnknown ¶
func (m *ApproveRequest) XXX_DiscardUnknown()
func (*ApproveRequest) XXX_Marshal ¶
func (m *ApproveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApproveRequest) XXX_Merge ¶
func (dst *ApproveRequest) XXX_Merge(src proto.Message)
func (*ApproveRequest) XXX_Size ¶
func (m *ApproveRequest) XXX_Size() int
func (*ApproveRequest) XXX_Unmarshal ¶
func (m *ApproveRequest) XXX_Unmarshal(b []byte) error
type Command ¶
type Command struct { //header是此命令的头 Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` //有效载荷是这个命令的有效载荷。它可以假定以下值之一 // //有效分配给有效负载的类型: //*命令输入请求 //*命令传输请求 //*命令列表请求 //*命令REDEEMREQUEST //*命令_ApproveRequest //*命令传输请求 //*命令请求 Payload isCommand_Payload `protobuf_oneof:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
命令描述客户端请求的操作类型。
func (*Command) Descriptor ¶
func (*Command) GetApproveRequest ¶
func (m *Command) GetApproveRequest() *ApproveRequest
func (*Command) GetExpectationRequest ¶
func (m *Command) GetExpectationRequest() *ExpectationRequest
func (*Command) GetImportRequest ¶
func (m *Command) GetImportRequest() *ImportRequest
func (*Command) GetListRequest ¶
func (m *Command) GetListRequest() *ListRequest
func (*Command) GetPayload ¶
func (m *Command) GetPayload() isCommand_Payload
func (*Command) GetRedeemRequest ¶
func (m *Command) GetRedeemRequest() *RedeemRequest
func (*Command) GetTransferFromRequest ¶
func (m *Command) GetTransferFromRequest() *TransferRequest
func (*Command) GetTransferRequest ¶
func (m *Command) GetTransferRequest() *TransferRequest
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_OneofFuncs ¶
func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*Command) XXX_Unmarshal ¶
type CommandResponse ¶
type CommandResponse struct { //响应的标题。 Header *CommandResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` //响应的有效负载。 // //有效分配给有效负载的类型: //*命令响应错误 //*commandresponse_令牌事务 //*命令响应\u未使用的令牌 Payload isCommandResponse_Payload `protobuf_oneof:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
命令和响应从验证程序返回给命令提交者。
func (*CommandResponse) Descriptor ¶
func (*CommandResponse) Descriptor() ([]byte, []int)
func (*CommandResponse) GetErr ¶
func (m *CommandResponse) GetErr() *Error
func (*CommandResponse) GetHeader ¶
func (m *CommandResponse) GetHeader() *CommandResponseHeader
func (*CommandResponse) GetPayload ¶
func (m *CommandResponse) GetPayload() isCommandResponse_Payload
func (*CommandResponse) GetTokenTransaction ¶
func (m *CommandResponse) GetTokenTransaction() *TokenTransaction
func (*CommandResponse) GetUnspentTokens ¶
func (m *CommandResponse) GetUnspentTokens() *UnspentTokens
func (*CommandResponse) ProtoMessage ¶
func (*CommandResponse) ProtoMessage()
func (*CommandResponse) Reset ¶
func (m *CommandResponse) Reset()
func (*CommandResponse) String ¶
func (m *CommandResponse) String() string
func (*CommandResponse) XXX_DiscardUnknown ¶
func (m *CommandResponse) XXX_DiscardUnknown()
func (*CommandResponse) XXX_Marshal ¶
func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommandResponse) XXX_Merge ¶
func (dst *CommandResponse) XXX_Merge(src proto.Message)
func (*CommandResponse) XXX_OneofFuncs ¶
func (*CommandResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*CommandResponse) XXX_Size ¶
func (m *CommandResponse) XXX_Size() int
func (*CommandResponse) XXX_Unmarshal ¶
func (m *CommandResponse) XXX_Unmarshal(b []byte) error
type CommandResponseHeader ¶
type CommandResponseHeader struct { //timestamp是消息 //已按发件人的定义创建 Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //commandHash是根据signedCommand的命令和签名字段串联计算的哈希。 //如果没有不同的指定,则使用sha256 //哈希用于将响应与其请求链接起来,这两种方法都用于 //异步系统和出于安全原因(问责、不可抵赖) CommandHash []byte `protobuf:"bytes,2,opt,name=command_hash,json=commandHash,proto3" json:"command_hash,omitempty"` //创建者是创建此邮件的一方的标识 Creator []byte `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommandResponseHeader) Descriptor ¶
func (*CommandResponseHeader) Descriptor() ([]byte, []int)
func (*CommandResponseHeader) GetCommandHash ¶
func (m *CommandResponseHeader) GetCommandHash() []byte
func (*CommandResponseHeader) GetCreator ¶
func (m *CommandResponseHeader) GetCreator() []byte
func (*CommandResponseHeader) GetTimestamp ¶
func (m *CommandResponseHeader) GetTimestamp() *timestamp.Timestamp
func (*CommandResponseHeader) ProtoMessage ¶
func (*CommandResponseHeader) ProtoMessage()
func (*CommandResponseHeader) Reset ¶
func (m *CommandResponseHeader) Reset()
func (*CommandResponseHeader) String ¶
func (m *CommandResponseHeader) String() string
func (*CommandResponseHeader) XXX_DiscardUnknown ¶
func (m *CommandResponseHeader) XXX_DiscardUnknown()
func (*CommandResponseHeader) XXX_Marshal ¶
func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommandResponseHeader) XXX_Merge ¶
func (dst *CommandResponseHeader) XXX_Merge(src proto.Message)
func (*CommandResponseHeader) XXX_Size ¶
func (m *CommandResponseHeader) XXX_Size() int
func (*CommandResponseHeader) XXX_Unmarshal ¶
func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error
type CommandResponse_Err ¶
type CommandResponse_Err struct {
Err *Error `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}
type CommandResponse_TokenTransaction ¶
type CommandResponse_TokenTransaction struct {
TokenTransaction *TokenTransaction `protobuf:"bytes,3,opt,name=token_transaction,json=tokenTransaction,proto3,oneof"`
}
type CommandResponse_UnspentTokens ¶
type CommandResponse_UnspentTokens struct {
UnspentTokens *UnspentTokens `protobuf:"bytes,4,opt,name=unspent_tokens,json=unspentTokens,proto3,oneof"`
}
type Command_ApproveRequest ¶
type Command_ApproveRequest struct {
ApproveRequest *ApproveRequest `protobuf:"bytes,6,opt,name=approve_request,json=approveRequest,proto3,oneof"`
}
type Command_ExpectationRequest ¶
type Command_ExpectationRequest struct {
ExpectationRequest *ExpectationRequest `protobuf:"bytes,8,opt,name=expectation_request,json=expectationRequest,proto3,oneof"`
}
type Command_ImportRequest ¶
type Command_ImportRequest struct {
ImportRequest *ImportRequest `protobuf:"bytes,2,opt,name=import_request,json=importRequest,proto3,oneof"`
}
type Command_ListRequest ¶
type Command_ListRequest struct {
ListRequest *ListRequest `protobuf:"bytes,4,opt,name=list_request,json=listRequest,proto3,oneof"`
}
type Command_RedeemRequest ¶
type Command_RedeemRequest struct {
RedeemRequest *RedeemRequest `protobuf:"bytes,5,opt,name=redeem_request,json=redeemRequest,proto3,oneof"`
}
type Command_TransferFromRequest ¶
type Command_TransferFromRequest struct {
TransferFromRequest *TransferRequest `protobuf:"bytes,7,opt,name=transfer_from_request,json=transferFromRequest,proto3,oneof"`
}
type Command_TransferRequest ¶
type Command_TransferRequest struct {
TransferRequest *TransferRequest `protobuf:"bytes,3,opt,name=transfer_request,json=transferRequest,proto3,oneof"`
}
type Error ¶
type Error struct { //与此响应关联的消息。 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` //可用于将元数据包含在此响应中的有效负载。 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
错误报告应用程序错误
func (*Error) Descriptor ¶
func (*Error) GetMessage ¶
func (*Error) GetPayload ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type ExpectationRequest ¶
type ExpectationRequest struct { //凭证包含请求操作的一方的信息 //此字段的内容取决于令牌管理器系统的特性 Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` //预期包含令牌导入或传输的预期输出 Expectation *TokenExpectation `protobuf:"bytes,2,opt,name=expectation,proto3" json:"expectation,omitempty"` //tokenids是用于满足期望的令牌标识符。 TokenIds [][]byte `protobuf:"bytes,3,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ExpectationRequest用于根据令牌期望请求间接令牌导入或传输
func (*ExpectationRequest) Descriptor ¶
func (*ExpectationRequest) Descriptor() ([]byte, []int)
func (*ExpectationRequest) GetCredential ¶
func (m *ExpectationRequest) GetCredential() []byte
func (*ExpectationRequest) GetExpectation ¶
func (m *ExpectationRequest) GetExpectation() *TokenExpectation
func (*ExpectationRequest) GetTokenIds ¶
func (m *ExpectationRequest) GetTokenIds() [][]byte
func (*ExpectationRequest) ProtoMessage ¶
func (*ExpectationRequest) ProtoMessage()
func (*ExpectationRequest) Reset ¶
func (m *ExpectationRequest) Reset()
func (*ExpectationRequest) String ¶
func (m *ExpectationRequest) String() string
func (*ExpectationRequest) XXX_DiscardUnknown ¶
func (m *ExpectationRequest) XXX_DiscardUnknown()
func (*ExpectationRequest) XXX_Marshal ¶
func (m *ExpectationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExpectationRequest) XXX_Merge ¶
func (dst *ExpectationRequest) XXX_Merge(src proto.Message)
func (*ExpectationRequest) XXX_Size ¶
func (m *ExpectationRequest) XXX_Size() int
func (*ExpectationRequest) XXX_Unmarshal ¶
func (m *ExpectationRequest) XXX_Unmarshal(b []byte) error
type Header ¶
type Header struct { //Timestamp是创建消息的本地时间 //由发送者 Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //channelid标识此消息绑定到的通道 ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` //nonce是一个足够长的随机值 //用于确保请求具有足够的熵。 Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` //消息的创建者。 //通常,封送的msp.serialididEntity Creator []byte `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
header是一个通用的重播预防和标识消息,要包含在签名的命令中
func (*Header) Descriptor ¶
func (*Header) GetChannelId ¶
func (*Header) GetCreator ¶
func (*Header) GetTimestamp ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type ImportRequest ¶
type ImportRequest struct { //凭证包含有关请求操作的一方的信息 //此字段的内容取决于所使用的令牌管理器系统的特性。 Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` //tokentoIssue包含有关要颁发的令牌的信息 TokensToIssue []*TokenToIssue `protobuf:"bytes,2,rep,name=tokens_to_issue,json=tokensToIssue,proto3" json:"tokens_to_issue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
importRequest用于请求创建导入
func (*ImportRequest) Descriptor ¶
func (*ImportRequest) Descriptor() ([]byte, []int)
func (*ImportRequest) GetCredential ¶
func (m *ImportRequest) GetCredential() []byte
func (*ImportRequest) GetTokensToIssue ¶
func (m *ImportRequest) GetTokensToIssue() []*TokenToIssue
func (*ImportRequest) ProtoMessage ¶
func (*ImportRequest) ProtoMessage()
func (*ImportRequest) Reset ¶
func (m *ImportRequest) Reset()
func (*ImportRequest) String ¶
func (m *ImportRequest) String() string
func (*ImportRequest) XXX_DiscardUnknown ¶
func (m *ImportRequest) XXX_DiscardUnknown()
func (*ImportRequest) XXX_Marshal ¶
func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImportRequest) XXX_Merge ¶
func (dst *ImportRequest) XXX_Merge(src proto.Message)
func (*ImportRequest) XXX_Size ¶
func (m *ImportRequest) XXX_Size() int
func (*ImportRequest) XXX_Unmarshal ¶
func (m *ImportRequest) XXX_Unmarshal(b []byte) error
type InputId ¶
type InputId struct { //事务ID TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` //事务中输出的索引 Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
inputid使用事务ID和事务中输出的索引指定输出
func (*InputId) Descriptor ¶
func (*InputId) ProtoMessage ¶
func (*InputId) ProtoMessage()
func (*InputId) XXX_DiscardUnknown ¶
func (m *InputId) XXX_DiscardUnknown()
func (*InputId) XXX_Marshal ¶
func (*InputId) XXX_Unmarshal ¶
type ListRequest ¶
type ListRequest struct { Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListRequest用于请求未使用的令牌列表
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetCredential ¶
func (m *ListRequest) GetCredential() []byte
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (dst *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type PlainApprove ¶
type PlainApprove struct { //传输事务的输入由其ID指定 Inputs []*InputId `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` //批准事务包含一个或多个简单的委托输出 DelegatedOutputs []*PlainDelegatedOutput `protobuf:"bytes,2,rep,name=delegated_outputs,json=delegatedOutputs,proto3" json:"delegated_outputs,omitempty"` //批准事务包含一个普通输出 Output *PlainOutput `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
plainApprove以明文格式指定对一个或多个令牌的批准
func (*PlainApprove) Descriptor ¶
func (*PlainApprove) Descriptor() ([]byte, []int)
func (*PlainApprove) GetDelegatedOutputs ¶
func (m *PlainApprove) GetDelegatedOutputs() []*PlainDelegatedOutput
func (*PlainApprove) GetInputs ¶
func (m *PlainApprove) GetInputs() []*InputId
func (*PlainApprove) GetOutput ¶
func (m *PlainApprove) GetOutput() *PlainOutput
func (*PlainApprove) ProtoMessage ¶
func (*PlainApprove) ProtoMessage()
func (*PlainApprove) Reset ¶
func (m *PlainApprove) Reset()
func (*PlainApprove) String ¶
func (m *PlainApprove) String() string
func (*PlainApprove) XXX_DiscardUnknown ¶
func (m *PlainApprove) XXX_DiscardUnknown()
func (*PlainApprove) XXX_Marshal ¶
func (m *PlainApprove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainApprove) XXX_Merge ¶
func (dst *PlainApprove) XXX_Merge(src proto.Message)
func (*PlainApprove) XXX_Size ¶
func (m *PlainApprove) XXX_Size() int
func (*PlainApprove) XXX_Unmarshal ¶
func (m *PlainApprove) XXX_Unmarshal(b []byte) error
type PlainDelegatedOutput ¶
type PlainDelegatedOutput struct { //所有者是序列化实体结构的序列化 Owner []byte `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` //Delegates是可以代表使用输出的序列化标识的数组。 //业主 Delegatees [][]byte `protobuf:"bytes,2,rep,name=delegatees,proto3" json:"delegatees,omitempty"` //令牌类型 Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` //代币数量 Quantity uint64 `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PlainDelegateDoutput是使用明文令牌批准交易的结果。
func (*PlainDelegatedOutput) Descriptor ¶
func (*PlainDelegatedOutput) Descriptor() ([]byte, []int)
func (*PlainDelegatedOutput) GetDelegatees ¶
func (m *PlainDelegatedOutput) GetDelegatees() [][]byte
func (*PlainDelegatedOutput) GetOwner ¶
func (m *PlainDelegatedOutput) GetOwner() []byte
func (*PlainDelegatedOutput) GetQuantity ¶
func (m *PlainDelegatedOutput) GetQuantity() uint64
func (*PlainDelegatedOutput) GetType ¶
func (m *PlainDelegatedOutput) GetType() string
func (*PlainDelegatedOutput) ProtoMessage ¶
func (*PlainDelegatedOutput) ProtoMessage()
func (*PlainDelegatedOutput) Reset ¶
func (m *PlainDelegatedOutput) Reset()
func (*PlainDelegatedOutput) String ¶
func (m *PlainDelegatedOutput) String() string
func (*PlainDelegatedOutput) XXX_DiscardUnknown ¶
func (m *PlainDelegatedOutput) XXX_DiscardUnknown()
func (*PlainDelegatedOutput) XXX_Marshal ¶
func (m *PlainDelegatedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainDelegatedOutput) XXX_Merge ¶
func (dst *PlainDelegatedOutput) XXX_Merge(src proto.Message)
func (*PlainDelegatedOutput) XXX_Size ¶
func (m *PlainDelegatedOutput) XXX_Size() int
func (*PlainDelegatedOutput) XXX_Unmarshal ¶
func (m *PlainDelegatedOutput) XXX_Unmarshal(b []byte) error
type PlainExpectation ¶
type PlainExpectation struct { //有效分配给有效负载的类型: //*普通期望 //*普通期望\转让期望 Payload isPlainExpectation_Payload `protobuf_oneof:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
普通期望表示不提供保密性的普通期望。
func (*PlainExpectation) Descriptor ¶
func (*PlainExpectation) Descriptor() ([]byte, []int)
func (*PlainExpectation) GetImportExpectation ¶
func (m *PlainExpectation) GetImportExpectation() *PlainTokenExpectation
func (*PlainExpectation) GetPayload ¶
func (m *PlainExpectation) GetPayload() isPlainExpectation_Payload
func (*PlainExpectation) GetTransferExpectation ¶
func (m *PlainExpectation) GetTransferExpectation() *PlainTokenExpectation
func (*PlainExpectation) ProtoMessage ¶
func (*PlainExpectation) ProtoMessage()
func (*PlainExpectation) Reset ¶
func (m *PlainExpectation) Reset()
func (*PlainExpectation) String ¶
func (m *PlainExpectation) String() string
func (*PlainExpectation) XXX_DiscardUnknown ¶
func (m *PlainExpectation) XXX_DiscardUnknown()
func (*PlainExpectation) XXX_Marshal ¶
func (m *PlainExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainExpectation) XXX_Merge ¶
func (dst *PlainExpectation) XXX_Merge(src proto.Message)
func (*PlainExpectation) XXX_OneofFuncs ¶
func (*PlainExpectation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*PlainExpectation) XXX_Size ¶
func (m *PlainExpectation) XXX_Size() int
func (*PlainExpectation) XXX_Unmarshal ¶
func (m *PlainExpectation) XXX_Unmarshal(b []byte) error
type PlainExpectation_ImportExpectation ¶
type PlainExpectation_ImportExpectation struct {
ImportExpectation *PlainTokenExpectation `protobuf:"bytes,1,opt,name=import_expectation,json=importExpectation,proto3,oneof"`
}
type PlainExpectation_TransferExpectation ¶
type PlainExpectation_TransferExpectation struct {
TransferExpectation *PlainTokenExpectation `protobuf:"bytes,2,opt,name=transfer_expectation,json=transferExpectation,proto3,oneof"`
}
type PlainImport ¶
type PlainImport struct { //导入事务可以包含一个或多个输出 Outputs []*PlainOutput `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
plainimport指定以明文格式导入一个或多个令牌
func (*PlainImport) Descriptor ¶
func (*PlainImport) Descriptor() ([]byte, []int)
func (*PlainImport) GetOutputs ¶
func (m *PlainImport) GetOutputs() []*PlainOutput
func (*PlainImport) ProtoMessage ¶
func (*PlainImport) ProtoMessage()
func (*PlainImport) Reset ¶
func (m *PlainImport) Reset()
func (*PlainImport) String ¶
func (m *PlainImport) String() string
func (*PlainImport) XXX_DiscardUnknown ¶
func (m *PlainImport) XXX_DiscardUnknown()
func (*PlainImport) XXX_Marshal ¶
func (m *PlainImport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainImport) XXX_Merge ¶
func (dst *PlainImport) XXX_Merge(src proto.Message)
func (*PlainImport) XXX_Size ¶
func (m *PlainImport) XXX_Size() int
func (*PlainImport) XXX_Unmarshal ¶
func (m *PlainImport) XXX_Unmarshal(b []byte) error
type PlainOutput ¶
type PlainOutput struct { //所有者是序列化实体结构的序列化 Owner []byte `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` //令牌类型 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` //代币数量 Quantity uint64 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
纯输出是使用纯文本令牌的导入和传输事务的结果。
func (*PlainOutput) Descriptor ¶
func (*PlainOutput) Descriptor() ([]byte, []int)
func (*PlainOutput) GetOwner ¶
func (m *PlainOutput) GetOwner() []byte
func (*PlainOutput) GetQuantity ¶
func (m *PlainOutput) GetQuantity() uint64
func (*PlainOutput) GetType ¶
func (m *PlainOutput) GetType() string
func (*PlainOutput) ProtoMessage ¶
func (*PlainOutput) ProtoMessage()
func (*PlainOutput) Reset ¶
func (m *PlainOutput) Reset()
func (*PlainOutput) String ¶
func (m *PlainOutput) String() string
func (*PlainOutput) XXX_DiscardUnknown ¶
func (m *PlainOutput) XXX_DiscardUnknown()
func (*PlainOutput) XXX_Marshal ¶
func (m *PlainOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainOutput) XXX_Merge ¶
func (dst *PlainOutput) XXX_Merge(src proto.Message)
func (*PlainOutput) XXX_Size ¶
func (m *PlainOutput) XXX_Size() int
func (*PlainOutput) XXX_Unmarshal ¶
func (m *PlainOutput) XXX_Unmarshal(b []byte) error
type PlainTokenAction ¶
type PlainTokenAction struct { //有效分配给数据的类型: //*PlainTokenAction_PlainImport //*普通标记动作 //*普通代币行动 //*PlainTokenAction_PlainApprove //*PlainTokenAction_PlainTransfer_来自 Data isPlainTokenAction_Data `protobuf_oneof:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PlainTokenAction控制令牌操作的结构,即 不受隐私限制
func (*PlainTokenAction) Descriptor ¶
func (*PlainTokenAction) Descriptor() ([]byte, []int)
func (*PlainTokenAction) GetData ¶
func (m *PlainTokenAction) GetData() isPlainTokenAction_Data
func (*PlainTokenAction) GetPlainApprove ¶
func (m *PlainTokenAction) GetPlainApprove() *PlainApprove
func (*PlainTokenAction) GetPlainImport ¶
func (m *PlainTokenAction) GetPlainImport() *PlainImport
func (*PlainTokenAction) GetPlainRedeem ¶
func (m *PlainTokenAction) GetPlainRedeem() *PlainTransfer
func (*PlainTokenAction) GetPlainTransfer ¶
func (m *PlainTokenAction) GetPlainTransfer() *PlainTransfer
func (*PlainTokenAction) GetPlainTransfer_From ¶
func (m *PlainTokenAction) GetPlainTransfer_From() *PlainTransferFrom
func (*PlainTokenAction) ProtoMessage ¶
func (*PlainTokenAction) ProtoMessage()
func (*PlainTokenAction) Reset ¶
func (m *PlainTokenAction) Reset()
func (*PlainTokenAction) String ¶
func (m *PlainTokenAction) String() string
func (*PlainTokenAction) XXX_DiscardUnknown ¶
func (m *PlainTokenAction) XXX_DiscardUnknown()
func (*PlainTokenAction) XXX_Marshal ¶
func (m *PlainTokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTokenAction) XXX_Merge ¶
func (dst *PlainTokenAction) XXX_Merge(src proto.Message)
func (*PlainTokenAction) XXX_OneofFuncs ¶
func (*PlainTokenAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*PlainTokenAction) XXX_Size ¶
func (m *PlainTokenAction) XXX_Size() int
func (*PlainTokenAction) XXX_Unmarshal ¶
func (m *PlainTokenAction) XXX_Unmarshal(b []byte) error
type PlainTokenAction_PlainApprove ¶
type PlainTokenAction_PlainApprove struct {
PlainApprove *PlainApprove `protobuf:"bytes,4,opt,name=plain_approve,json=plainApprove,proto3,oneof"`
}
type PlainTokenAction_PlainImport ¶
type PlainTokenAction_PlainImport struct {
PlainImport *PlainImport `protobuf:"bytes,1,opt,name=plain_import,json=plainImport,proto3,oneof"`
}
type PlainTokenAction_PlainRedeem ¶
type PlainTokenAction_PlainRedeem struct {
PlainRedeem *PlainTransfer `protobuf:"bytes,3,opt,name=plain_redeem,json=plainRedeem,proto3,oneof"`
}
type PlainTokenAction_PlainTransfer ¶
type PlainTokenAction_PlainTransfer struct {
PlainTransfer *PlainTransfer `protobuf:"bytes,2,opt,name=plain_transfer,json=plainTransfer,proto3,oneof"`
}
type PlainTokenAction_PlainTransfer_From ¶
type PlainTokenAction_PlainTransfer_From struct {
PlainTransfer_From *PlainTransferFrom `protobuf:"bytes,5,opt,name=plain_transfer_From,json=plainTransferFrom,proto3,oneof"`
}
type PlainTokenExpectation ¶
type PlainTokenExpectation struct { //输出包含预期输出 Outputs []*PlainOutput `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PlainTokenExpectation表示 某些输出将匹配
func (*PlainTokenExpectation) Descriptor ¶
func (*PlainTokenExpectation) Descriptor() ([]byte, []int)
func (*PlainTokenExpectation) GetOutputs ¶
func (m *PlainTokenExpectation) GetOutputs() []*PlainOutput
func (*PlainTokenExpectation) ProtoMessage ¶
func (*PlainTokenExpectation) ProtoMessage()
func (*PlainTokenExpectation) Reset ¶
func (m *PlainTokenExpectation) Reset()
func (*PlainTokenExpectation) String ¶
func (m *PlainTokenExpectation) String() string
func (*PlainTokenExpectation) XXX_DiscardUnknown ¶
func (m *PlainTokenExpectation) XXX_DiscardUnknown()
func (*PlainTokenExpectation) XXX_Marshal ¶
func (m *PlainTokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTokenExpectation) XXX_Merge ¶
func (dst *PlainTokenExpectation) XXX_Merge(src proto.Message)
func (*PlainTokenExpectation) XXX_Size ¶
func (m *PlainTokenExpectation) XXX_Size() int
func (*PlainTokenExpectation) XXX_Unmarshal ¶
func (m *PlainTokenExpectation) XXX_Unmarshal(b []byte) error
type PlainTransfer ¶
type PlainTransfer struct { //传输事务的输入由其ID指定 Inputs []*InputId `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` //传输事务可以包含一个或多个输出 Outputs []*PlainOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
plainTransfer指定将一个或多个明文令牌传输到一个或多个输出
func (*PlainTransfer) Descriptor ¶
func (*PlainTransfer) Descriptor() ([]byte, []int)
func (*PlainTransfer) GetInputs ¶
func (m *PlainTransfer) GetInputs() []*InputId
func (*PlainTransfer) GetOutputs ¶
func (m *PlainTransfer) GetOutputs() []*PlainOutput
func (*PlainTransfer) ProtoMessage ¶
func (*PlainTransfer) ProtoMessage()
func (*PlainTransfer) Reset ¶
func (m *PlainTransfer) Reset()
func (*PlainTransfer) String ¶
func (m *PlainTransfer) String() string
func (*PlainTransfer) XXX_DiscardUnknown ¶
func (m *PlainTransfer) XXX_DiscardUnknown()
func (*PlainTransfer) XXX_Marshal ¶
func (m *PlainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTransfer) XXX_Merge ¶
func (dst *PlainTransfer) XXX_Merge(src proto.Message)
func (*PlainTransfer) XXX_Size ¶
func (m *PlainTransfer) XXX_Size() int
func (*PlainTransfer) XXX_Unmarshal ¶
func (m *PlainTransfer) XXX_Unmarshal(b []byte) error
type PlainTransferFrom ¶
type PlainTransferFrom struct { //传输事务的输入由其ID指定 Inputs []*InputId `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` //TransferFrom事务包含多个输出 Outputs []*PlainOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` //TransferFrom事务可以包含一个可删除的输出 DelegatedOutput *PlainDelegatedOutput `protobuf:"bytes,3,opt,name=delegated_output,json=delegatedOutput,proto3" json:"delegated_output,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
plainTransferFrom指定将一个或多个明文委托令牌传输到一个或多个输出 到委托输出
func (*PlainTransferFrom) Descriptor ¶
func (*PlainTransferFrom) Descriptor() ([]byte, []int)
func (*PlainTransferFrom) GetDelegatedOutput ¶
func (m *PlainTransferFrom) GetDelegatedOutput() *PlainDelegatedOutput
func (*PlainTransferFrom) GetInputs ¶
func (m *PlainTransferFrom) GetInputs() []*InputId
func (*PlainTransferFrom) GetOutputs ¶
func (m *PlainTransferFrom) GetOutputs() []*PlainOutput
func (*PlainTransferFrom) ProtoMessage ¶
func (*PlainTransferFrom) ProtoMessage()
func (*PlainTransferFrom) Reset ¶
func (m *PlainTransferFrom) Reset()
func (*PlainTransferFrom) String ¶
func (m *PlainTransferFrom) String() string
func (*PlainTransferFrom) XXX_DiscardUnknown ¶
func (m *PlainTransferFrom) XXX_DiscardUnknown()
func (*PlainTransferFrom) XXX_Marshal ¶
func (m *PlainTransferFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTransferFrom) XXX_Merge ¶
func (dst *PlainTransferFrom) XXX_Merge(src proto.Message)
func (*PlainTransferFrom) XXX_Size ¶
func (m *PlainTransferFrom) XXX_Size() int
func (*PlainTransferFrom) XXX_Unmarshal ¶
func (m *PlainTransferFrom) XXX_Unmarshal(b []byte) error
type ProverClient ¶
type ProverClient interface { //processcommand处理传递的命令,确保正确的访问控制。 //返回的响应允许客户端了解 //操作已成功执行,如果没有,则响应 //报告失败的原因。 ProcessCommand(ctx context.Context, in *SignedCommand, opts ...grpc.CallOption) (*SignedCommandResponse, error) }
prover client是prover服务的客户端API。
有关CTX使用和关闭/结束流式RPC的语义,请参阅https://godoc.org/google.golang.org/grpc clientconn.newstream。
func NewProverClient ¶
func NewProverClient(cc *grpc.ClientConn) ProverClient
type ProverServer ¶
type ProverServer interface { //processcommand处理传递的命令,确保正确的访问控制。 //返回的响应允许客户端了解 //操作已成功执行,如果没有,则响应 //报告失败的原因。 ProcessCommand(context.Context, *SignedCommand) (*SignedCommandResponse, error) }
prover server是prover服务的服务器API。
type RecipientTransferShare ¶
type RecipientTransferShare struct { byte `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` //数量是指要传输给接收者的令牌单元数。 }Recipient []
RecipientTransfershare描述在令牌传输中收件人将收到多少信息
func (*RecipientTransferShare) Descriptor ¶
func (*RecipientTransferShare) Descriptor() ([]byte, []int)
func (*RecipientTransferShare) GetQuantity ¶
func (m *RecipientTransferShare) GetQuantity() uint64
func (*RecipientTransferShare) GetRecipient ¶
func (m *RecipientTransferShare) GetRecipient() []byte
func (*RecipientTransferShare) ProtoMessage ¶
func (*RecipientTransferShare) ProtoMessage()
func (*RecipientTransferShare) Reset ¶
func (m *RecipientTransferShare) Reset()
func (*RecipientTransferShare) String ¶
func (m *RecipientTransferShare) String() string
func (*RecipientTransferShare) XXX_DiscardUnknown ¶
func (m *RecipientTransferShare) XXX_DiscardUnknown()
func (*RecipientTransferShare) XXX_Marshal ¶
func (m *RecipientTransferShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecipientTransferShare) XXX_Merge ¶
func (dst *RecipientTransferShare) XXX_Merge(src proto.Message)
func (*RecipientTransferShare) XXX_Size ¶
func (m *RecipientTransferShare) XXX_Size() int
func (*RecipientTransferShare) XXX_Unmarshal ¶
func (m *RecipientTransferShare) XXX_Unmarshal(b []byte) error
type RedeemRequest ¶
type RedeemRequest struct { //凭证包含请求操作的一方的信息 //此字段的内容取决于令牌管理器系统的特性 Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` //令牌标识指定要兑换的令牌的标识 TokenIds [][]byte `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` //数量是指一个给定的代币需要赎回的单位数量。 QuantityToRedeem uint64 `protobuf:"varint,3,opt,name=quantity_to_redeem,json=quantityToRedeem,proto3" json:"quantity_to_redeem,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
REDEEMREQUEST用于请求令牌赎回
func (*RedeemRequest) Descriptor ¶
func (*RedeemRequest) Descriptor() ([]byte, []int)
func (*RedeemRequest) GetCredential ¶
func (m *RedeemRequest) GetCredential() []byte
func (*RedeemRequest) GetQuantityToRedeem ¶
func (m *RedeemRequest) GetQuantityToRedeem() uint64
func (*RedeemRequest) GetTokenIds ¶
func (m *RedeemRequest) GetTokenIds() [][]byte
func (*RedeemRequest) ProtoMessage ¶
func (*RedeemRequest) ProtoMessage()
func (*RedeemRequest) Reset ¶
func (m *RedeemRequest) Reset()
func (*RedeemRequest) String ¶
func (m *RedeemRequest) String() string
func (*RedeemRequest) XXX_DiscardUnknown ¶
func (m *RedeemRequest) XXX_DiscardUnknown()
func (*RedeemRequest) XXX_Marshal ¶
func (m *RedeemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedeemRequest) XXX_Merge ¶
func (dst *RedeemRequest) XXX_Merge(src proto.Message)
func (*RedeemRequest) XXX_Size ¶
func (m *RedeemRequest) XXX_Size() int
func (*RedeemRequest) XXX_Unmarshal ¶
func (m *RedeemRequest) XXX_Unmarshal(b []byte) error
type SignedCommand ¶
type SignedCommand struct { //命令是命令消息的序列化版本 Command []byte `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` //签名是对命令的签名 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
signedCommand是一个带有命令创建者签名的命令。
func (*SignedCommand) Descriptor ¶
func (*SignedCommand) Descriptor() ([]byte, []int)
func (*SignedCommand) GetCommand ¶
func (m *SignedCommand) GetCommand() []byte
func (*SignedCommand) GetSignature ¶
func (m *SignedCommand) GetSignature() []byte
func (*SignedCommand) ProtoMessage ¶
func (*SignedCommand) ProtoMessage()
func (*SignedCommand) Reset ¶
func (m *SignedCommand) Reset()
func (*SignedCommand) String ¶
func (m *SignedCommand) String() string
func (*SignedCommand) XXX_DiscardUnknown ¶
func (m *SignedCommand) XXX_DiscardUnknown()
func (*SignedCommand) XXX_Marshal ¶
func (m *SignedCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedCommand) XXX_Merge ¶
func (dst *SignedCommand) XXX_Merge(src proto.Message)
func (*SignedCommand) XXX_Size ¶
func (m *SignedCommand) XXX_Size() int
func (*SignedCommand) XXX_Unmarshal ¶
func (m *SignedCommand) XXX_Unmarshal(b []byte) error
type SignedCommandResponse ¶
type SignedCommandResponse struct { //Response是commandResponse消息的序列化版本 Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` //签名是对命令的签名 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SignedCommandResponse是签名的命令响应
func (*SignedCommandResponse) Descriptor ¶
func (*SignedCommandResponse) Descriptor() ([]byte, []int)
func (*SignedCommandResponse) GetResponse ¶
func (m *SignedCommandResponse) GetResponse() []byte
func (*SignedCommandResponse) GetSignature ¶
func (m *SignedCommandResponse) GetSignature() []byte
func (*SignedCommandResponse) ProtoMessage ¶
func (*SignedCommandResponse) ProtoMessage()
func (*SignedCommandResponse) Reset ¶
func (m *SignedCommandResponse) Reset()
func (*SignedCommandResponse) String ¶
func (m *SignedCommandResponse) String() string
func (*SignedCommandResponse) XXX_DiscardUnknown ¶
func (m *SignedCommandResponse) XXX_DiscardUnknown()
func (*SignedCommandResponse) XXX_Marshal ¶
func (m *SignedCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedCommandResponse) XXX_Merge ¶
func (dst *SignedCommandResponse) XXX_Merge(src proto.Message)
func (*SignedCommandResponse) XXX_Size ¶
func (m *SignedCommandResponse) XXX_Size() int
func (*SignedCommandResponse) XXX_Unmarshal ¶
func (m *SignedCommandResponse) XXX_Unmarshal(b []byte) error
type TokenExpectation ¶
type TokenExpectation struct { //有效分配给预期的类型: //*象征性期望 Expectation isTokenExpectation_Expectation `protobuf_oneof:"Expectation"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
象征性期望代表了一种信念,即某人应该通过象征性行动来实现
func (*TokenExpectation) Descriptor ¶
func (*TokenExpectation) Descriptor() ([]byte, []int)
func (*TokenExpectation) GetExpectation ¶
func (m *TokenExpectation) GetExpectation() isTokenExpectation_Expectation
func (*TokenExpectation) GetPlainExpectation ¶
func (m *TokenExpectation) GetPlainExpectation() *PlainExpectation
func (*TokenExpectation) ProtoMessage ¶
func (*TokenExpectation) ProtoMessage()
func (*TokenExpectation) Reset ¶
func (m *TokenExpectation) Reset()
func (*TokenExpectation) String ¶
func (m *TokenExpectation) String() string
func (*TokenExpectation) XXX_DiscardUnknown ¶
func (m *TokenExpectation) XXX_DiscardUnknown()
func (*TokenExpectation) XXX_Marshal ¶
func (m *TokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenExpectation) XXX_Merge ¶
func (dst *TokenExpectation) XXX_Merge(src proto.Message)
func (*TokenExpectation) XXX_OneofFuncs ¶
func (*TokenExpectation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*TokenExpectation) XXX_Size ¶
func (m *TokenExpectation) XXX_Size() int
func (*TokenExpectation) XXX_Unmarshal ¶
func (m *TokenExpectation) XXX_Unmarshal(b []byte) error
type TokenExpectation_PlainExpectation ¶
type TokenExpectation_PlainExpectation struct {
PlainExpectation *PlainExpectation `protobuf:"bytes,1,opt,name=plain_expectation,json=plainExpectation,proto3,oneof"`
}
type TokenOutput ¶
type TokenOutput struct { //ID用于唯一标识令牌 Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //类型是令牌的类型 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` //数量表示此类型令牌的编号 Quantity uint64 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
tokenOutput用于指定ListRequest返回的令牌
func (*TokenOutput) Descriptor ¶
func (*TokenOutput) Descriptor() ([]byte, []int)
func (*TokenOutput) GetId ¶
func (m *TokenOutput) GetId() []byte
func (*TokenOutput) GetQuantity ¶
func (m *TokenOutput) GetQuantity() uint64
func (*TokenOutput) GetType ¶
func (m *TokenOutput) GetType() string
func (*TokenOutput) ProtoMessage ¶
func (*TokenOutput) ProtoMessage()
func (*TokenOutput) Reset ¶
func (m *TokenOutput) Reset()
func (*TokenOutput) String ¶
func (m *TokenOutput) String() string
func (*TokenOutput) XXX_DiscardUnknown ¶
func (m *TokenOutput) XXX_DiscardUnknown()
func (*TokenOutput) XXX_Marshal ¶
func (m *TokenOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenOutput) XXX_Merge ¶
func (dst *TokenOutput) XXX_Merge(src proto.Message)
func (*TokenOutput) XXX_Size ¶
func (m *TokenOutput) XXX_Size() int
func (*TokenOutput) XXX_Unmarshal ¶
func (m *TokenOutput) XXX_Unmarshal(b []byte) error
type TokenToIssue ¶
type TokenToIssue struct { //收件人是指要颁发的令牌的所有者 Recipient []byte `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` //类型引用令牌类型 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` //数量是指要发行的代币单位的数量。 Quantity uint64 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
tokentoissue描述要在系统中颁发的令牌
func (*TokenToIssue) Descriptor ¶
func (*TokenToIssue) Descriptor() ([]byte, []int)
func (*TokenToIssue) GetQuantity ¶
func (m *TokenToIssue) GetQuantity() uint64
func (*TokenToIssue) GetRecipient ¶
func (m *TokenToIssue) GetRecipient() []byte
func (*TokenToIssue) GetType ¶
func (m *TokenToIssue) GetType() string
func (*TokenToIssue) ProtoMessage ¶
func (*TokenToIssue) ProtoMessage()
func (*TokenToIssue) Reset ¶
func (m *TokenToIssue) Reset()
func (*TokenToIssue) String ¶
func (m *TokenToIssue) String() string
func (*TokenToIssue) XXX_DiscardUnknown ¶
func (m *TokenToIssue) XXX_DiscardUnknown()
func (*TokenToIssue) XXX_Marshal ¶
func (m *TokenToIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenToIssue) XXX_Merge ¶
func (dst *TokenToIssue) XXX_Merge(src proto.Message)
func (*TokenToIssue) XXX_Size ¶
func (m *TokenToIssue) XXX_Size() int
func (*TokenToIssue) XXX_Unmarshal ¶
func (m *TokenToIssue) XXX_Unmarshal(b []byte) error
type TokenTransaction ¶
type TokenTransaction struct { //操作携带此事务的内容。 // //有效分配给操作的类型: //*代币交易 Action isTokenTransaction_Action `protobuf_oneof:"action"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
tokenTransaction控制payload.data的结构,当 事务的信封头指示类型为的事务 “令牌”
func (*TokenTransaction) Descriptor ¶
func (*TokenTransaction) Descriptor() ([]byte, []int)
func (*TokenTransaction) GetAction ¶
func (m *TokenTransaction) GetAction() isTokenTransaction_Action
func (*TokenTransaction) GetPlainAction ¶
func (m *TokenTransaction) GetPlainAction() *PlainTokenAction
func (*TokenTransaction) ProtoMessage ¶
func (*TokenTransaction) ProtoMessage()
func (*TokenTransaction) Reset ¶
func (m *TokenTransaction) Reset()
func (*TokenTransaction) String ¶
func (m *TokenTransaction) String() string
func (*TokenTransaction) XXX_DiscardUnknown ¶
func (m *TokenTransaction) XXX_DiscardUnknown()
func (*TokenTransaction) XXX_Marshal ¶
func (m *TokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenTransaction) XXX_Merge ¶
func (dst *TokenTransaction) XXX_Merge(src proto.Message)
func (*TokenTransaction) XXX_OneofFuncs ¶
func (*TokenTransaction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*TokenTransaction) XXX_Size ¶
func (m *TokenTransaction) XXX_Size() int
func (*TokenTransaction) XXX_Unmarshal ¶
func (m *TokenTransaction) XXX_Unmarshal(b []byte) error
type TokenTransaction_PlainAction ¶
type TokenTransaction_PlainAction struct {
PlainAction *PlainTokenAction `protobuf:"bytes,1,opt,name=plain_action,json=plainAction,proto3,oneof"`
}
type TransferRequest ¶
type TransferRequest struct { Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` TokenIds [][]byte `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RequestTransfer用于请求创建传输
func (*TransferRequest) Descriptor ¶
func (*TransferRequest) Descriptor() ([]byte, []int)
func (*TransferRequest) GetCredential ¶
func (m *TransferRequest) GetCredential() []byte
func (*TransferRequest) GetShares ¶
func (m *TransferRequest) GetShares() []*RecipientTransferShare
func (*TransferRequest) GetTokenIds ¶
func (m *TransferRequest) GetTokenIds() [][]byte
func (*TransferRequest) ProtoMessage ¶
func (*TransferRequest) ProtoMessage()
func (*TransferRequest) Reset ¶
func (m *TransferRequest) Reset()
func (*TransferRequest) String ¶
func (m *TransferRequest) String() string
func (*TransferRequest) XXX_DiscardUnknown ¶
func (m *TransferRequest) XXX_DiscardUnknown()
func (*TransferRequest) XXX_Marshal ¶
func (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferRequest) XXX_Merge ¶
func (dst *TransferRequest) XXX_Merge(src proto.Message)
func (*TransferRequest) XXX_Size ¶
func (m *TransferRequest) XXX_Size() int
func (*TransferRequest) XXX_Unmarshal ¶
func (m *TransferRequest) XXX_Unmarshal(b []byte) error
type UnspentTokens ¶
type UnspentTokens struct { Tokens []*TokenOutput `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
未使用的令牌用于保存listRequest的输出
func (*UnspentTokens) Descriptor ¶
func (*UnspentTokens) Descriptor() ([]byte, []int)
func (*UnspentTokens) GetTokens ¶
func (m *UnspentTokens) GetTokens() []*TokenOutput
func (*UnspentTokens) ProtoMessage ¶
func (*UnspentTokens) ProtoMessage()
func (*UnspentTokens) Reset ¶
func (m *UnspentTokens) Reset()
func (*UnspentTokens) String ¶
func (m *UnspentTokens) String() string
func (*UnspentTokens) XXX_DiscardUnknown ¶
func (m *UnspentTokens) XXX_DiscardUnknown()
func (*UnspentTokens) XXX_Marshal ¶
func (m *UnspentTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnspentTokens) XXX_Merge ¶
func (dst *UnspentTokens) XXX_Merge(src proto.Message)
func (*UnspentTokens) XXX_Size ¶
func (m *UnspentTokens) XXX_Size() int
func (*UnspentTokens) XXX_Unmarshal ¶
func (m *UnspentTokens) XXX_Unmarshal(b []byte) error