fabric: github.com/hyperledger/fabric/protos/token Index | Files

package token

import "github.com/hyperledger/fabric/protos/token"

Index

Package Files

expectations.pb.go prover.pb.go transaction.pb.go

func RegisterProverServer Uses

func RegisterProverServer(s *grpc.Server, srv ProverServer)

type AllowanceRecipientShare Uses

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:"-"`
}

ALlowance defines how many and what tokens a recipient can transfer on behalf of their actual owner

func (*AllowanceRecipientShare) Descriptor Uses

func (*AllowanceRecipientShare) Descriptor() ([]byte, []int)

func (*AllowanceRecipientShare) GetQuantity Uses

func (m *AllowanceRecipientShare) GetQuantity() uint64

func (*AllowanceRecipientShare) GetRecipient Uses

func (m *AllowanceRecipientShare) GetRecipient() []byte

func (*AllowanceRecipientShare) ProtoMessage Uses

func (*AllowanceRecipientShare) ProtoMessage()

func (*AllowanceRecipientShare) Reset Uses

func (m *AllowanceRecipientShare) Reset()

func (*AllowanceRecipientShare) String Uses

func (m *AllowanceRecipientShare) String() string

func (*AllowanceRecipientShare) XXX_DiscardUnknown Uses

func (m *AllowanceRecipientShare) XXX_DiscardUnknown()

func (*AllowanceRecipientShare) XXX_Marshal Uses

func (m *AllowanceRecipientShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllowanceRecipientShare) XXX_Merge Uses

func (dst *AllowanceRecipientShare) XXX_Merge(src proto.Message)

func (*AllowanceRecipientShare) XXX_Size Uses

func (m *AllowanceRecipientShare) XXX_Size() int

func (*AllowanceRecipientShare) XXX_Unmarshal Uses

func (m *AllowanceRecipientShare) XXX_Unmarshal(b []byte) error

type ApproveRequest Uses

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:"-"`
}

ApproveRequest is used to request the creation of allowance from one owner to another

func (*ApproveRequest) Descriptor Uses

func (*ApproveRequest) Descriptor() ([]byte, []int)

func (*ApproveRequest) GetAllowanceShares Uses

func (m *ApproveRequest) GetAllowanceShares() []*AllowanceRecipientShare

func (*ApproveRequest) GetCredential Uses

func (m *ApproveRequest) GetCredential() []byte

func (*ApproveRequest) GetTokenIds Uses

func (m *ApproveRequest) GetTokenIds() [][]byte

func (*ApproveRequest) ProtoMessage Uses

func (*ApproveRequest) ProtoMessage()

func (*ApproveRequest) Reset Uses

func (m *ApproveRequest) Reset()

func (*ApproveRequest) String Uses

func (m *ApproveRequest) String() string

func (*ApproveRequest) XXX_DiscardUnknown Uses

func (m *ApproveRequest) XXX_DiscardUnknown()

func (*ApproveRequest) XXX_Marshal Uses

func (m *ApproveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApproveRequest) XXX_Merge Uses

func (dst *ApproveRequest) XXX_Merge(src proto.Message)

func (*ApproveRequest) XXX_Size Uses

func (m *ApproveRequest) XXX_Size() int

func (*ApproveRequest) XXX_Unmarshal Uses

func (m *ApproveRequest) XXX_Unmarshal(b []byte) error

type Command Uses

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:"-"`
}

Command describes the type of operation that a client is requesting.

func (*Command) Descriptor Uses

func (*Command) Descriptor() ([]byte, []int)

func (*Command) GetApproveRequest Uses

func (m *Command) GetApproveRequest() *ApproveRequest

func (*Command) GetExpectationRequest Uses

func (m *Command) GetExpectationRequest() *ExpectationRequest

func (*Command) GetHeader Uses

func (m *Command) GetHeader() *Header

func (*Command) GetImportRequest Uses

func (m *Command) GetImportRequest() *ImportRequest

func (*Command) GetListRequest Uses

func (m *Command) GetListRequest() *ListRequest

func (*Command) GetPayload Uses

func (m *Command) GetPayload() isCommand_Payload

func (*Command) GetRedeemRequest Uses

func (m *Command) GetRedeemRequest() *RedeemRequest

func (*Command) GetTransferFromRequest Uses

func (m *Command) GetTransferFromRequest() *TransferRequest

func (*Command) GetTransferRequest Uses

func (m *Command) GetTransferRequest() *TransferRequest

func (*Command) ProtoMessage Uses

func (*Command) ProtoMessage()

func (*Command) Reset Uses

func (m *Command) Reset()

func (*Command) String Uses

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown Uses

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal Uses

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge Uses

func (dst *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_OneofFuncs Uses

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 (*Command) XXX_Size Uses

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal Uses

func (m *Command) XXX_Unmarshal(b []byte) error

type CommandResponse Uses

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:"-"`
}

A CommnandResponse is returned from a prover to the command submitter.

func (*CommandResponse) Descriptor Uses

func (*CommandResponse) Descriptor() ([]byte, []int)

func (*CommandResponse) GetErr Uses

func (m *CommandResponse) GetErr() *Error

func (*CommandResponse) GetHeader Uses

func (m *CommandResponse) GetHeader() *CommandResponseHeader

func (*CommandResponse) GetPayload Uses

func (m *CommandResponse) GetPayload() isCommandResponse_Payload

func (*CommandResponse) GetTokenTransaction Uses

func (m *CommandResponse) GetTokenTransaction() *TokenTransaction

func (*CommandResponse) GetUnspentTokens Uses

func (m *CommandResponse) GetUnspentTokens() *UnspentTokens

func (*CommandResponse) ProtoMessage Uses

func (*CommandResponse) ProtoMessage()

func (*CommandResponse) Reset Uses

func (m *CommandResponse) Reset()

func (*CommandResponse) String Uses

func (m *CommandResponse) String() string

func (*CommandResponse) XXX_DiscardUnknown Uses

func (m *CommandResponse) XXX_DiscardUnknown()

func (*CommandResponse) XXX_Marshal Uses

func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommandResponse) XXX_Merge Uses

func (dst *CommandResponse) XXX_Merge(src proto.Message)

func (*CommandResponse) XXX_OneofFuncs Uses

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 (*CommandResponse) XXX_Size Uses

func (m *CommandResponse) XXX_Size() int

func (*CommandResponse) XXX_Unmarshal Uses

func (m *CommandResponse) XXX_Unmarshal(b []byte) error

type CommandResponseHeader Uses

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 Uses

func (*CommandResponseHeader) Descriptor() ([]byte, []int)

func (*CommandResponseHeader) GetCommandHash Uses

func (m *CommandResponseHeader) GetCommandHash() []byte

func (*CommandResponseHeader) GetCreator Uses

func (m *CommandResponseHeader) GetCreator() []byte

func (*CommandResponseHeader) GetTimestamp Uses

func (m *CommandResponseHeader) GetTimestamp() *timestamp.Timestamp

func (*CommandResponseHeader) ProtoMessage Uses

func (*CommandResponseHeader) ProtoMessage()

func (*CommandResponseHeader) Reset Uses

func (m *CommandResponseHeader) Reset()

func (*CommandResponseHeader) String Uses

func (m *CommandResponseHeader) String() string

func (*CommandResponseHeader) XXX_DiscardUnknown Uses

func (m *CommandResponseHeader) XXX_DiscardUnknown()

func (*CommandResponseHeader) XXX_Marshal Uses

func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommandResponseHeader) XXX_Merge Uses

func (dst *CommandResponseHeader) XXX_Merge(src proto.Message)

func (*CommandResponseHeader) XXX_Size Uses

func (m *CommandResponseHeader) XXX_Size() int

func (*CommandResponseHeader) XXX_Unmarshal Uses

func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error

type CommandResponse_Err Uses

type CommandResponse_Err struct {
    Err *Error `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type CommandResponse_TokenTransaction Uses

type CommandResponse_TokenTransaction struct {
    TokenTransaction *TokenTransaction `protobuf:"bytes,3,opt,name=token_transaction,json=tokenTransaction,proto3,oneof"`
}

type CommandResponse_UnspentTokens Uses

type CommandResponse_UnspentTokens struct {
    UnspentTokens *UnspentTokens `protobuf:"bytes,4,opt,name=unspent_tokens,json=unspentTokens,proto3,oneof"`
}

type Command_ApproveRequest Uses

type Command_ApproveRequest struct {
    ApproveRequest *ApproveRequest `protobuf:"bytes,6,opt,name=approve_request,json=approveRequest,proto3,oneof"`
}

type Command_ExpectationRequest Uses

type Command_ExpectationRequest struct {
    ExpectationRequest *ExpectationRequest `protobuf:"bytes,8,opt,name=expectation_request,json=expectationRequest,proto3,oneof"`
}

type Command_ImportRequest Uses

type Command_ImportRequest struct {
    ImportRequest *ImportRequest `protobuf:"bytes,2,opt,name=import_request,json=importRequest,proto3,oneof"`
}

type Command_ListRequest Uses

type Command_ListRequest struct {
    ListRequest *ListRequest `protobuf:"bytes,4,opt,name=list_request,json=listRequest,proto3,oneof"`
}

type Command_RedeemRequest Uses

type Command_RedeemRequest struct {
    RedeemRequest *RedeemRequest `protobuf:"bytes,5,opt,name=redeem_request,json=redeemRequest,proto3,oneof"`
}

type Command_TransferFromRequest Uses

type Command_TransferFromRequest struct {
    TransferFromRequest *TransferRequest `protobuf:"bytes,7,opt,name=transfer_from_request,json=transferFromRequest,proto3,oneof"`
}

type Command_TransferRequest Uses

type Command_TransferRequest struct {
    TransferRequest *TransferRequest `protobuf:"bytes,3,opt,name=transfer_request,json=transferRequest,proto3,oneof"`
}

type Error Uses

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:"-"`
}

Error reports an application error

func (*Error) Descriptor Uses

func (*Error) Descriptor() ([]byte, []int)

func (*Error) GetMessage Uses

func (m *Error) GetMessage() string

func (*Error) GetPayload Uses

func (m *Error) GetPayload() []byte

func (*Error) ProtoMessage Uses

func (*Error) ProtoMessage()

func (*Error) Reset Uses

func (m *Error) Reset()

func (*Error) String Uses

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown Uses

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal Uses

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge Uses

func (dst *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size Uses

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal Uses

func (m *Error) XXX_Unmarshal(b []byte) error

type ExpectationRequest Uses

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:"-"`
}

ExpectationRequest is used to request indirect token import or transfer based on the token expectation

func (*ExpectationRequest) Descriptor Uses

func (*ExpectationRequest) Descriptor() ([]byte, []int)

func (*ExpectationRequest) GetCredential Uses

func (m *ExpectationRequest) GetCredential() []byte

func (*ExpectationRequest) GetExpectation Uses

func (m *ExpectationRequest) GetExpectation() *TokenExpectation

func (*ExpectationRequest) GetTokenIds Uses

func (m *ExpectationRequest) GetTokenIds() [][]byte

func (*ExpectationRequest) ProtoMessage Uses

func (*ExpectationRequest) ProtoMessage()

func (*ExpectationRequest) Reset Uses

func (m *ExpectationRequest) Reset()

func (*ExpectationRequest) String Uses

func (m *ExpectationRequest) String() string

func (*ExpectationRequest) XXX_DiscardUnknown Uses

func (m *ExpectationRequest) XXX_DiscardUnknown()

func (*ExpectationRequest) XXX_Marshal Uses

func (m *ExpectationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExpectationRequest) XXX_Merge Uses

func (dst *ExpectationRequest) XXX_Merge(src proto.Message)

func (*ExpectationRequest) XXX_Size Uses

func (m *ExpectationRequest) XXX_Size() int

func (*ExpectationRequest) XXX_Unmarshal Uses

func (m *ExpectationRequest) XXX_Unmarshal(b []byte) error
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:"-"`
}

Header is a generic replay prevention and identity message to include in a signed command

func (*Header) Descriptor Uses

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetChannelId Uses

func (m *Header) GetChannelId() string

func (*Header) GetCreator Uses

func (m *Header) GetCreator() []byte

func (*Header) GetNonce Uses

func (m *Header) GetNonce() []byte

func (*Header) GetTimestamp Uses

func (m *Header) GetTimestamp() *timestamp.Timestamp

func (*Header) ProtoMessage Uses

func (*Header) ProtoMessage()

func (*Header) Reset Uses

func (m *Header) Reset()

func (*Header) String Uses

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown Uses

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal Uses

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge Uses

func (dst *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size Uses

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal Uses

func (m *Header) XXX_Unmarshal(b []byte) error

type ImportRequest Uses

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:"-"`
}

ImportRequest is used to request creation of imports

func (*ImportRequest) Descriptor Uses

func (*ImportRequest) Descriptor() ([]byte, []int)

func (*ImportRequest) GetCredential Uses

func (m *ImportRequest) GetCredential() []byte

func (*ImportRequest) GetTokensToIssue Uses

func (m *ImportRequest) GetTokensToIssue() []*TokenToIssue

func (*ImportRequest) ProtoMessage Uses

func (*ImportRequest) ProtoMessage()

func (*ImportRequest) Reset Uses

func (m *ImportRequest) Reset()

func (*ImportRequest) String Uses

func (m *ImportRequest) String() string

func (*ImportRequest) XXX_DiscardUnknown Uses

func (m *ImportRequest) XXX_DiscardUnknown()

func (*ImportRequest) XXX_Marshal Uses

func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportRequest) XXX_Merge Uses

func (dst *ImportRequest) XXX_Merge(src proto.Message)

func (*ImportRequest) XXX_Size Uses

func (m *ImportRequest) XXX_Size() int

func (*ImportRequest) XXX_Unmarshal Uses

func (m *ImportRequest) XXX_Unmarshal(b []byte) error

type InputId Uses

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:"-"`
}

An InputId specifies an output using the transaction ID and the index of the output in the transaction

func (*InputId) Descriptor Uses

func (*InputId) Descriptor() ([]byte, []int)

func (*InputId) GetIndex Uses

func (m *InputId) GetIndex() uint32

func (*InputId) GetTxId Uses

func (m *InputId) GetTxId() string

func (*InputId) ProtoMessage Uses

func (*InputId) ProtoMessage()

func (*InputId) Reset Uses

func (m *InputId) Reset()

func (*InputId) String Uses

func (m *InputId) String() string

func (*InputId) XXX_DiscardUnknown Uses

func (m *InputId) XXX_DiscardUnknown()

func (*InputId) XXX_Marshal Uses

func (m *InputId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InputId) XXX_Merge Uses

func (dst *InputId) XXX_Merge(src proto.Message)

func (*InputId) XXX_Size Uses

func (m *InputId) XXX_Size() int

func (*InputId) XXX_Unmarshal Uses

func (m *InputId) XXX_Unmarshal(b []byte) error

type ListRequest Uses

type ListRequest struct {
    Credential           []byte   `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ListRequest is used to request a list of unspent tokens

func (*ListRequest) Descriptor Uses

func (*ListRequest) Descriptor() ([]byte, []int)

func (*ListRequest) GetCredential Uses

func (m *ListRequest) GetCredential() []byte

func (*ListRequest) ProtoMessage Uses

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset Uses

func (m *ListRequest) Reset()

func (*ListRequest) String Uses

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown Uses

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal Uses

func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListRequest) XXX_Merge Uses

func (dst *ListRequest) XXX_Merge(src proto.Message)

func (*ListRequest) XXX_Size Uses

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal Uses

func (m *ListRequest) XXX_Unmarshal(b []byte) error

type PlainApprove Uses

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:"-"`
}

PlainApprove specifies an approve of one or more tokens in plaintext format

func (*PlainApprove) Descriptor Uses

func (*PlainApprove) Descriptor() ([]byte, []int)

func (*PlainApprove) GetDelegatedOutputs Uses

func (m *PlainApprove) GetDelegatedOutputs() []*PlainDelegatedOutput

func (*PlainApprove) GetInputs Uses

func (m *PlainApprove) GetInputs() []*InputId

func (*PlainApprove) GetOutput Uses

func (m *PlainApprove) GetOutput() *PlainOutput

func (*PlainApprove) ProtoMessage Uses

func (*PlainApprove) ProtoMessage()

func (*PlainApprove) Reset Uses

func (m *PlainApprove) Reset()

func (*PlainApprove) String Uses

func (m *PlainApprove) String() string

func (*PlainApprove) XXX_DiscardUnknown Uses

func (m *PlainApprove) XXX_DiscardUnknown()

func (*PlainApprove) XXX_Marshal Uses

func (m *PlainApprove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainApprove) XXX_Merge Uses

func (dst *PlainApprove) XXX_Merge(src proto.Message)

func (*PlainApprove) XXX_Size Uses

func (m *PlainApprove) XXX_Size() int

func (*PlainApprove) XXX_Unmarshal Uses

func (m *PlainApprove) XXX_Unmarshal(b []byte) error

type PlainDelegatedOutput Uses

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:"-"`
}

A PlainDelegatedOutput is the result of approve transactions using plaintext tokens

func (*PlainDelegatedOutput) Descriptor Uses

func (*PlainDelegatedOutput) Descriptor() ([]byte, []int)

func (*PlainDelegatedOutput) GetDelegatees Uses

func (m *PlainDelegatedOutput) GetDelegatees() [][]byte

func (*PlainDelegatedOutput) GetOwner Uses

func (m *PlainDelegatedOutput) GetOwner() []byte

func (*PlainDelegatedOutput) GetQuantity Uses

func (m *PlainDelegatedOutput) GetQuantity() uint64

func (*PlainDelegatedOutput) GetType Uses

func (m *PlainDelegatedOutput) GetType() string

func (*PlainDelegatedOutput) ProtoMessage Uses

func (*PlainDelegatedOutput) ProtoMessage()

func (*PlainDelegatedOutput) Reset Uses

func (m *PlainDelegatedOutput) Reset()

func (*PlainDelegatedOutput) String Uses

func (m *PlainDelegatedOutput) String() string

func (*PlainDelegatedOutput) XXX_DiscardUnknown Uses

func (m *PlainDelegatedOutput) XXX_DiscardUnknown()

func (*PlainDelegatedOutput) XXX_Marshal Uses

func (m *PlainDelegatedOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainDelegatedOutput) XXX_Merge Uses

func (dst *PlainDelegatedOutput) XXX_Merge(src proto.Message)

func (*PlainDelegatedOutput) XXX_Size Uses

func (m *PlainDelegatedOutput) XXX_Size() int

func (*PlainDelegatedOutput) XXX_Unmarshal Uses

func (m *PlainDelegatedOutput) XXX_Unmarshal(b []byte) error

type PlainExpectation Uses

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:"-"`
}

PlainExpectation represent the plain expectation where no confidentiality is provided.

func (*PlainExpectation) Descriptor Uses

func (*PlainExpectation) Descriptor() ([]byte, []int)

func (*PlainExpectation) GetImportExpectation Uses

func (m *PlainExpectation) GetImportExpectation() *PlainTokenExpectation

func (*PlainExpectation) GetPayload Uses

func (m *PlainExpectation) GetPayload() isPlainExpectation_Payload

func (*PlainExpectation) GetTransferExpectation Uses

func (m *PlainExpectation) GetTransferExpectation() *PlainTokenExpectation

func (*PlainExpectation) ProtoMessage Uses

func (*PlainExpectation) ProtoMessage()

func (*PlainExpectation) Reset Uses

func (m *PlainExpectation) Reset()

func (*PlainExpectation) String Uses

func (m *PlainExpectation) String() string

func (*PlainExpectation) XXX_DiscardUnknown Uses

func (m *PlainExpectation) XXX_DiscardUnknown()

func (*PlainExpectation) XXX_Marshal Uses

func (m *PlainExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainExpectation) XXX_Merge Uses

func (dst *PlainExpectation) XXX_Merge(src proto.Message)

func (*PlainExpectation) XXX_OneofFuncs Uses

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 (*PlainExpectation) XXX_Size Uses

func (m *PlainExpectation) XXX_Size() int

func (*PlainExpectation) XXX_Unmarshal Uses

func (m *PlainExpectation) XXX_Unmarshal(b []byte) error

type PlainExpectation_ImportExpectation Uses

type PlainExpectation_ImportExpectation struct {
    ImportExpectation *PlainTokenExpectation `protobuf:"bytes,1,opt,name=import_expectation,json=importExpectation,proto3,oneof"`
}

type PlainExpectation_TransferExpectation Uses

type PlainExpectation_TransferExpectation struct {
    TransferExpectation *PlainTokenExpectation `protobuf:"bytes,2,opt,name=transfer_expectation,json=transferExpectation,proto3,oneof"`
}

type PlainImport Uses

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:"-"`
}

PlainImport specifies an import of one or more tokens in plaintext format

func (*PlainImport) Descriptor Uses

func (*PlainImport) Descriptor() ([]byte, []int)

func (*PlainImport) GetOutputs Uses

func (m *PlainImport) GetOutputs() []*PlainOutput

func (*PlainImport) ProtoMessage Uses

func (*PlainImport) ProtoMessage()

func (*PlainImport) Reset Uses

func (m *PlainImport) Reset()

func (*PlainImport) String Uses

func (m *PlainImport) String() string

func (*PlainImport) XXX_DiscardUnknown Uses

func (m *PlainImport) XXX_DiscardUnknown()

func (*PlainImport) XXX_Marshal Uses

func (m *PlainImport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainImport) XXX_Merge Uses

func (dst *PlainImport) XXX_Merge(src proto.Message)

func (*PlainImport) XXX_Size Uses

func (m *PlainImport) XXX_Size() int

func (*PlainImport) XXX_Unmarshal Uses

func (m *PlainImport) XXX_Unmarshal(b []byte) error

type PlainOutput Uses

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:"-"`
}

A PlainOutput is the result of import and transfer transactions using plaintext tokens

func (*PlainOutput) Descriptor Uses

func (*PlainOutput) Descriptor() ([]byte, []int)

func (*PlainOutput) GetOwner Uses

func (m *PlainOutput) GetOwner() []byte

func (*PlainOutput) GetQuantity Uses

func (m *PlainOutput) GetQuantity() uint64

func (*PlainOutput) GetType Uses

func (m *PlainOutput) GetType() string

func (*PlainOutput) ProtoMessage Uses

func (*PlainOutput) ProtoMessage()

func (*PlainOutput) Reset Uses

func (m *PlainOutput) Reset()

func (*PlainOutput) String Uses

func (m *PlainOutput) String() string

func (*PlainOutput) XXX_DiscardUnknown Uses

func (m *PlainOutput) XXX_DiscardUnknown()

func (*PlainOutput) XXX_Marshal Uses

func (m *PlainOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainOutput) XXX_Merge Uses

func (dst *PlainOutput) XXX_Merge(src proto.Message)

func (*PlainOutput) XXX_Size Uses

func (m *PlainOutput) XXX_Size() int

func (*PlainOutput) XXX_Unmarshal Uses

func (m *PlainOutput) XXX_Unmarshal(b []byte) error

type PlainTokenAction Uses

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:"-"`
}

PlainTokenAction governs the structure of a token action that is subjected to no privacy restrictions

func (*PlainTokenAction) Descriptor Uses

func (*PlainTokenAction) Descriptor() ([]byte, []int)

func (*PlainTokenAction) GetData Uses

func (m *PlainTokenAction) GetData() isPlainTokenAction_Data

func (*PlainTokenAction) GetPlainApprove Uses

func (m *PlainTokenAction) GetPlainApprove() *PlainApprove

func (*PlainTokenAction) GetPlainImport Uses

func (m *PlainTokenAction) GetPlainImport() *PlainImport

func (*PlainTokenAction) GetPlainRedeem Uses

func (m *PlainTokenAction) GetPlainRedeem() *PlainTransfer

func (*PlainTokenAction) GetPlainTransfer Uses

func (m *PlainTokenAction) GetPlainTransfer() *PlainTransfer

func (*PlainTokenAction) GetPlainTransfer_From Uses

func (m *PlainTokenAction) GetPlainTransfer_From() *PlainTransferFrom

func (*PlainTokenAction) ProtoMessage Uses

func (*PlainTokenAction) ProtoMessage()

func (*PlainTokenAction) Reset Uses

func (m *PlainTokenAction) Reset()

func (*PlainTokenAction) String Uses

func (m *PlainTokenAction) String() string

func (*PlainTokenAction) XXX_DiscardUnknown Uses

func (m *PlainTokenAction) XXX_DiscardUnknown()

func (*PlainTokenAction) XXX_Marshal Uses

func (m *PlainTokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainTokenAction) XXX_Merge Uses

func (dst *PlainTokenAction) XXX_Merge(src proto.Message)

func (*PlainTokenAction) XXX_OneofFuncs Uses

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 (*PlainTokenAction) XXX_Size Uses

func (m *PlainTokenAction) XXX_Size() int

func (*PlainTokenAction) XXX_Unmarshal Uses

func (m *PlainTokenAction) XXX_Unmarshal(b []byte) error

type PlainTokenAction_PlainApprove Uses

type PlainTokenAction_PlainApprove struct {
    PlainApprove *PlainApprove `protobuf:"bytes,4,opt,name=plain_approve,json=plainApprove,proto3,oneof"`
}

type PlainTokenAction_PlainImport Uses

type PlainTokenAction_PlainImport struct {
    PlainImport *PlainImport `protobuf:"bytes,1,opt,name=plain_import,json=plainImport,proto3,oneof"`
}

type PlainTokenAction_PlainRedeem Uses

type PlainTokenAction_PlainRedeem struct {
    PlainRedeem *PlainTransfer `protobuf:"bytes,3,opt,name=plain_redeem,json=plainRedeem,proto3,oneof"`
}

type PlainTokenAction_PlainTransfer Uses

type PlainTokenAction_PlainTransfer struct {
    PlainTransfer *PlainTransfer `protobuf:"bytes,2,opt,name=plain_transfer,json=plainTransfer,proto3,oneof"`
}

type PlainTokenAction_PlainTransfer_From Uses

type PlainTokenAction_PlainTransfer_From struct {
    PlainTransfer_From *PlainTransferFrom `protobuf:"bytes,5,opt,name=plain_transfer_From,json=plainTransferFrom,proto3,oneof"`
}

type PlainTokenExpectation Uses

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:"-"`
}

PlainTokenExpectation represents the expecation that certain outputs will be matched

func (*PlainTokenExpectation) Descriptor Uses

func (*PlainTokenExpectation) Descriptor() ([]byte, []int)

func (*PlainTokenExpectation) GetOutputs Uses

func (m *PlainTokenExpectation) GetOutputs() []*PlainOutput

func (*PlainTokenExpectation) ProtoMessage Uses

func (*PlainTokenExpectation) ProtoMessage()

func (*PlainTokenExpectation) Reset Uses

func (m *PlainTokenExpectation) Reset()

func (*PlainTokenExpectation) String Uses

func (m *PlainTokenExpectation) String() string

func (*PlainTokenExpectation) XXX_DiscardUnknown Uses

func (m *PlainTokenExpectation) XXX_DiscardUnknown()

func (*PlainTokenExpectation) XXX_Marshal Uses

func (m *PlainTokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainTokenExpectation) XXX_Merge Uses

func (dst *PlainTokenExpectation) XXX_Merge(src proto.Message)

func (*PlainTokenExpectation) XXX_Size Uses

func (m *PlainTokenExpectation) XXX_Size() int

func (*PlainTokenExpectation) XXX_Unmarshal Uses

func (m *PlainTokenExpectation) XXX_Unmarshal(b []byte) error

type PlainTransfer Uses

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:"-"`
}

PlainTransfer specifies a transfer of one or more plaintext tokens to one or more outputs

func (*PlainTransfer) Descriptor Uses

func (*PlainTransfer) Descriptor() ([]byte, []int)

func (*PlainTransfer) GetInputs Uses

func (m *PlainTransfer) GetInputs() []*InputId

func (*PlainTransfer) GetOutputs Uses

func (m *PlainTransfer) GetOutputs() []*PlainOutput

func (*PlainTransfer) ProtoMessage Uses

func (*PlainTransfer) ProtoMessage()

func (*PlainTransfer) Reset Uses

func (m *PlainTransfer) Reset()

func (*PlainTransfer) String Uses

func (m *PlainTransfer) String() string

func (*PlainTransfer) XXX_DiscardUnknown Uses

func (m *PlainTransfer) XXX_DiscardUnknown()

func (*PlainTransfer) XXX_Marshal Uses

func (m *PlainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainTransfer) XXX_Merge Uses

func (dst *PlainTransfer) XXX_Merge(src proto.Message)

func (*PlainTransfer) XXX_Size Uses

func (m *PlainTransfer) XXX_Size() int

func (*PlainTransfer) XXX_Unmarshal Uses

func (m *PlainTransfer) XXX_Unmarshal(b []byte) error

type PlainTransferFrom Uses

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:"-"`
}

PlainTransferFrom specifies a transfer of one or more plaintext delegated tokens to one or more outputs an to a delegated output

func (*PlainTransferFrom) Descriptor Uses

func (*PlainTransferFrom) Descriptor() ([]byte, []int)

func (*PlainTransferFrom) GetDelegatedOutput Uses

func (m *PlainTransferFrom) GetDelegatedOutput() *PlainDelegatedOutput

func (*PlainTransferFrom) GetInputs Uses

func (m *PlainTransferFrom) GetInputs() []*InputId

func (*PlainTransferFrom) GetOutputs Uses

func (m *PlainTransferFrom) GetOutputs() []*PlainOutput

func (*PlainTransferFrom) ProtoMessage Uses

func (*PlainTransferFrom) ProtoMessage()

func (*PlainTransferFrom) Reset Uses

func (m *PlainTransferFrom) Reset()

func (*PlainTransferFrom) String Uses

func (m *PlainTransferFrom) String() string

func (*PlainTransferFrom) XXX_DiscardUnknown Uses

func (m *PlainTransferFrom) XXX_DiscardUnknown()

func (*PlainTransferFrom) XXX_Marshal Uses

func (m *PlainTransferFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlainTransferFrom) XXX_Merge Uses

func (dst *PlainTransferFrom) XXX_Merge(src proto.Message)

func (*PlainTransferFrom) XXX_Size Uses

func (m *PlainTransferFrom) XXX_Size() int

func (*PlainTransferFrom) XXX_Unmarshal Uses

func (m *PlainTransferFrom) XXX_Unmarshal(b []byte) error

type ProverClient Uses

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)
}

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.

func NewProverClient Uses

func NewProverClient(cc *grpc.ClientConn) ProverClient

type ProverServer Uses

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)
}

ProverServer is the server API for Prover service.

type RecipientTransferShare Uses

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:"-"`
}

RecipientTransferShare describes how much a recipient will receive in a token transfer

func (*RecipientTransferShare) Descriptor Uses

func (*RecipientTransferShare) Descriptor() ([]byte, []int)

func (*RecipientTransferShare) GetQuantity Uses

func (m *RecipientTransferShare) GetQuantity() uint64

func (*RecipientTransferShare) GetRecipient Uses

func (m *RecipientTransferShare) GetRecipient() []byte

func (*RecipientTransferShare) ProtoMessage Uses

func (*RecipientTransferShare) ProtoMessage()

func (*RecipientTransferShare) Reset Uses

func (m *RecipientTransferShare) Reset()

func (*RecipientTransferShare) String Uses

func (m *RecipientTransferShare) String() string

func (*RecipientTransferShare) XXX_DiscardUnknown Uses

func (m *RecipientTransferShare) XXX_DiscardUnknown()

func (*RecipientTransferShare) XXX_Marshal Uses

func (m *RecipientTransferShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecipientTransferShare) XXX_Merge Uses

func (dst *RecipientTransferShare) XXX_Merge(src proto.Message)

func (*RecipientTransferShare) XXX_Size Uses

func (m *RecipientTransferShare) XXX_Size() int

func (*RecipientTransferShare) XXX_Unmarshal Uses

func (m *RecipientTransferShare) XXX_Unmarshal(b []byte) error

type RedeemRequest Uses

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:"-"`
}

RedeemRequest is used to request token redemption

func (*RedeemRequest) Descriptor Uses

func (*RedeemRequest) Descriptor() ([]byte, []int)

func (*RedeemRequest) GetCredential Uses

func (m *RedeemRequest) GetCredential() []byte

func (*RedeemRequest) GetQuantityToRedeem Uses

func (m *RedeemRequest) GetQuantityToRedeem() uint64

func (*RedeemRequest) GetTokenIds Uses

func (m *RedeemRequest) GetTokenIds() [][]byte

func (*RedeemRequest) ProtoMessage Uses

func (*RedeemRequest) ProtoMessage()

func (*RedeemRequest) Reset Uses

func (m *RedeemRequest) Reset()

func (*RedeemRequest) String Uses

func (m *RedeemRequest) String() string

func (*RedeemRequest) XXX_DiscardUnknown Uses

func (m *RedeemRequest) XXX_DiscardUnknown()

func (*RedeemRequest) XXX_Marshal Uses

func (m *RedeemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedeemRequest) XXX_Merge Uses

func (dst *RedeemRequest) XXX_Merge(src proto.Message)

func (*RedeemRequest) XXX_Size Uses

func (m *RedeemRequest) XXX_Size() int

func (*RedeemRequest) XXX_Unmarshal Uses

func (m *RedeemRequest) XXX_Unmarshal(b []byte) error

type SignedCommand Uses

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:"-"`
}

SignedCommand is a command that carries the signature of the command's creator.

func (*SignedCommand) Descriptor Uses

func (*SignedCommand) Descriptor() ([]byte, []int)

func (*SignedCommand) GetCommand Uses

func (m *SignedCommand) GetCommand() []byte

func (*SignedCommand) GetSignature Uses

func (m *SignedCommand) GetSignature() []byte

func (*SignedCommand) ProtoMessage Uses

func (*SignedCommand) ProtoMessage()

func (*SignedCommand) Reset Uses

func (m *SignedCommand) Reset()

func (*SignedCommand) String Uses

func (m *SignedCommand) String() string

func (*SignedCommand) XXX_DiscardUnknown Uses

func (m *SignedCommand) XXX_DiscardUnknown()

func (*SignedCommand) XXX_Marshal Uses

func (m *SignedCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedCommand) XXX_Merge Uses

func (dst *SignedCommand) XXX_Merge(src proto.Message)

func (*SignedCommand) XXX_Size Uses

func (m *SignedCommand) XXX_Size() int

func (*SignedCommand) XXX_Unmarshal Uses

func (m *SignedCommand) XXX_Unmarshal(b []byte) error

type SignedCommandResponse Uses

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:"-"`
}

SignedCommandResponse is a signed command response

func (*SignedCommandResponse) Descriptor Uses

func (*SignedCommandResponse) Descriptor() ([]byte, []int)

func (*SignedCommandResponse) GetResponse Uses

func (m *SignedCommandResponse) GetResponse() []byte

func (*SignedCommandResponse) GetSignature Uses

func (m *SignedCommandResponse) GetSignature() []byte

func (*SignedCommandResponse) ProtoMessage Uses

func (*SignedCommandResponse) ProtoMessage()

func (*SignedCommandResponse) Reset Uses

func (m *SignedCommandResponse) Reset()

func (*SignedCommandResponse) String Uses

func (m *SignedCommandResponse) String() string

func (*SignedCommandResponse) XXX_DiscardUnknown Uses

func (m *SignedCommandResponse) XXX_DiscardUnknown()

func (*SignedCommandResponse) XXX_Marshal Uses

func (m *SignedCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedCommandResponse) XXX_Merge Uses

func (dst *SignedCommandResponse) XXX_Merge(src proto.Message)

func (*SignedCommandResponse) XXX_Size Uses

func (m *SignedCommandResponse) XXX_Size() int

func (*SignedCommandResponse) XXX_Unmarshal Uses

func (m *SignedCommandResponse) XXX_Unmarshal(b []byte) error

type TokenExpectation Uses

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:"-"`
}

TokenExpectation represent the belief that someone should achieve in terms of a token action

func (*TokenExpectation) Descriptor Uses

func (*TokenExpectation) Descriptor() ([]byte, []int)

func (*TokenExpectation) GetExpectation Uses

func (m *TokenExpectation) GetExpectation() isTokenExpectation_Expectation

func (*TokenExpectation) GetPlainExpectation Uses

func (m *TokenExpectation) GetPlainExpectation() *PlainExpectation

func (*TokenExpectation) ProtoMessage Uses

func (*TokenExpectation) ProtoMessage()

func (*TokenExpectation) Reset Uses

func (m *TokenExpectation) Reset()

func (*TokenExpectation) String Uses

func (m *TokenExpectation) String() string

func (*TokenExpectation) XXX_DiscardUnknown Uses

func (m *TokenExpectation) XXX_DiscardUnknown()

func (*TokenExpectation) XXX_Marshal Uses

func (m *TokenExpectation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenExpectation) XXX_Merge Uses

func (dst *TokenExpectation) XXX_Merge(src proto.Message)

func (*TokenExpectation) XXX_OneofFuncs Uses

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 (*TokenExpectation) XXX_Size Uses

func (m *TokenExpectation) XXX_Size() int

func (*TokenExpectation) XXX_Unmarshal Uses

func (m *TokenExpectation) XXX_Unmarshal(b []byte) error

type TokenExpectation_PlainExpectation Uses

type TokenExpectation_PlainExpectation struct {
    PlainExpectation *PlainExpectation `protobuf:"bytes,1,opt,name=plain_expectation,json=plainExpectation,proto3,oneof"`
}

type TokenOutput Uses

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:"-"`
}

TokenOutput is used to specify a token returned by ListRequest

func (*TokenOutput) Descriptor Uses

func (*TokenOutput) Descriptor() ([]byte, []int)

func (*TokenOutput) GetId Uses

func (m *TokenOutput) GetId() []byte

func (*TokenOutput) GetQuantity Uses

func (m *TokenOutput) GetQuantity() uint64

func (*TokenOutput) GetType Uses

func (m *TokenOutput) GetType() string

func (*TokenOutput) ProtoMessage Uses

func (*TokenOutput) ProtoMessage()

func (*TokenOutput) Reset Uses

func (m *TokenOutput) Reset()

func (*TokenOutput) String Uses

func (m *TokenOutput) String() string

func (*TokenOutput) XXX_DiscardUnknown Uses

func (m *TokenOutput) XXX_DiscardUnknown()

func (*TokenOutput) XXX_Marshal Uses

func (m *TokenOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenOutput) XXX_Merge Uses

func (dst *TokenOutput) XXX_Merge(src proto.Message)

func (*TokenOutput) XXX_Size Uses

func (m *TokenOutput) XXX_Size() int

func (*TokenOutput) XXX_Unmarshal Uses

func (m *TokenOutput) XXX_Unmarshal(b []byte) error

type TokenToIssue Uses

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:"-"`
}

TokenToIssue describes a token to be issued in the system

func (*TokenToIssue) Descriptor Uses

func (*TokenToIssue) Descriptor() ([]byte, []int)

func (*TokenToIssue) GetQuantity Uses

func (m *TokenToIssue) GetQuantity() uint64

func (*TokenToIssue) GetRecipient Uses

func (m *TokenToIssue) GetRecipient() []byte

func (*TokenToIssue) GetType Uses

func (m *TokenToIssue) GetType() string

func (*TokenToIssue) ProtoMessage Uses

func (*TokenToIssue) ProtoMessage()

func (*TokenToIssue) Reset Uses

func (m *TokenToIssue) Reset()

func (*TokenToIssue) String Uses

func (m *TokenToIssue) String() string

func (*TokenToIssue) XXX_DiscardUnknown Uses

func (m *TokenToIssue) XXX_DiscardUnknown()

func (*TokenToIssue) XXX_Marshal Uses

func (m *TokenToIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenToIssue) XXX_Merge Uses

func (dst *TokenToIssue) XXX_Merge(src proto.Message)

func (*TokenToIssue) XXX_Size Uses

func (m *TokenToIssue) XXX_Size() int

func (*TokenToIssue) XXX_Unmarshal Uses

func (m *TokenToIssue) XXX_Unmarshal(b []byte) error

type TokenTransaction Uses

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:"-"`
}

TokenTransaction governs the structure of Payload.data, when the transaction's envelope header indicates a transaction of type "Token"

func (*TokenTransaction) Descriptor Uses

func (*TokenTransaction) Descriptor() ([]byte, []int)

func (*TokenTransaction) GetAction Uses

func (m *TokenTransaction) GetAction() isTokenTransaction_Action

func (*TokenTransaction) GetPlainAction Uses

func (m *TokenTransaction) GetPlainAction() *PlainTokenAction

func (*TokenTransaction) ProtoMessage Uses

func (*TokenTransaction) ProtoMessage()

func (*TokenTransaction) Reset Uses

func (m *TokenTransaction) Reset()

func (*TokenTransaction) String Uses

func (m *TokenTransaction) String() string

func (*TokenTransaction) XXX_DiscardUnknown Uses

func (m *TokenTransaction) XXX_DiscardUnknown()

func (*TokenTransaction) XXX_Marshal Uses

func (m *TokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenTransaction) XXX_Merge Uses

func (dst *TokenTransaction) XXX_Merge(src proto.Message)

func (*TokenTransaction) XXX_OneofFuncs Uses

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 (*TokenTransaction) XXX_Size Uses

func (m *TokenTransaction) XXX_Size() int

func (*TokenTransaction) XXX_Unmarshal Uses

func (m *TokenTransaction) XXX_Unmarshal(b []byte) error

type TokenTransaction_PlainAction Uses

type TokenTransaction_PlainAction struct {
    PlainAction *PlainTokenAction `protobuf:"bytes,1,opt,name=plain_action,json=plainAction,proto3,oneof"`
}

type TransferRequest Uses

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:"-"`
}

RequestTransfer is used to request creation of transfers

func (*TransferRequest) Descriptor Uses

func (*TransferRequest) Descriptor() ([]byte, []int)

func (*TransferRequest) GetCredential Uses

func (m *TransferRequest) GetCredential() []byte

func (*TransferRequest) GetShares Uses

func (m *TransferRequest) GetShares() []*RecipientTransferShare

func (*TransferRequest) GetTokenIds Uses

func (m *TransferRequest) GetTokenIds() [][]byte

func (*TransferRequest) ProtoMessage Uses

func (*TransferRequest) ProtoMessage()

func (*TransferRequest) Reset Uses

func (m *TransferRequest) Reset()

func (*TransferRequest) String Uses

func (m *TransferRequest) String() string

func (*TransferRequest) XXX_DiscardUnknown Uses

func (m *TransferRequest) XXX_DiscardUnknown()

func (*TransferRequest) XXX_Marshal Uses

func (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferRequest) XXX_Merge Uses

func (dst *TransferRequest) XXX_Merge(src proto.Message)

func (*TransferRequest) XXX_Size Uses

func (m *TransferRequest) XXX_Size() int

func (*TransferRequest) XXX_Unmarshal Uses

func (m *TransferRequest) XXX_Unmarshal(b []byte) error

type UnspentTokens Uses

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:"-"`
}

UnspentTokens is used to hold the output of listRequest

func (*UnspentTokens) Descriptor Uses

func (*UnspentTokens) Descriptor() ([]byte, []int)

func (*UnspentTokens) GetTokens Uses

func (m *UnspentTokens) GetTokens() []*TokenOutput

func (*UnspentTokens) ProtoMessage Uses

func (*UnspentTokens) ProtoMessage()

func (*UnspentTokens) Reset Uses

func (m *UnspentTokens) Reset()

func (*UnspentTokens) String Uses

func (m *UnspentTokens) String() string

func (*UnspentTokens) XXX_DiscardUnknown Uses

func (m *UnspentTokens) XXX_DiscardUnknown()

func (*UnspentTokens) XXX_Marshal Uses

func (m *UnspentTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnspentTokens) XXX_Merge Uses

func (dst *UnspentTokens) XXX_Merge(src proto.Message)

func (*UnspentTokens) XXX_Size Uses

func (m *UnspentTokens) XXX_Size() int

func (*UnspentTokens) XXX_Unmarshal Uses

func (m *UnspentTokens) XXX_Unmarshal(b []byte) error

Package token imports 6 packages (graph) and is imported by 10 packages. Updated 2019-08-09. Refresh now. Tools for package owners.