Get desktop application:
View/edit binary Protocol Buffers messages
Prover provides support to clients for the creation of FabToken transactions, and to query the ledger.
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.
SignedCommand is a command that carries the signature of the command's creator.
Command is the serialised version of a Command message
Signature is the signature over command
SignedCommandResponse is a signed command response
Response is the serialised version of a CommandResponse message
Signature is the signature over command
ALlowance defines how many and what tokens a recipient can transfer on behalf of their actual owner
Used in:
Recipient refers to the entity allowed to spend the specified quantity from the tokens identified by token IDs
Quantity is how many tokens are delegated to the recipient
ApproveRequest is used to request the creation of allowance from one owner to another
Used in:
Credential refers to the public credential of the request creator
Allowance describes the tokens the creator of the request is willing to delegate
TokenIds are the token identifiers used to create the allowance
Command describes the type of operation that a client is requesting.
Header is the header of this command
Payload is the payload of this command. It can assume one of the following value
A CommnandResponse is returned from a prover to the command submitter.
Header of the response.
Payload of the response.
Used in:
Timestamp is the time that the message was created as defined by the sender
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)
Creator is the identity of the party creating this message
Error reports an application error
Used in:
Message associated with this response.
Payload that can be used to include metadata with this response.
ExpectationRequest is used to request indirect token import or transfer based on the token expectation
Used in:
credential contains information for the party who is requesting the operation The content of this field depends on the characteristic of token manager system
expectation contains the expected outputs for token import or transfer
TokenIds are the token identifiers used to fulfill the expectation
Header is a generic replay prevention and identity message to include in a signed command
Used in:
Timestamp is the local time when the message was created by the sender
ChannelId identifies the channel this message is bound for
Nonce is a sufficientley long random value used to ensure the request has enough entropy.
Creator of the message. Typically, a marshaled msp.SerializedIdentity
If mutual TLS is enabled, this represents the hash of the client's TLS certificate
ImportRequest is used to request creation of imports
Used in:
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.
TokenToIssue contains the information about the tokens to be issued
An InputId specifies an output using the transaction ID and the index of the output in the transaction
Used in:
, , , , , , ,The transaction ID
The index of the output in the transaction
ListRequest is used to request a list of unspent tokens
Used in:
PlainApprove specifies an approve of one or more tokens in plaintext format
Used in:
The inputs to the transfer transaction are specified by their ID
An approve transaction contains one or more plain delegated outputs
An approve transaction contains one plain output
A PlainDelegatedOutput is the result of approve transactions using plaintext tokens
Used in:
,The owner is the serialization of a SerializedIdentity struct
The delegatees is an arrary of the serialized identities that can spend the output on behalf the owner
The token type
The quantity of tokens
PlainExpectation represent the plain expectation where no confidentiality is provided.
Used in:
ImportExpectation describes an token import expectation
TransferExpectation describes a token transfer expectation
PlainImport specifies an import of one or more tokens in plaintext format
Used in:
An import transaction may contain one or more outputs
A PlainOutput is the result of import and transfer transactions using plaintext tokens
Used in:
, , , ,The owner is the serialization of a SerializedIdentity struct
The token type
The quantity of tokens
PlainTokenAction governs the structure of a token action that is subjected to no privacy restrictions
Used in:
A plaintext token import transaction
A plaintext token transfer transaction
A plaintext token redeem transaction
A plaintext token approve transaction
A plaintext token transfer from transaction
PlainTokenExpectation represents the expecation that certain outputs will be matched
Used in:
Outputs contains the expected outputs
PlainTransfer specifies a transfer of one or more plaintext tokens to one or more outputs
Used in:
The inputs to the transfer transaction are specified by their ID
A transfer transaction may contain one or more outputs
PlainTransferFrom specifies a transfer of one or more plaintext delegated tokens to one or more outputs an to a delegated output
Used in:
The inputs to the transfer transaction are specified by their ID
A transferFrom transaction contains multiple outputs
A transferFrom transaction may contain one delegatable output
RecipientTransferShare describes how much a recipient will receive in a token transfer
Used in:
Recipient refers to the prospective owner of a transferred token
Quantity refers to the number of token units to be transferred to the recipient
RedeemRequest is used to request token redemption
Used in:
Credential contains information for the party who is requesting the operation The content of this field depends on the characteristic of token manager system
token_ids specifies the ids for the tokens that will be redeemed
quantity refers to the number of units of a given token needs to be redeemed.
TokenExpectation represent the belief that someone should achieve in terms of a token action
Used in:
PlainExpectation describes a plain token expectation
TokenOutput is used to specify a token returned by ListRequest
Used in:
ID is used to uniquely identify the token
Type is the type of the token
Quantity represents the number for this type of token
TokenToIssue describes a token to be issued in the system
Used in:
Recipient refers to the owner of the token to be issued
Type refers to the token type
Quantity refers to the number of token units to be issued
TokenTransaction governs the structure of Payload.data, when the transaction's envelope header indicates a transaction of type "Token"
Used in:
action carries the content of this transaction.
RequestTransfer is used to request creation of transfers
Used in:
UnspentTokens is used to hold the output of listRequest
Used in: