{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package token\n\n## Functions\n\n```go\nfunc RegisterProverServer(s *grpc.Server, srv ProverServer)\n```\n\n## Types\n\n```go\ntype AllowanceRecipientShare struct {\n\t// Recipient refers to the entity allowed to spend the specified quantity from the tokens identified by token IDs\n\tRecipient []byte `protobuf:\"bytes,1,opt,name=recipient,proto3\" json:\"recipient,omitempty\"`\n\t// Quantity is how many tokens are delegated to the recipient\n\tQuantity             uint64   `protobuf:\"varint,2,opt,name=quantity,proto3\" json:\"quantity,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nALlowance defines how many and what tokens a recipient can transfer on behalf of their actual owner\n\n```go\nfunc (*AllowanceRecipientShare) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *AllowanceRecipientShare) GetQuantity() uint64\n```\n\n```go\nfunc (m *AllowanceRecipientShare) GetRecipient() []byte\n```\n\n```go\nfunc (*AllowanceRecipientShare) ProtoMessage()\n```\n\n```go\nfunc (m *AllowanceRecipientShare) Reset()\n```\n\n```go\nfunc (m *AllowanceRecipientShare) String() string\n```\n\n```go\nfunc (m *AllowanceRecipientShare) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *AllowanceRecipientShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *AllowanceRecipientShare) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *AllowanceRecipientShare) XXX_Size() int\n```\n\n```go\nfunc (m *AllowanceRecipientShare) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ApproveRequest struct {\n\t// Credential refers to the public credential of the request creator\n\tCredential []byte `protobuf:\"bytes,1,opt,name=credential,proto3\" json:\"credential,omitempty\"`\n\t// Allowance describes the tokens the creator of the request is willing to delegate\n\tAllowanceShares []*AllowanceRecipientShare `protobuf:\"bytes,2,rep,name=allowance_shares,json=allowanceShares,proto3\" json:\"allowance_shares,omitempty\"`\n\t// TokenIds are the token identifiers used to create the allowance\n\tTokenIds             [][]byte `protobuf:\"bytes,3,rep,name=token_ids,json=tokenIds,proto3\" json:\"token_ids,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nApproveRequest is used to request the creation of allowance from one owner to another\n\n```go\nfunc (*ApproveRequest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ApproveRequest) GetAllowanceShares() []*AllowanceRecipientShare\n```\n\n```go\nfunc (m *ApproveRequest) GetCredential() []byte\n```\n\n```go\nfunc (m *ApproveRequest) GetTokenIds() [][]byte\n```\n\n```go\nfunc (*ApproveRequest) ProtoMessage()\n```\n\n```go\nfunc (m *ApproveRequest) Reset()\n```\n\n```go\nfunc (m *ApproveRequest) String() string\n```\n\n```go\nfunc (m *ApproveRequest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ApproveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ApproveRequest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ApproveRequest) XXX_Size() int\n```\n\n```go\nfunc (m *ApproveRequest) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Command struct {\n\t// Header is the header of this command\n\tHeader *Header `protobuf:\"bytes,1,opt,name=header,proto3\" json:\"header,omitempty\"`\n\t// Payload is the payload of this command. It can assume one of the following value\n\t//\n\t// Types that are valid to be assigned to Payload:\n\t//\t*Command_ImportRequest\n\t//\t*Command_TransferRequest\n\t//\t*Command_ListRequest\n\t//\t*Command_RedeemRequest\n\t//\t*Command_ApproveRequest\n\t//\t*Command_TransferFromRequest\n\t//\t*Command_ExpectationRequest\n\tPayload              isCommand_Payload `protobuf_oneof:\"payload\"`\n\tXXX_NoUnkeyedLiteral struct{}          `json:\"-\"`\n\tXXX_unrecognized     []byte            `json:\"-\"`\n\tXXX_sizecache        int32             `json:\"-\"`\n}\n```\nCommand describes the type of operation that a client is requesting.\n\n```go\nfunc (*Command) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Command) GetApproveRequest() *ApproveRequest\n```\n\n```go\nfunc (m *Command) GetExpectationRequest() *ExpectationRequest\n```\n\n```go\nfunc (m *Command) GetHeader() *Header\n```\n\n```go\nfunc (m *Command) GetImportRequest() *ImportRequest\n```\n\n```go\nfunc (m *Command) GetListRequest() *ListRequest\n```\n\n```go\nfunc (m *Command) GetPayload() isCommand_Payload\n```\n\n```go\nfunc (m *Command) GetRedeemRequest() *RedeemRequest\n```\n\n```go\nfunc (m *Command) GetTransferFromRequest() *TransferRequest\n```\n\n```go\nfunc (m *Command) GetTransferRequest() *TransferRequest\n```\n\n```go\nfunc (*Command) ProtoMessage()\n```\n\n```go\nfunc (m *Command) Reset()\n```\n\n```go\nfunc (m *Command) String() string\n```\n\n```go\nfunc (m *Command) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Command) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*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{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *Command) XXX_Size() int\n```\n\n```go\nfunc (m *Command) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype CommandResponse struct {\n\t// Header of the response.\n\tHeader *CommandResponseHeader `protobuf:\"bytes,1,opt,name=header,proto3\" json:\"header,omitempty\"`\n\t// Payload of the response.\n\t//\n\t// Types that are valid to be assigned to Payload:\n\t//\t*CommandResponse_Err\n\t//\t*CommandResponse_TokenTransaction\n\t//\t*CommandResponse_UnspentTokens\n\tPayload              isCommandResponse_Payload `protobuf_oneof:\"payload\"`\n\tXXX_NoUnkeyedLiteral struct{}                  `json:\"-\"`\n\tXXX_unrecognized     []byte                    `json:\"-\"`\n\tXXX_sizecache        int32                     `json:\"-\"`\n}\n```\nA CommnandResponse is returned from a prover to the command submitter.\n\n```go\nfunc (*CommandResponse) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CommandResponse) GetErr() *Error\n```\n\n```go\nfunc (m *CommandResponse) GetHeader() *CommandResponseHeader\n```\n\n```go\nfunc (m *CommandResponse) GetPayload() isCommandResponse_Payload\n```\n\n```go\nfunc (m *CommandResponse) GetTokenTransaction() *TokenTransaction\n```\n\n```go\nfunc (m *CommandResponse) GetUnspentTokens() *UnspentTokens\n```\n\n```go\nfunc (*CommandResponse) ProtoMessage()\n```\n\n```go\nfunc (m *CommandResponse) Reset()\n```\n\n```go\nfunc (m *CommandResponse) String() string\n```\n\n```go\nfunc (m *CommandResponse) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *CommandResponse) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*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{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *CommandResponse) XXX_Size() int\n```\n\n```go\nfunc (m *CommandResponse) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype CommandResponseHeader struct {\n\t// Timestamp is the time that the message\n\t// was created as  defined by the sender\n\tTimestamp *timestamp.Timestamp `protobuf:\"bytes,1,opt,name=timestamp,proto3\" json:\"timestamp,omitempty\"`\n\t// CommandHash is the hash computed on the concatenation of the SignedCommand's command and signature fields.\n\t// If not specified differently, SHA256 is used\n\t// The hash is used to link a response with its request, both for bookeeping purposes on an\n\t// asynchronous system and for security reasons (accountability, non-repudiation)\n\tCommandHash []byte `protobuf:\"bytes,2,opt,name=command_hash,json=commandHash,proto3\" json:\"command_hash,omitempty\"`\n\t// Creator is the identity of the party creating this message\n\tCreator              []byte   `protobuf:\"bytes,3,opt,name=creator,proto3\" json:\"creator,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\n\n```go\nfunc (*CommandResponseHeader) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CommandResponseHeader) GetCommandHash() []byte\n```\n\n```go\nfunc (m *CommandResponseHeader) GetCreator() []byte\n```\n\n```go\nfunc (m *CommandResponseHeader) GetTimestamp() *timestamp.Timestamp\n```\n\n```go\nfunc (*CommandResponseHeader) ProtoMessage()\n```\n\n```go\nfunc (m *CommandResponseHeader) Reset()\n```\n\n```go\nfunc (m *CommandResponseHeader) String() string\n```\n\n```go\nfunc (m *CommandResponseHeader) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *CommandResponseHeader) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *CommandResponseHeader) XXX_Size() int\n```\n\n```go\nfunc (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype CommandResponse_Err struct {\n\tErr *Error `protobuf:\"bytes,2,opt,name=err,proto3,oneof\"`\n}\n```\n\n```go\ntype CommandResponse_TokenTransaction struct {\n\tTokenTransaction *TokenTransaction `protobuf:\"bytes,3,opt,name=token_transaction,json=tokenTransaction,proto3,oneof\"`\n}\n```\n\n```go\ntype CommandResponse_UnspentTokens struct {\n\tUnspentTokens *UnspentTokens `protobuf:\"bytes,4,opt,name=unspent_tokens,json=unspentTokens,proto3,oneof\"`\n}\n```\n\n```go\ntype Command_ApproveRequest struct {\n\tApproveRequest *ApproveRequest `protobuf:\"bytes,6,opt,name=approve_request,json=approveRequest,proto3,oneof\"`\n}\n```\n\n```go\ntype Command_ExpectationRequest struct {\n\tExpectationRequest *ExpectationRequest `protobuf:\"bytes,8,opt,name=expectation_request,json=expectationRequest,proto3,oneof\"`\n}\n```\n\n```go\ntype Command_ImportRequest struct {\n\tImportRequest *ImportRequest `protobuf:\"bytes,2,opt,name=import_request,json=importRequest,proto3,oneof\"`\n}\n```\n\n```go\ntype Command_ListRequest struct {\n\tListRequest *ListRequest `protobuf:\"bytes,4,opt,name=list_request,json=listRequest,proto3,oneof\"`\n}\n```\n\n```go\ntype Command_RedeemRequest struct {\n\tRedeemRequest *RedeemRequest `protobuf:\"bytes,5,opt,name=redeem_request,json=redeemRequest,proto3,oneof\"`\n}\n```\n\n```go\ntype Command_TransferFromRequest struct {\n\tTransferFromRequest *TransferRequest `protobuf:\"bytes,7,opt,name=transfer_from_request,json=transferFromRequest,proto3,oneof\"`\n}\n```\n\n```go\ntype Command_TransferRequest struct {\n\tTransferRequest *TransferRequest `protobuf:\"bytes,3,opt,name=transfer_request,json=transferRequest,proto3,oneof\"`\n}\n```\n\n```go\ntype Error struct {\n\t// Message associated with this response.\n\tMessage string `protobuf:\"bytes,1,opt,name=message,proto3\" json:\"message,omitempty\"`\n\t// Payload that can be used to include metadata with this response.\n\tPayload              []byte   `protobuf:\"bytes,2,opt,name=payload,proto3\" json:\"payload,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nError reports an application error\n\n```go\nfunc (*Error) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Error) GetMessage() string\n```\n\n```go\nfunc (m *Error) GetPayload() []byte\n```\n\n```go\nfunc (*Error) ProtoMessage()\n```\n\n```go\nfunc (m *Error) Reset()\n```\n\n```go\nfunc (m *Error) String() string\n```\n\n```go\nfunc (m *Error) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Error) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Error) XXX_Size() int\n```\n\n```go\nfunc (m *Error) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ExpectationRequest struct {\n\t// credential contains information for the party who is requesting the operation\n\t// The content of this field depends on the characteristic of token manager system\n\tCredential []byte `protobuf:\"bytes,1,opt,name=credential,proto3\" json:\"credential,omitempty\"`\n\t// expectation contains the expected outputs for token import or transfer\n\tExpectation *TokenExpectation `protobuf:\"bytes,2,opt,name=expectation,proto3\" json:\"expectation,omitempty\"`\n\t// TokenIds are the token identifiers used to fulfill the expectation\n\tTokenIds             [][]byte `protobuf:\"bytes,3,rep,name=token_ids,json=tokenIds,proto3\" json:\"token_ids,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nExpectationRequest is used to request indirect token import or transfer based on the token expectation\n\n```go\nfunc (*ExpectationRequest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ExpectationRequest) GetCredential() []byte\n```\n\n```go\nfunc (m *ExpectationRequest) GetExpectation() *TokenExpectation\n```\n\n```go\nfunc (m *ExpectationRequest) GetTokenIds() [][]byte\n```\n\n```go\nfunc (*ExpectationRequest) ProtoMessage()\n```\n\n```go\nfunc (m *ExpectationRequest) Reset()\n```\n\n```go\nfunc (m *ExpectationRequest) String() string\n```\n\n```go\nfunc (m *ExpectationRequest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ExpectationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ExpectationRequest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ExpectationRequest) XXX_Size() int\n```\n\n```go\nfunc (m *ExpectationRequest) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Header struct {\n\t// Timestamp is the local time when the message was created\n\t// by the sender\n\tTimestamp *timestamp.Timestamp `protobuf:\"bytes,1,opt,name=timestamp,proto3\" json:\"timestamp,omitempty\"`\n\t// ChannelId identifies the channel this message is bound for\n\tChannelId string `protobuf:\"bytes,2,opt,name=channel_id,json=channelId,proto3\" json:\"channel_id,omitempty\"`\n\t// Nonce is a sufficientley long random value\n\t// used to ensure the request has enough entropy.\n\tNonce []byte `protobuf:\"bytes,3,opt,name=nonce,proto3\" json:\"nonce,omitempty\"`\n\t// Creator of the message.\n\t// Typically, a marshaled msp.SerializedIdentity\n\tCreator              []byte   `protobuf:\"bytes,4,opt,name=creator,proto3\" json:\"creator,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nHeader is a generic replay prevention and identity message to include in a signed command\n\n```go\nfunc (*Header) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Header) GetChannelId() string\n```\n\n```go\nfunc (m *Header) GetCreator() []byte\n```\n\n```go\nfunc (m *Header) GetNonce() []byte\n```\n\n```go\nfunc (m *Header) GetTimestamp() *timestamp.Timestamp\n```\n\n```go\nfunc (*Header) ProtoMessage()\n```\n\n```go\nfunc (m *Header) Reset()\n```\n\n```go\nfunc (m *Header) String() string\n```\n\n```go\nfunc (m *Header) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Header) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Header) XXX_Size() int\n```\n\n```go\nfunc (m *Header) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ImportRequest struct {\n\t// Credential contains information about the party who is requesting the operation\n\t// the content of this field depends on the charateristic of the token manager system used.\n\tCredential []byte `protobuf:\"bytes,1,opt,name=credential,proto3\" json:\"credential,omitempty\"`\n\t// TokenToIssue contains the information about the tokens to be issued\n\tTokensToIssue        []*TokenToIssue `protobuf:\"bytes,2,rep,name=tokens_to_issue,json=tokensToIssue,proto3\" json:\"tokens_to_issue,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}        `json:\"-\"`\n\tXXX_unrecognized     []byte          `json:\"-\"`\n\tXXX_sizecache        int32           `json:\"-\"`\n}\n```\nImportRequest is used to request creation of imports\n\n```go\nfunc (*ImportRequest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ImportRequest) GetCredential() []byte\n```\n\n```go\nfunc (m *ImportRequest) GetTokensToIssue() []*TokenToIssue\n```\n\n```go\nfunc (*ImportRequest) ProtoMessage()\n```\n\n```go\nfunc (m *ImportRequest) Reset()\n```\n\n```go\nfunc (m *ImportRequest) String() string\n```\n\n```go\nfunc (m *ImportRequest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ImportRequest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ImportRequest) XXX_Size() int\n```\n\n```go\nfunc (m *ImportRequest) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype InputId struct {\n\t// The transaction ID\n\tTxId string `protobuf:\"bytes,1,opt,name=tx_id,json=txId,proto3\" json:\"tx_id,omitempty\"`\n\t// The index of the output in the transaction\n\tIndex                uint32   `protobuf:\"varint,2,opt,name=index,proto3\" json:\"index,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nAn InputId specifies an output using the transaction ID and the index of the output in the transaction\n\n```go\nfunc (*InputId) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *InputId) GetIndex() uint32\n```\n\n```go\nfunc (m *InputId) GetTxId() string\n```\n\n```go\nfunc (*InputId) ProtoMessage()\n```\n\n```go\nfunc (m *InputId) Reset()\n```\n\n```go\nfunc (m *InputId) String() string\n```\n\n```go\nfunc (m *InputId) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *InputId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *InputId) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *InputId) XXX_Size() int\n```\n\n```go\nfunc (m *InputId) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ListRequest struct {\n\tCredential           []byte   `protobuf:\"bytes,1,opt,name=credential,proto3\" json:\"credential,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nListRequest is used to request a list of unspent tokens\n\n```go\nfunc (*ListRequest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ListRequest) GetCredential() []byte\n```\n\n```go\nfunc (*ListRequest) ProtoMessage()\n```\n\n```go\nfunc (m *ListRequest) Reset()\n```\n\n```go\nfunc (m *ListRequest) String() string\n```\n\n```go\nfunc (m *ListRequest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ListRequest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ListRequest) XXX_Size() int\n```\n\n```go\nfunc (m *ListRequest) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainApprove struct {\n\t// The inputs to the transfer transaction are specified by their ID\n\tInputs []*InputId `protobuf:\"bytes,1,rep,name=inputs,proto3\" json:\"inputs,omitempty\"`\n\t// An approve transaction contains one or more plain delegated outputs\n\tDelegatedOutputs []*PlainDelegatedOutput `protobuf:\"bytes,2,rep,name=delegated_outputs,json=delegatedOutputs,proto3\" json:\"delegated_outputs,omitempty\"`\n\t// An approve transaction contains one plain output\n\tOutput               *PlainOutput `protobuf:\"bytes,3,opt,name=output,proto3\" json:\"output,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}     `json:\"-\"`\n\tXXX_unrecognized     []byte       `json:\"-\"`\n\tXXX_sizecache        int32        `json:\"-\"`\n}\n```\nPlainApprove specifies an approve of one or more tokens in plaintext format\n\n```go\nfunc (*PlainApprove) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainApprove) GetDelegatedOutputs() []*PlainDelegatedOutput\n```\n\n```go\nfunc (m *PlainApprove) GetInputs() []*InputId\n```\n\n```go\nfunc (m *PlainApprove) GetOutput() *PlainOutput\n```\n\n```go\nfunc (*PlainApprove) ProtoMessage()\n```\n\n```go\nfunc (m *PlainApprove) Reset()\n```\n\n```go\nfunc (m *PlainApprove) String() string\n```\n\n```go\nfunc (m *PlainApprove) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainApprove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainApprove) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PlainApprove) XXX_Size() int\n```\n\n```go\nfunc (m *PlainApprove) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainDelegatedOutput struct {\n\t// The owner is the serialization of a SerializedIdentity struct\n\tOwner []byte `protobuf:\"bytes,1,opt,name=owner,proto3\" json:\"owner,omitempty\"`\n\t// The delegatees is an arrary of the serialized identities that can spend the output on behalf\n\t// the owner\n\tDelegatees [][]byte `protobuf:\"bytes,2,rep,name=delegatees,proto3\" json:\"delegatees,omitempty\"`\n\t// The token type\n\tType string `protobuf:\"bytes,3,opt,name=type,proto3\" json:\"type,omitempty\"`\n\t// The quantity of tokens\n\tQuantity             uint64   `protobuf:\"varint,4,opt,name=quantity,proto3\" json:\"quantity,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nA PlainDelegatedOutput is the result of approve transactions using plaintext tokens\n\n```go\nfunc (*PlainDelegatedOutput) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainDelegatedOutput) GetDelegatees() [][]byte\n```\n\n```go\nfunc (m *PlainDelegatedOutput) GetOwner() []byte\n```\n\n```go\nfunc (m *PlainDelegatedOutput) GetQuantity() uint64\n```\n\n```go\nfunc (m *PlainDelegatedOutput) GetType() string\n```\n\n```go\nfunc (*PlainDelegatedOutput) ProtoMessage()\n```\n\n```go\nfunc (m *PlainDelegatedOutput) Reset()\n```\n\n```go\nfunc (m *PlainDelegatedOutput) String() string\n```\n\n```go\nfunc (m *PlainDelegatedOutput) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainDelegatedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainDelegatedOutput) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PlainDelegatedOutput) XXX_Size() int\n```\n\n```go\nfunc (m *PlainDelegatedOutput) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainExpectation struct {\n\t// Types that are valid to be assigned to Payload:\n\t//\t*PlainExpectation_ImportExpectation\n\t//\t*PlainExpectation_TransferExpectation\n\tPayload              isPlainExpectation_Payload `protobuf_oneof:\"payload\"`\n\tXXX_NoUnkeyedLiteral struct{}                   `json:\"-\"`\n\tXXX_unrecognized     []byte                     `json:\"-\"`\n\tXXX_sizecache        int32                      `json:\"-\"`\n}\n```\nPlainExpectation represent the plain expectation where no confidentiality is provided.\n\n```go\nfunc (*PlainExpectation) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainExpectation) GetImportExpectation() *PlainTokenExpectation\n```\n\n```go\nfunc (m *PlainExpectation) GetPayload() isPlainExpectation_Payload\n```\n\n```go\nfunc (m *PlainExpectation) GetTransferExpectation() *PlainTokenExpectation\n```\n\n```go\nfunc (*PlainExpectation) ProtoMessage()\n```\n\n```go\nfunc (m *PlainExpectation) Reset()\n```\n\n```go\nfunc (m *PlainExpectation) String() string\n```\n\n```go\nfunc (m *PlainExpectation) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainExpectation) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*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{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *PlainExpectation) XXX_Size() int\n```\n\n```go\nfunc (m *PlainExpectation) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainExpectation_ImportExpectation struct {\n\tImportExpectation *PlainTokenExpectation `protobuf:\"bytes,1,opt,name=import_expectation,json=importExpectation,proto3,oneof\"`\n}\n```\n\n```go\ntype PlainExpectation_TransferExpectation struct {\n\tTransferExpectation *PlainTokenExpectation `protobuf:\"bytes,2,opt,name=transfer_expectation,json=transferExpectation,proto3,oneof\"`\n}\n```\n\n```go\ntype PlainImport struct {\n\t// An import transaction may contain one or more outputs\n\tOutputs              []*PlainOutput `protobuf:\"bytes,1,rep,name=outputs,proto3\" json:\"outputs,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}       `json:\"-\"`\n\tXXX_unrecognized     []byte         `json:\"-\"`\n\tXXX_sizecache        int32          `json:\"-\"`\n}\n```\nPlainImport specifies an import of one or more tokens in plaintext format\n\n```go\nfunc (*PlainImport) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainImport) GetOutputs() []*PlainOutput\n```\n\n```go\nfunc (*PlainImport) ProtoMessage()\n```\n\n```go\nfunc (m *PlainImport) Reset()\n```\n\n```go\nfunc (m *PlainImport) String() string\n```\n\n```go\nfunc (m *PlainImport) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainImport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainImport) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PlainImport) XXX_Size() int\n```\n\n```go\nfunc (m *PlainImport) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainOutput struct {\n\t// The owner is the serialization of a SerializedIdentity struct\n\tOwner []byte `protobuf:\"bytes,1,opt,name=owner,proto3\" json:\"owner,omitempty\"`\n\t// The token type\n\tType string `protobuf:\"bytes,2,opt,name=type,proto3\" json:\"type,omitempty\"`\n\t// The quantity of tokens\n\tQuantity             uint64   `protobuf:\"varint,3,opt,name=quantity,proto3\" json:\"quantity,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nA PlainOutput is the result of import and transfer transactions using plaintext tokens\n\n```go\nfunc (*PlainOutput) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainOutput) GetOwner() []byte\n```\n\n```go\nfunc (m *PlainOutput) GetQuantity() uint64\n```\n\n```go\nfunc (m *PlainOutput) GetType() string\n```\n\n```go\nfunc (*PlainOutput) ProtoMessage()\n```\n\n```go\nfunc (m *PlainOutput) Reset()\n```\n\n```go\nfunc (m *PlainOutput) String() string\n```\n\n```go\nfunc (m *PlainOutput) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainOutput) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PlainOutput) XXX_Size() int\n```\n\n```go\nfunc (m *PlainOutput) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainTokenAction struct {\n\t// Types that are valid to be assigned to Data:\n\t//\t*PlainTokenAction_PlainImport\n\t//\t*PlainTokenAction_PlainTransfer\n\t//\t*PlainTokenAction_PlainRedeem\n\t//\t*PlainTokenAction_PlainApprove\n\t//\t*PlainTokenAction_PlainTransfer_From\n\tData                 isPlainTokenAction_Data `protobuf_oneof:\"data\"`\n\tXXX_NoUnkeyedLiteral struct{}                `json:\"-\"`\n\tXXX_unrecognized     []byte                  `json:\"-\"`\n\tXXX_sizecache        int32                   `json:\"-\"`\n}\n```\nPlainTokenAction governs the structure of a token action that is subjected to no privacy restrictions\n\n```go\nfunc (*PlainTokenAction) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainTokenAction) GetData() isPlainTokenAction_Data\n```\n\n```go\nfunc (m *PlainTokenAction) GetPlainApprove() *PlainApprove\n```\n\n```go\nfunc (m *PlainTokenAction) GetPlainImport() *PlainImport\n```\n\n```go\nfunc (m *PlainTokenAction) GetPlainRedeem() *PlainTransfer\n```\n\n```go\nfunc (m *PlainTokenAction) GetPlainTransfer() *PlainTransfer\n```\n\n```go\nfunc (m *PlainTokenAction) GetPlainTransfer_From() *PlainTransferFrom\n```\n\n```go\nfunc (*PlainTokenAction) ProtoMessage()\n```\n\n```go\nfunc (m *PlainTokenAction) Reset()\n```\n\n```go\nfunc (m *PlainTokenAction) String() string\n```\n\n```go\nfunc (m *PlainTokenAction) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainTokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainTokenAction) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*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{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *PlainTokenAction) XXX_Size() int\n```\n\n```go\nfunc (m *PlainTokenAction) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainTokenAction_PlainApprove struct {\n\tPlainApprove *PlainApprove `protobuf:\"bytes,4,opt,name=plain_approve,json=plainApprove,proto3,oneof\"`\n}\n```\n\n```go\ntype PlainTokenAction_PlainImport struct {\n\tPlainImport *PlainImport `protobuf:\"bytes,1,opt,name=plain_import,json=plainImport,proto3,oneof\"`\n}\n```\n\n```go\ntype PlainTokenAction_PlainRedeem struct {\n\tPlainRedeem *PlainTransfer `protobuf:\"bytes,3,opt,name=plain_redeem,json=plainRedeem,proto3,oneof\"`\n}\n```\n\n```go\ntype PlainTokenAction_PlainTransfer struct {\n\tPlainTransfer *PlainTransfer `protobuf:\"bytes,2,opt,name=plain_transfer,json=plainTransfer,proto3,oneof\"`\n}\n```\n\n```go\ntype PlainTokenAction_PlainTransfer_From struct {\n\tPlainTransfer_From *PlainTransferFrom `protobuf:\"bytes,5,opt,name=plain_transfer_From,json=plainTransferFrom,proto3,oneof\"`\n}\n```\n\n```go\ntype PlainTokenExpectation struct {\n\t// Outputs contains the expected outputs\n\tOutputs              []*PlainOutput `protobuf:\"bytes,1,rep,name=outputs,proto3\" json:\"outputs,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}       `json:\"-\"`\n\tXXX_unrecognized     []byte         `json:\"-\"`\n\tXXX_sizecache        int32          `json:\"-\"`\n}\n```\nPlainTokenExpectation represents the expecation that certain outputs will be matched\n\n```go\nfunc (*PlainTokenExpectation) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainTokenExpectation) GetOutputs() []*PlainOutput\n```\n\n```go\nfunc (*PlainTokenExpectation) ProtoMessage()\n```\n\n```go\nfunc (m *PlainTokenExpectation) Reset()\n```\n\n```go\nfunc (m *PlainTokenExpectation) String() string\n```\n\n```go\nfunc (m *PlainTokenExpectation) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainTokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainTokenExpectation) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PlainTokenExpectation) XXX_Size() int\n```\n\n```go\nfunc (m *PlainTokenExpectation) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainTransfer struct {\n\t// The inputs to the transfer transaction are specified by their ID\n\tInputs []*InputId `protobuf:\"bytes,1,rep,name=inputs,proto3\" json:\"inputs,omitempty\"`\n\t// A transfer transaction may contain one or more outputs\n\tOutputs              []*PlainOutput `protobuf:\"bytes,2,rep,name=outputs,proto3\" json:\"outputs,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}       `json:\"-\"`\n\tXXX_unrecognized     []byte         `json:\"-\"`\n\tXXX_sizecache        int32          `json:\"-\"`\n}\n```\nPlainTransfer specifies a transfer of one or more plaintext tokens to one or more outputs\n\n```go\nfunc (*PlainTransfer) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainTransfer) GetInputs() []*InputId\n```\n\n```go\nfunc (m *PlainTransfer) GetOutputs() []*PlainOutput\n```\n\n```go\nfunc (*PlainTransfer) ProtoMessage()\n```\n\n```go\nfunc (m *PlainTransfer) Reset()\n```\n\n```go\nfunc (m *PlainTransfer) String() string\n```\n\n```go\nfunc (m *PlainTransfer) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainTransfer) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PlainTransfer) XXX_Size() int\n```\n\n```go\nfunc (m *PlainTransfer) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PlainTransferFrom struct {\n\t// The inputs to the transfer transaction are specified by their ID\n\tInputs []*InputId `protobuf:\"bytes,1,rep,name=inputs,proto3\" json:\"inputs,omitempty\"`\n\t// A transferFrom transaction contains multiple outputs\n\tOutputs []*PlainOutput `protobuf:\"bytes,2,rep,name=outputs,proto3\" json:\"outputs,omitempty\"`\n\t// A transferFrom transaction may contain one delegatable output\n\tDelegatedOutput      *PlainDelegatedOutput `protobuf:\"bytes,3,opt,name=delegated_output,json=delegatedOutput,proto3\" json:\"delegated_output,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}              `json:\"-\"`\n\tXXX_unrecognized     []byte                `json:\"-\"`\n\tXXX_sizecache        int32                 `json:\"-\"`\n}\n```\nPlainTransferFrom specifies a transfer of one or more plaintext delegated tokens to one or more outputs an to a delegated output\n\n```go\nfunc (*PlainTransferFrom) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PlainTransferFrom) GetDelegatedOutput() *PlainDelegatedOutput\n```\n\n```go\nfunc (m *PlainTransferFrom) GetInputs() []*InputId\n```\n\n```go\nfunc (m *PlainTransferFrom) GetOutputs() []*PlainOutput\n```\n\n```go\nfunc (*PlainTransferFrom) ProtoMessage()\n```\n\n```go\nfunc (m *PlainTransferFrom) Reset()\n```\n\n```go\nfunc (m *PlainTransferFrom) String() string\n```\n\n```go\nfunc (m *PlainTransferFrom) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PlainTransferFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PlainTransferFrom) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PlainTransferFrom) XXX_Size() int\n```\n\n```go\nfunc (m *PlainTransferFrom) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ProverClient interface {\n\t// ProcessCommand processes the passed command ensuring proper access control.\n\t// The returned response allows the client to understand if the\n\t// operation was succeffully executed and if not, the response\n\t// reports the reason of the failure.\n\tProcessCommand(ctx context.Context, in *SignedCommand, opts ...grpc.CallOption) (*SignedCommandResponse, error)\n}\n```\nProverClient is the client API for Prover service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://godoc.org/google.golang.org/grpc#ClientConn.NewStream](https://godoc.org/google.golang.org/grpc#ClientConn.NewStream).\n\n```go\nfunc NewProverClient(cc *grpc.ClientConn) ProverClient\n```\n\n```go\ntype ProverServer interface {\n\t// ProcessCommand processes the passed command ensuring proper access control.\n\t// The returned response allows the client to understand if the\n\t// operation was succeffully executed and if not, the response\n\t// reports the reason of the failure.\n\tProcessCommand(context.Context, *SignedCommand) (*SignedCommandResponse, error)\n}\n```\nProverServer is the server API for Prover service.\n\n```go\ntype RecipientTransferShare struct {\n\t// Recipient refers to the prospective owner of a transferred token\n\tRecipient []byte `protobuf:\"bytes,1,opt,name=recipient,proto3\" json:\"recipient,omitempty\"`\n\t// Quantity refers to the number of token units to be transferred to the recipient\n\tQuantity             uint64   `protobuf:\"varint,2,opt,name=quantity,proto3\" json:\"quantity,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nRecipientTransferShare describes how much a recipient will receive in a token transfer\n\n```go\nfunc (*RecipientTransferShare) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *RecipientTransferShare) GetQuantity() uint64\n```\n\n```go\nfunc (m *RecipientTransferShare) GetRecipient() []byte\n```\n\n```go\nfunc (*RecipientTransferShare) ProtoMessage()\n```\n\n```go\nfunc (m *RecipientTransferShare) Reset()\n```\n\n```go\nfunc (m *RecipientTransferShare) String() string\n```\n\n```go\nfunc (m *RecipientTransferShare) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *RecipientTransferShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *RecipientTransferShare) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *RecipientTransferShare) XXX_Size() int\n```\n\n```go\nfunc (m *RecipientTransferShare) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype RedeemRequest struct {\n\t// Credential contains information for the party who is requesting the operation\n\t// The content of this field depends on the characteristic of token manager system\n\tCredential []byte `protobuf:\"bytes,1,opt,name=credential,proto3\" json:\"credential,omitempty\"`\n\t// token_ids specifies the ids for the tokens that will be redeemed\n\tTokenIds [][]byte `protobuf:\"bytes,2,rep,name=token_ids,json=tokenIds,proto3\" json:\"token_ids,omitempty\"`\n\t// quantity refers to the number of units of a given token needs to be redeemed.\n\tQuantityToRedeem     uint64   `protobuf:\"varint,3,opt,name=quantity_to_redeem,json=quantityToRedeem,proto3\" json:\"quantity_to_redeem,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nRedeemRequest is used to request token redemption\n\n```go\nfunc (*RedeemRequest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *RedeemRequest) GetCredential() []byte\n```\n\n```go\nfunc (m *RedeemRequest) GetQuantityToRedeem() uint64\n```\n\n```go\nfunc (m *RedeemRequest) GetTokenIds() [][]byte\n```\n\n```go\nfunc (*RedeemRequest) ProtoMessage()\n```\n\n```go\nfunc (m *RedeemRequest) Reset()\n```\n\n```go\nfunc (m *RedeemRequest) String() string\n```\n\n```go\nfunc (m *RedeemRequest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *RedeemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *RedeemRequest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *RedeemRequest) XXX_Size() int\n```\n\n```go\nfunc (m *RedeemRequest) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SignedCommand struct {\n\t// Command is the serialised version of a Command message\n\tCommand []byte `protobuf:\"bytes,1,opt,name=command,proto3\" json:\"command,omitempty\"`\n\t// Signature is the signature over command\n\tSignature            []byte   `protobuf:\"bytes,2,opt,name=signature,proto3\" json:\"signature,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nSignedCommand is a command that carries the signature of the command's creator.\n\n```go\nfunc (*SignedCommand) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SignedCommand) GetCommand() []byte\n```\n\n```go\nfunc (m *SignedCommand) GetSignature() []byte\n```\n\n```go\nfunc (*SignedCommand) ProtoMessage()\n```\n\n```go\nfunc (m *SignedCommand) Reset()\n```\n\n```go\nfunc (m *SignedCommand) String() string\n```\n\n```go\nfunc (m *SignedCommand) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SignedCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *SignedCommand) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SignedCommand) XXX_Size() int\n```\n\n```go\nfunc (m *SignedCommand) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SignedCommandResponse struct {\n\t// Response is the serialised version of a CommandResponse message\n\tResponse []byte `protobuf:\"bytes,1,opt,name=response,proto3\" json:\"response,omitempty\"`\n\t// Signature is the signature over command\n\tSignature            []byte   `protobuf:\"bytes,2,opt,name=signature,proto3\" json:\"signature,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nSignedCommandResponse is a signed command response\n\n```go\nfunc (*SignedCommandResponse) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SignedCommandResponse) GetResponse() []byte\n```\n\n```go\nfunc (m *SignedCommandResponse) GetSignature() []byte\n```\n\n```go\nfunc (*SignedCommandResponse) ProtoMessage()\n```\n\n```go\nfunc (m *SignedCommandResponse) Reset()\n```\n\n```go\nfunc (m *SignedCommandResponse) String() string\n```\n\n```go\nfunc (m *SignedCommandResponse) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SignedCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *SignedCommandResponse) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SignedCommandResponse) XXX_Size() int\n```\n\n```go\nfunc (m *SignedCommandResponse) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TokenExpectation struct {\n\t// Types that are valid to be assigned to Expectation:\n\t//\t*TokenExpectation_PlainExpectation\n\tExpectation          isTokenExpectation_Expectation `protobuf_oneof:\"Expectation\"`\n\tXXX_NoUnkeyedLiteral struct{}                       `json:\"-\"`\n\tXXX_unrecognized     []byte                         `json:\"-\"`\n\tXXX_sizecache        int32                          `json:\"-\"`\n}\n```\nTokenExpectation represent the belief that someone should achieve in terms of a token action\n\n```go\nfunc (*TokenExpectation) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *TokenExpectation) GetExpectation() isTokenExpectation_Expectation\n```\n\n```go\nfunc (m *TokenExpectation) GetPlainExpectation() *PlainExpectation\n```\n\n```go\nfunc (*TokenExpectation) ProtoMessage()\n```\n\n```go\nfunc (m *TokenExpectation) Reset()\n```\n\n```go\nfunc (m *TokenExpectation) String() string\n```\n\n```go\nfunc (m *TokenExpectation) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *TokenExpectation) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*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{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *TokenExpectation) XXX_Size() int\n```\n\n```go\nfunc (m *TokenExpectation) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TokenExpectation_PlainExpectation struct {\n\tPlainExpectation *PlainExpectation `protobuf:\"bytes,1,opt,name=plain_expectation,json=plainExpectation,proto3,oneof\"`\n}\n```\n\n```go\ntype TokenOutput struct {\n\t// ID is used to uniquely identify the token\n\tId []byte `protobuf:\"bytes,1,opt,name=id,proto3\" json:\"id,omitempty\"`\n\t// Type is the type of the token\n\tType string `protobuf:\"bytes,2,opt,name=type,proto3\" json:\"type,omitempty\"`\n\t// Quantity represents the number for this type of token\n\tQuantity             uint64   `protobuf:\"varint,3,opt,name=quantity,proto3\" json:\"quantity,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nTokenOutput is used to specify a token returned by ListRequest\n\n```go\nfunc (*TokenOutput) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *TokenOutput) GetId() []byte\n```\n\n```go\nfunc (m *TokenOutput) GetQuantity() uint64\n```\n\n```go\nfunc (m *TokenOutput) GetType() string\n```\n\n```go\nfunc (*TokenOutput) ProtoMessage()\n```\n\n```go\nfunc (m *TokenOutput) Reset()\n```\n\n```go\nfunc (m *TokenOutput) String() string\n```\n\n```go\nfunc (m *TokenOutput) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TokenOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *TokenOutput) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *TokenOutput) XXX_Size() int\n```\n\n```go\nfunc (m *TokenOutput) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TokenToIssue struct {\n\t// Recipient refers to the owner of the token to be issued\n\tRecipient []byte `protobuf:\"bytes,1,opt,name=recipient,proto3\" json:\"recipient,omitempty\"`\n\t// Type refers to the token type\n\tType string `protobuf:\"bytes,2,opt,name=type,proto3\" json:\"type,omitempty\"`\n\t// Quantity refers to the number of token units to be issued\n\tQuantity             uint64   `protobuf:\"varint,3,opt,name=quantity,proto3\" json:\"quantity,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nTokenToIssue describes a token to be issued in the system\n\n```go\nfunc (*TokenToIssue) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *TokenToIssue) GetQuantity() uint64\n```\n\n```go\nfunc (m *TokenToIssue) GetRecipient() []byte\n```\n\n```go\nfunc (m *TokenToIssue) GetType() string\n```\n\n```go\nfunc (*TokenToIssue) ProtoMessage()\n```\n\n```go\nfunc (m *TokenToIssue) Reset()\n```\n\n```go\nfunc (m *TokenToIssue) String() string\n```\n\n```go\nfunc (m *TokenToIssue) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TokenToIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *TokenToIssue) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *TokenToIssue) XXX_Size() int\n```\n\n```go\nfunc (m *TokenToIssue) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TokenTransaction struct {\n\t// action carries the content of this transaction.\n\t//\n\t// Types that are valid to be assigned to Action:\n\t//\t*TokenTransaction_PlainAction\n\tAction               isTokenTransaction_Action `protobuf_oneof:\"action\"`\n\tXXX_NoUnkeyedLiteral struct{}                  `json:\"-\"`\n\tXXX_unrecognized     []byte                    `json:\"-\"`\n\tXXX_sizecache        int32                     `json:\"-\"`\n}\n```\nTokenTransaction governs the structure of Payload.data, when the transaction's envelope header indicates a transaction of type \"Token\"\n\n```go\nfunc (*TokenTransaction) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *TokenTransaction) GetAction() isTokenTransaction_Action\n```\n\n```go\nfunc (m *TokenTransaction) GetPlainAction() *PlainTokenAction\n```\n\n```go\nfunc (*TokenTransaction) ProtoMessage()\n```\n\n```go\nfunc (m *TokenTransaction) Reset()\n```\n\n```go\nfunc (m *TokenTransaction) String() string\n```\n\n```go\nfunc (m *TokenTransaction) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *TokenTransaction) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*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{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *TokenTransaction) XXX_Size() int\n```\n\n```go\nfunc (m *TokenTransaction) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TokenTransaction_PlainAction struct {\n\tPlainAction *PlainTokenAction `protobuf:\"bytes,1,opt,name=plain_action,json=plainAction,proto3,oneof\"`\n}\n```\n\n```go\ntype TransferRequest struct {\n\tCredential           []byte                    `protobuf:\"bytes,1,opt,name=credential,proto3\" json:\"credential,omitempty\"`\n\tTokenIds             [][]byte                  `protobuf:\"bytes,2,rep,name=token_ids,json=tokenIds,proto3\" json:\"token_ids,omitempty\"`\n\tShares               []*RecipientTransferShare `protobuf:\"bytes,3,rep,name=shares,proto3\" json:\"shares,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}                  `json:\"-\"`\n\tXXX_unrecognized     []byte                    `json:\"-\"`\n\tXXX_sizecache        int32                     `json:\"-\"`\n}\n```\nRequestTransfer is used to request creation of transfers\n\n```go\nfunc (*TransferRequest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *TransferRequest) GetCredential() []byte\n```\n\n```go\nfunc (m *TransferRequest) GetShares() []*RecipientTransferShare\n```\n\n```go\nfunc (m *TransferRequest) GetTokenIds() [][]byte\n```\n\n```go\nfunc (*TransferRequest) ProtoMessage()\n```\n\n```go\nfunc (m *TransferRequest) Reset()\n```\n\n```go\nfunc (m *TransferRequest) String() string\n```\n\n```go\nfunc (m *TransferRequest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *TransferRequest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *TransferRequest) XXX_Size() int\n```\n\n```go\nfunc (m *TransferRequest) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype UnspentTokens struct {\n\tTokens               []*TokenOutput `protobuf:\"bytes,1,rep,name=tokens,proto3\" json:\"tokens,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}       `json:\"-\"`\n\tXXX_unrecognized     []byte         `json:\"-\"`\n\tXXX_sizecache        int32          `json:\"-\"`\n}\n```\nUnspentTokens is used to hold the output of listRequest\n\n```go\nfunc (*UnspentTokens) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *UnspentTokens) GetTokens() []*TokenOutput\n```\n\n```go\nfunc (*UnspentTokens) ProtoMessage()\n```\n\n```go\nfunc (m *UnspentTokens) Reset()\n```\n\n```go\nfunc (m *UnspentTokens) String() string\n```\n\n```go\nfunc (m *UnspentTokens) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *UnspentTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *UnspentTokens) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *UnspentTokens) XXX_Size() int\n```\n\n```go\nfunc (m *UnspentTokens) XXX_Unmarshal(b []byte) error\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/protos/token","name":"token","synopsis":"","isRedistributable":true}
