func RegisterProverServer(s *grpc.Server, srv ProverServer)
ALlowance defines how many and what tokens a recipient can transfer on behalf of their actual owner
type AllowanceRecipientShare struct {
// Recipient refers to the entity allowed to spend the specified quantity from the tokens identified by token IDs
Recipient []byte `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
// Quantity is how many tokens are delegated to the recipient
Quantity uint64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
ApproveRequest is used to request the creation of allowance from one owner to another
type ApproveRequest struct {
// Credential refers to the public credential of the request creator
Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
// Allowance describes the tokens the creator of the request is willing to delegate
AllowanceShares []*AllowanceRecipientShare `protobuf:"bytes,2,rep,name=allowance_shares,json=allowanceShares,proto3" json:"allowance_shares,omitempty"`
// TokenIds are the token identifiers used to create the allowance
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:"-"`
}
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
Command describes the type of operation that a client is requesting.
type Command struct {
// Header is the header of this command
Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// Payload is the payload of this command. It can assume one of the following value
//
// Types that are valid to be assigned to Payload:
// *Command_ImportRequest
// *Command_TransferRequest
// *Command_ListRequest
// *Command_RedeemRequest
// *Command_ApproveRequest
// *Command_TransferFromRequest
// *Command_ExpectationRequest
Payload isCommand_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *Command) XXX_Size() int
func (m *Command) XXX_Unmarshal(b []byte) error
A CommnandResponse is returned from a prover to the command submitter.
type CommandResponse struct {
// Header of the response.
Header *CommandResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// Payload of the response.
//
// Types that are valid to be assigned to Payload:
// *CommandResponse_Err
// *CommandResponse_TokenTransaction
// *CommandResponse_UnspentTokens
Payload isCommandResponse_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *CommandResponse) XXX_Size() int
func (m *CommandResponse) XXX_Unmarshal(b []byte) error
type CommandResponseHeader struct {
// Timestamp is the time that the message
// was created as defined by the sender
Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// CommandHash is the hash computed on the concatenation of the SignedCommand's command and signature fields.
// If not specified differently, SHA256 is used
// The hash is used to link a response with its request, both for bookeeping purposes on an
// asynchronous system and for security reasons (accountability, non-repudiation)
CommandHash []byte `protobuf:"bytes,2,opt,name=command_hash,json=commandHash,proto3" json:"command_hash,omitempty"`
// Creator is the identity of the party creating this message
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() ([]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 struct {
Err *Error `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}
type CommandResponse_TokenTransaction struct {
TokenTransaction *TokenTransaction `protobuf:"bytes,3,opt,name=token_transaction,json=tokenTransaction,proto3,oneof"`
}
type CommandResponse_UnspentTokens struct {
UnspentTokens *UnspentTokens `protobuf:"bytes,4,opt,name=unspent_tokens,json=unspentTokens,proto3,oneof"`
}
type Command_ApproveRequest struct {
ApproveRequest *ApproveRequest `protobuf:"bytes,6,opt,name=approve_request,json=approveRequest,proto3,oneof"`
}
type Command_ExpectationRequest struct {
ExpectationRequest *ExpectationRequest `protobuf:"bytes,8,opt,name=expectation_request,json=expectationRequest,proto3,oneof"`
}
type Command_ImportRequest struct {
ImportRequest *ImportRequest `protobuf:"bytes,2,opt,name=import_request,json=importRequest,proto3,oneof"`
}
type Command_ListRequest struct {
ListRequest *ListRequest `protobuf:"bytes,4,opt,name=list_request,json=listRequest,proto3,oneof"`
}
type Command_RedeemRequest struct {
RedeemRequest *RedeemRequest `protobuf:"bytes,5,opt,name=redeem_request,json=redeemRequest,proto3,oneof"`
}
type Command_TransferFromRequest struct {
TransferFromRequest *TransferRequest `protobuf:"bytes,7,opt,name=transfer_from_request,json=transferFromRequest,proto3,oneof"`
}
type Command_TransferRequest struct {
TransferRequest *TransferRequest `protobuf:"bytes,3,opt,name=transfer_request,json=transferRequest,proto3,oneof"`
}
Error reports an application error
type Error struct {
// Message associated with this response.
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Payload that can be used to include metadata with this response.
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() ([]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
ExpectationRequest is used to request indirect token import or transfer based on the token expectation
type ExpectationRequest struct {
// credential contains information for the party who is requesting the operation
// The content of this field depends on the characteristic of token manager system
Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
// expectation contains the expected outputs for token import or transfer
Expectation *TokenExpectation `protobuf:"bytes,2,opt,name=expectation,proto3" json:"expectation,omitempty"`
// TokenIds are the token identifiers used to fulfill the expectation
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:"-"`
}
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
Header is a generic replay prevention and identity message to include in a signed command
type Header struct {
// Timestamp is the local time when the message was created
// by the sender
Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// ChannelId identifies the channel this message is bound for
ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
// Nonce is a sufficientley long random value
// used to ensure the request has enough entropy.
Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
// Creator of the message.
// Typically, a marshaled msp.SerializedIdentity
Creator []byte `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
ImportRequest is used to request creation of imports
type ImportRequest struct {
// Credential contains information about the party who is requesting the operation
// the content of this field depends on the charateristic of the token manager system used.
Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
// TokenToIssue contains the information about the tokens to be issued
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:"-"`
}
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
An InputId specifies an output using the transaction ID and the index of the output in the transaction
type InputId struct {
// The transaction ID
TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
// The index of the output in the transaction
Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
ListRequest is used to request a list of unspent tokens
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:"-"`
}
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
PlainApprove specifies an approve of one or more tokens in plaintext format
type PlainApprove struct {
// The inputs to the transfer transaction are specified by their ID
Inputs []*InputId `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
// An approve transaction contains one or more plain delegated outputs
DelegatedOutputs []*PlainDelegatedOutput `protobuf:"bytes,2,rep,name=delegated_outputs,json=delegatedOutputs,proto3" json:"delegated_outputs,omitempty"`
// An approve transaction contains one plain output
Output *PlainOutput `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
A PlainDelegatedOutput is the result of approve transactions using plaintext tokens
type PlainDelegatedOutput struct {
// The owner is the serialization of a SerializedIdentity struct
Owner []byte `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The delegatees is an arrary of the serialized identities that can spend the output on behalf
// the owner
Delegatees [][]byte `protobuf:"bytes,2,rep,name=delegatees,proto3" json:"delegatees,omitempty"`
// The token type
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// The quantity of tokens
Quantity uint64 `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
PlainExpectation represent the plain expectation where no confidentiality is provided.
type PlainExpectation struct {
// Types that are valid to be assigned to Payload:
// *PlainExpectation_ImportExpectation
// *PlainExpectation_TransferExpectation
Payload isPlainExpectation_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *PlainExpectation) XXX_Size() int
func (m *PlainExpectation) XXX_Unmarshal(b []byte) error
type PlainExpectation_ImportExpectation struct {
ImportExpectation *PlainTokenExpectation `protobuf:"bytes,1,opt,name=import_expectation,json=importExpectation,proto3,oneof"`
}
type PlainExpectation_TransferExpectation struct {
TransferExpectation *PlainTokenExpectation `protobuf:"bytes,2,opt,name=transfer_expectation,json=transferExpectation,proto3,oneof"`
}
PlainImport specifies an import of one or more tokens in plaintext format
type PlainImport struct {
// An import transaction may contain one or more outputs
Outputs []*PlainOutput `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
A PlainOutput is the result of import and transfer transactions using plaintext tokens
type PlainOutput struct {
// The owner is the serialization of a SerializedIdentity struct
Owner []byte `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The token type
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The quantity of tokens
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() ([]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
PlainTokenAction governs the structure of a token action that is subjected to no privacy restrictions
type PlainTokenAction struct {
// Types that are valid to be assigned to Data:
// *PlainTokenAction_PlainImport
// *PlainTokenAction_PlainTransfer
// *PlainTokenAction_PlainRedeem
// *PlainTokenAction_PlainApprove
// *PlainTokenAction_PlainTransfer_From
Data isPlainTokenAction_Data `protobuf_oneof:"data"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *PlainTokenAction) XXX_Size() int
func (m *PlainTokenAction) XXX_Unmarshal(b []byte) error
type PlainTokenAction_PlainApprove struct {
PlainApprove *PlainApprove `protobuf:"bytes,4,opt,name=plain_approve,json=plainApprove,proto3,oneof"`
}
type PlainTokenAction_PlainImport struct {
PlainImport *PlainImport `protobuf:"bytes,1,opt,name=plain_import,json=plainImport,proto3,oneof"`
}
type PlainTokenAction_PlainRedeem struct {
PlainRedeem *PlainTransfer `protobuf:"bytes,3,opt,name=plain_redeem,json=plainRedeem,proto3,oneof"`
}
type PlainTokenAction_PlainTransfer struct {
PlainTransfer *PlainTransfer `protobuf:"bytes,2,opt,name=plain_transfer,json=plainTransfer,proto3,oneof"`
}
type PlainTokenAction_PlainTransfer_From struct {
PlainTransfer_From *PlainTransferFrom `protobuf:"bytes,5,opt,name=plain_transfer_From,json=plainTransferFrom,proto3,oneof"`
}
PlainTokenExpectation represents the expecation that certain outputs will be matched
type PlainTokenExpectation struct {
// Outputs contains the expected outputs
Outputs []*PlainOutput `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
PlainTransfer specifies a transfer of one or more plaintext tokens to one or more outputs
type PlainTransfer struct {
// The inputs to the transfer transaction are specified by their ID
Inputs []*InputId `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
// A transfer transaction may contain one or more outputs
Outputs []*PlainOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
PlainTransferFrom specifies a transfer of one or more plaintext delegated tokens to one or more outputs an to a delegated output
type PlainTransferFrom struct {
// The inputs to the transfer transaction are specified by their ID
Inputs []*InputId `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
// A transferFrom transaction contains multiple outputs
Outputs []*PlainOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
// A transferFrom transaction may contain one delegatable output
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:"-"`
}
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
ProverClient is the client API for Prover service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProverClient interface {
// ProcessCommand processes the passed command ensuring proper access control.
// The returned response allows the client to understand if the
// operation was succeffully executed and if not, the response
// reports the reason of the failure.
ProcessCommand(ctx context.Context, in *SignedCommand, opts ...grpc.CallOption) (*SignedCommandResponse, error)
}
func NewProverClient(cc *grpc.ClientConn) ProverClient
ProverServer is the server API for Prover service.
type ProverServer interface {
// ProcessCommand processes the passed command ensuring proper access control.
// The returned response allows the client to understand if the
// operation was succeffully executed and if not, the response
// reports the reason of the failure.
ProcessCommand(context.Context, *SignedCommand) (*SignedCommandResponse, error)
}
RecipientTransferShare describes how much a recipient will receive in a token transfer
type RecipientTransferShare struct {
// Recipient refers to the prospective owner of a transferred token
Recipient []byte `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
// Quantity refers to the number of token units to be transferred to the recipient
Quantity uint64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
RedeemRequest is used to request token redemption
type RedeemRequest struct {
// Credential contains information for the party who is requesting the operation
// The content of this field depends on the characteristic of token manager system
Credential []byte `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
// token_ids specifies the ids for the tokens that will be redeemed
TokenIds [][]byte `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
// quantity refers to the number of units of a given token needs to be redeemed.
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:"-"`
}
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
SignedCommand is a command that carries the signature of the command's creator.
type SignedCommand struct {
// Command is the serialised version of a Command message
Command []byte `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
// Signature is the signature over command
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
SignedCommandResponse is a signed command response
type SignedCommandResponse struct {
// Response is the serialised version of a CommandResponse message
Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
// Signature is the signature over command
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
TokenExpectation represent the belief that someone should achieve in terms of a token action
type TokenExpectation struct {
// Types that are valid to be assigned to Expectation:
// *TokenExpectation_PlainExpectation
Expectation isTokenExpectation_Expectation `protobuf_oneof:"Expectation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *TokenExpectation) XXX_Size() int
func (m *TokenExpectation) XXX_Unmarshal(b []byte) error
type TokenExpectation_PlainExpectation struct {
PlainExpectation *PlainExpectation `protobuf:"bytes,1,opt,name=plain_expectation,json=plainExpectation,proto3,oneof"`
}
TokenOutput is used to specify a token returned by ListRequest
type TokenOutput struct {
// ID is used to uniquely identify the token
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Type is the type of the token
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Quantity represents the number for this type of token
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 (*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
TokenToIssue describes a token to be issued in the system
type TokenToIssue struct {
// Recipient refers to the owner of the token to be issued
Recipient []byte `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
// Type refers to the token type
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Quantity refers to the number of token units to be issued
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 (*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
TokenTransaction governs the structure of Payload.data, when the transaction's envelope header indicates a transaction of type "Token"
type TokenTransaction struct {
// action carries the content of this transaction.
//
// Types that are valid to be assigned to Action:
// *TokenTransaction_PlainAction
Action isTokenTransaction_Action `protobuf_oneof:"action"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *TokenTransaction) XXX_Size() int
func (m *TokenTransaction) XXX_Unmarshal(b []byte) error
type TokenTransaction_PlainAction struct {
PlainAction *PlainTokenAction `protobuf:"bytes,1,opt,name=plain_action,json=plainAction,proto3,oneof"`
}
RequestTransfer is used to request creation of transfers
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"`
Shares []*RecipientTransferShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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
UnspentTokens is used to hold the output of listRequest
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:"-"`
}
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