Documentation ¶
Index ¶
- func RegisterProverServer(s *grpc.Server, srv ProverServer)
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetHeader() *Header
- func (m *Command) GetImportRequest() *ImportRequest
- func (m *Command) GetPayload() isCommand_Payload
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Command) XXX_Merge(src proto.Message)
- func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type CommandResponse
- func (*CommandResponse) Descriptor() ([]byte, []int)
- func (m *CommandResponse) GetErr() *Error
- func (m *CommandResponse) GetHeader() *CommandResponseHeader
- func (m *CommandResponse) GetPayload() isCommandResponse_Payload
- func (m *CommandResponse) GetTokenTransaction() *TokenTransaction
- func (*CommandResponse) ProtoMessage()
- func (m *CommandResponse) Reset()
- func (m *CommandResponse) String() string
- func (m *CommandResponse) XXX_DiscardUnknown()
- func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CommandResponse) XXX_Merge(src proto.Message)
- func (*CommandResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *CommandResponse) XXX_Size() int
- func (m *CommandResponse) XXX_Unmarshal(b []byte) error
- type CommandResponseHeader
- func (*CommandResponseHeader) Descriptor() ([]byte, []int)
- func (m *CommandResponseHeader) GetCommandHash() []byte
- func (m *CommandResponseHeader) GetCreator() []byte
- func (m *CommandResponseHeader) GetTimestamp() *timestamp.Timestamp
- func (*CommandResponseHeader) ProtoMessage()
- func (m *CommandResponseHeader) Reset()
- func (m *CommandResponseHeader) String() string
- func (m *CommandResponseHeader) XXX_DiscardUnknown()
- func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CommandResponseHeader) XXX_Merge(src proto.Message)
- func (m *CommandResponseHeader) XXX_Size() int
- func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error
- type CommandResponse_Err
- type CommandResponse_TokenTransaction
- type Command_ImportRequest
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetMessage() string
- func (m *Error) GetPayload() []byte
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetChannelId() string
- func (m *Header) GetCreator() []byte
- func (m *Header) GetNonce() []byte
- func (m *Header) GetTimestamp() *timestamp.Timestamp
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type ImportRequest
- func (*ImportRequest) Descriptor() ([]byte, []int)
- func (m *ImportRequest) GetCredential() []byte
- func (m *ImportRequest) GetTokensToIssue() []*TokenToIssue
- func (*ImportRequest) ProtoMessage()
- func (m *ImportRequest) Reset()
- func (m *ImportRequest) String() string
- func (m *ImportRequest) XXX_DiscardUnknown()
- func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ImportRequest) XXX_Merge(src proto.Message)
- func (m *ImportRequest) XXX_Size() int
- func (m *ImportRequest) XXX_Unmarshal(b []byte) error
- type InputId
- func (*InputId) Descriptor() ([]byte, []int)
- func (m *InputId) GetIndex() uint32
- func (m *InputId) GetTxId() []byte
- func (*InputId) ProtoMessage()
- func (m *InputId) Reset()
- func (m *InputId) String() string
- func (m *InputId) XXX_DiscardUnknown()
- func (m *InputId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InputId) XXX_Merge(src proto.Message)
- func (m *InputId) XXX_Size() int
- func (m *InputId) XXX_Unmarshal(b []byte) error
- type PlainImport
- func (*PlainImport) Descriptor() ([]byte, []int)
- func (m *PlainImport) GetOutputs() []*PlainOutput
- func (*PlainImport) ProtoMessage()
- func (m *PlainImport) Reset()
- func (m *PlainImport) String() string
- func (m *PlainImport) XXX_DiscardUnknown()
- func (m *PlainImport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainImport) XXX_Merge(src proto.Message)
- func (m *PlainImport) XXX_Size() int
- func (m *PlainImport) XXX_Unmarshal(b []byte) error
- type PlainOutput
- func (*PlainOutput) Descriptor() ([]byte, []int)
- func (m *PlainOutput) GetOwner() []byte
- func (m *PlainOutput) GetQuantity() uint64
- func (m *PlainOutput) GetType() string
- func (*PlainOutput) ProtoMessage()
- func (m *PlainOutput) Reset()
- func (m *PlainOutput) String() string
- func (m *PlainOutput) XXX_DiscardUnknown()
- func (m *PlainOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainOutput) XXX_Merge(src proto.Message)
- func (m *PlainOutput) XXX_Size() int
- func (m *PlainOutput) XXX_Unmarshal(b []byte) error
- type PlainTokenAction
- func (*PlainTokenAction) Descriptor() ([]byte, []int)
- func (m *PlainTokenAction) GetData() isPlainTokenAction_Data
- func (m *PlainTokenAction) GetPlainImport() *PlainImport
- func (m *PlainTokenAction) GetPlainTransfer() *PlainTransfer
- func (*PlainTokenAction) ProtoMessage()
- func (m *PlainTokenAction) Reset()
- func (m *PlainTokenAction) String() string
- func (m *PlainTokenAction) XXX_DiscardUnknown()
- func (m *PlainTokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainTokenAction) XXX_Merge(src proto.Message)
- func (*PlainTokenAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *PlainTokenAction) XXX_Size() int
- func (m *PlainTokenAction) XXX_Unmarshal(b []byte) error
- type PlainTokenAction_PlainImport
- type PlainTokenAction_PlainTransfer
- type PlainTransfer
- func (*PlainTransfer) Descriptor() ([]byte, []int)
- func (m *PlainTransfer) GetInputs() []*InputId
- func (m *PlainTransfer) GetOutputs() []*PlainOutput
- func (*PlainTransfer) ProtoMessage()
- func (m *PlainTransfer) Reset()
- func (m *PlainTransfer) String() string
- func (m *PlainTransfer) XXX_DiscardUnknown()
- func (m *PlainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlainTransfer) XXX_Merge(src proto.Message)
- func (m *PlainTransfer) XXX_Size() int
- func (m *PlainTransfer) XXX_Unmarshal(b []byte) error
- type ProverClient
- type ProverServer
- type SignedCommand
- func (*SignedCommand) Descriptor() ([]byte, []int)
- func (m *SignedCommand) GetCommand() []byte
- func (m *SignedCommand) GetSignature() []byte
- func (*SignedCommand) ProtoMessage()
- func (m *SignedCommand) Reset()
- func (m *SignedCommand) String() string
- func (m *SignedCommand) XXX_DiscardUnknown()
- func (m *SignedCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedCommand) XXX_Merge(src proto.Message)
- func (m *SignedCommand) XXX_Size() int
- func (m *SignedCommand) XXX_Unmarshal(b []byte) error
- type SignedCommandResponse
- func (*SignedCommandResponse) Descriptor() ([]byte, []int)
- func (m *SignedCommandResponse) GetResponse() []byte
- func (m *SignedCommandResponse) GetSignature() []byte
- func (*SignedCommandResponse) ProtoMessage()
- func (m *SignedCommandResponse) Reset()
- func (m *SignedCommandResponse) String() string
- func (m *SignedCommandResponse) XXX_DiscardUnknown()
- func (m *SignedCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedCommandResponse) XXX_Merge(src proto.Message)
- func (m *SignedCommandResponse) XXX_Size() int
- func (m *SignedCommandResponse) XXX_Unmarshal(b []byte) error
- type TokenToIssue
- func (*TokenToIssue) Descriptor() ([]byte, []int)
- func (m *TokenToIssue) GetQuantity() uint64
- func (m *TokenToIssue) GetRecipient() []byte
- func (m *TokenToIssue) GetType() string
- func (*TokenToIssue) ProtoMessage()
- func (m *TokenToIssue) Reset()
- func (m *TokenToIssue) String() string
- func (m *TokenToIssue) XXX_DiscardUnknown()
- func (m *TokenToIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TokenToIssue) XXX_Merge(src proto.Message)
- func (m *TokenToIssue) XXX_Size() int
- func (m *TokenToIssue) XXX_Unmarshal(b []byte) error
- type TokenTransaction
- func (*TokenTransaction) Descriptor() ([]byte, []int)
- func (m *TokenTransaction) GetAction() isTokenTransaction_Action
- func (m *TokenTransaction) GetPlainAction() *PlainTokenAction
- func (*TokenTransaction) ProtoMessage()
- func (m *TokenTransaction) Reset()
- func (m *TokenTransaction) String() string
- func (m *TokenTransaction) XXX_DiscardUnknown()
- func (m *TokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TokenTransaction) XXX_Merge(src proto.Message)
- func (*TokenTransaction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *TokenTransaction) XXX_Size() int
- func (m *TokenTransaction) XXX_Unmarshal(b []byte) error
- type TokenTransaction_PlainAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProverServer ¶
func RegisterProverServer(s *grpc.Server, srv ProverServer)
Types ¶
type Command ¶
type Command struct { // Header is the header of this command Header *Header `protobuf:"bytes,1,opt,name=header" 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 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 ¶
func (*Command) GetImportRequest ¶
func (m *Command) GetImportRequest() *ImportRequest
func (*Command) GetPayload ¶
func (m *Command) GetPayload() isCommand_Payload
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_OneofFuncs ¶
func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Command) XXX_Unmarshal ¶
type CommandResponse ¶
type CommandResponse struct { // Header of the response. Header *CommandResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // Payload of the response. // // Types that are valid to be assigned to Payload: // *CommandResponse_Err // *CommandResponse_TokenTransaction 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 ¶
func (*CommandResponse) Descriptor() ([]byte, []int)
func (*CommandResponse) GetErr ¶
func (m *CommandResponse) GetErr() *Error
func (*CommandResponse) GetHeader ¶
func (m *CommandResponse) GetHeader() *CommandResponseHeader
func (*CommandResponse) GetPayload ¶
func (m *CommandResponse) GetPayload() isCommandResponse_Payload
func (*CommandResponse) GetTokenTransaction ¶
func (m *CommandResponse) GetTokenTransaction() *TokenTransaction
func (*CommandResponse) ProtoMessage ¶
func (*CommandResponse) ProtoMessage()
func (*CommandResponse) Reset ¶
func (m *CommandResponse) Reset()
func (*CommandResponse) String ¶
func (m *CommandResponse) String() string
func (*CommandResponse) XXX_DiscardUnknown ¶
func (m *CommandResponse) XXX_DiscardUnknown()
func (*CommandResponse) XXX_Marshal ¶
func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommandResponse) XXX_Merge ¶
func (dst *CommandResponse) XXX_Merge(src proto.Message)
func (*CommandResponse) XXX_OneofFuncs ¶
func (*CommandResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*CommandResponse) XXX_Size ¶
func (m *CommandResponse) XXX_Size() int
func (*CommandResponse) XXX_Unmarshal ¶
func (m *CommandResponse) XXX_Unmarshal(b []byte) error
type CommandResponseHeader ¶
type CommandResponseHeader struct { // Timestamp is the time that the message // was created as defined by the sender Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp" 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 ¶
func (*CommandResponseHeader) Descriptor() ([]byte, []int)
func (*CommandResponseHeader) GetCommandHash ¶
func (m *CommandResponseHeader) GetCommandHash() []byte
func (*CommandResponseHeader) GetCreator ¶
func (m *CommandResponseHeader) GetCreator() []byte
func (*CommandResponseHeader) GetTimestamp ¶
func (m *CommandResponseHeader) GetTimestamp() *timestamp.Timestamp
func (*CommandResponseHeader) ProtoMessage ¶
func (*CommandResponseHeader) ProtoMessage()
func (*CommandResponseHeader) Reset ¶
func (m *CommandResponseHeader) Reset()
func (*CommandResponseHeader) String ¶
func (m *CommandResponseHeader) String() string
func (*CommandResponseHeader) XXX_DiscardUnknown ¶
func (m *CommandResponseHeader) XXX_DiscardUnknown()
func (*CommandResponseHeader) XXX_Marshal ¶
func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommandResponseHeader) XXX_Merge ¶
func (dst *CommandResponseHeader) XXX_Merge(src proto.Message)
func (*CommandResponseHeader) XXX_Size ¶
func (m *CommandResponseHeader) XXX_Size() int
func (*CommandResponseHeader) XXX_Unmarshal ¶
func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error
type CommandResponse_Err ¶
type CommandResponse_Err struct {
Err *Error `protobuf:"bytes,2,opt,name=err,oneof"`
}
type CommandResponse_TokenTransaction ¶
type CommandResponse_TokenTransaction struct {
TokenTransaction *TokenTransaction `protobuf:"bytes,3,opt,name=token_transaction,json=tokenTransaction,oneof"`
}
type Command_ImportRequest ¶
type Command_ImportRequest struct {
ImportRequest *ImportRequest `protobuf:"bytes,2,opt,name=import_request,json=importRequest,oneof"`
}
type Error ¶
type Error struct { // Message associated with this response. Message string `protobuf:"bytes,1,opt,name=message" 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 applicaton error
func (*Error) Descriptor ¶
func (*Error) GetMessage ¶
func (*Error) GetPayload ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type Header ¶
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" json:"timestamp,omitempty"` // ChannelId identifies the channel this message is bound for ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId" 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 ¶
func (*Header) GetChannelId ¶
func (*Header) GetCreator ¶
func (*Header) GetTimestamp ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type ImportRequest ¶
type ImportRequest struct { // Credential 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" 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 ¶
func (*ImportRequest) Descriptor() ([]byte, []int)
func (*ImportRequest) GetCredential ¶
func (m *ImportRequest) GetCredential() []byte
func (*ImportRequest) GetTokensToIssue ¶
func (m *ImportRequest) GetTokensToIssue() []*TokenToIssue
func (*ImportRequest) ProtoMessage ¶
func (*ImportRequest) ProtoMessage()
func (*ImportRequest) Reset ¶
func (m *ImportRequest) Reset()
func (*ImportRequest) String ¶
func (m *ImportRequest) String() string
func (*ImportRequest) XXX_DiscardUnknown ¶
func (m *ImportRequest) XXX_DiscardUnknown()
func (*ImportRequest) XXX_Marshal ¶
func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImportRequest) XXX_Merge ¶
func (dst *ImportRequest) XXX_Merge(src proto.Message)
func (*ImportRequest) XXX_Size ¶
func (m *ImportRequest) XXX_Size() int
func (*ImportRequest) XXX_Unmarshal ¶
func (m *ImportRequest) XXX_Unmarshal(b []byte) error
type InputId ¶
type InputId struct { // The transaction ID TxId []byte `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" 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 ¶
func (*InputId) ProtoMessage ¶
func (*InputId) ProtoMessage()
func (*InputId) XXX_DiscardUnknown ¶
func (m *InputId) XXX_DiscardUnknown()
func (*InputId) XXX_Marshal ¶
func (*InputId) XXX_Unmarshal ¶
type PlainImport ¶
type PlainImport struct { // An import transaction may contain one or more outputs Outputs []*PlainOutput `protobuf:"bytes,1,rep,name=outputs" 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 ¶
func (*PlainImport) Descriptor() ([]byte, []int)
func (*PlainImport) GetOutputs ¶
func (m *PlainImport) GetOutputs() []*PlainOutput
func (*PlainImport) ProtoMessage ¶
func (*PlainImport) ProtoMessage()
func (*PlainImport) Reset ¶
func (m *PlainImport) Reset()
func (*PlainImport) String ¶
func (m *PlainImport) String() string
func (*PlainImport) XXX_DiscardUnknown ¶
func (m *PlainImport) XXX_DiscardUnknown()
func (*PlainImport) XXX_Marshal ¶
func (m *PlainImport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainImport) XXX_Merge ¶
func (dst *PlainImport) XXX_Merge(src proto.Message)
func (*PlainImport) XXX_Size ¶
func (m *PlainImport) XXX_Size() int
func (*PlainImport) XXX_Unmarshal ¶
func (m *PlainImport) XXX_Unmarshal(b []byte) error
type PlainOutput ¶
type PlainOutput struct { // 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" json:"type,omitempty"` // The quantity of tokens Quantity uint64 `protobuf:"varint,3,opt,name=quantity" 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 ¶
func (*PlainOutput) Descriptor() ([]byte, []int)
func (*PlainOutput) GetOwner ¶
func (m *PlainOutput) GetOwner() []byte
func (*PlainOutput) GetQuantity ¶
func (m *PlainOutput) GetQuantity() uint64
func (*PlainOutput) GetType ¶
func (m *PlainOutput) GetType() string
func (*PlainOutput) ProtoMessage ¶
func (*PlainOutput) ProtoMessage()
func (*PlainOutput) Reset ¶
func (m *PlainOutput) Reset()
func (*PlainOutput) String ¶
func (m *PlainOutput) String() string
func (*PlainOutput) XXX_DiscardUnknown ¶
func (m *PlainOutput) XXX_DiscardUnknown()
func (*PlainOutput) XXX_Marshal ¶
func (m *PlainOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainOutput) XXX_Merge ¶
func (dst *PlainOutput) XXX_Merge(src proto.Message)
func (*PlainOutput) XXX_Size ¶
func (m *PlainOutput) XXX_Size() int
func (*PlainOutput) XXX_Unmarshal ¶
func (m *PlainOutput) XXX_Unmarshal(b []byte) error
type PlainTokenAction ¶
type PlainTokenAction struct { // Types that are valid to be assigned to Data: // *PlainTokenAction_PlainImport // *PlainTokenAction_PlainTransfer 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 ¶
func (*PlainTokenAction) Descriptor() ([]byte, []int)
func (*PlainTokenAction) GetData ¶
func (m *PlainTokenAction) GetData() isPlainTokenAction_Data
func (*PlainTokenAction) GetPlainImport ¶
func (m *PlainTokenAction) GetPlainImport() *PlainImport
func (*PlainTokenAction) GetPlainTransfer ¶
func (m *PlainTokenAction) GetPlainTransfer() *PlainTransfer
func (*PlainTokenAction) ProtoMessage ¶
func (*PlainTokenAction) ProtoMessage()
func (*PlainTokenAction) Reset ¶
func (m *PlainTokenAction) Reset()
func (*PlainTokenAction) String ¶
func (m *PlainTokenAction) String() string
func (*PlainTokenAction) XXX_DiscardUnknown ¶
func (m *PlainTokenAction) XXX_DiscardUnknown()
func (*PlainTokenAction) XXX_Marshal ¶
func (m *PlainTokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTokenAction) XXX_Merge ¶
func (dst *PlainTokenAction) XXX_Merge(src proto.Message)
func (*PlainTokenAction) XXX_OneofFuncs ¶
func (*PlainTokenAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*PlainTokenAction) XXX_Size ¶
func (m *PlainTokenAction) XXX_Size() int
func (*PlainTokenAction) XXX_Unmarshal ¶
func (m *PlainTokenAction) XXX_Unmarshal(b []byte) error
type PlainTokenAction_PlainImport ¶
type PlainTokenAction_PlainImport struct {
PlainImport *PlainImport `protobuf:"bytes,1,opt,name=plain_import,json=plainImport,oneof"`
}
type PlainTokenAction_PlainTransfer ¶
type PlainTokenAction_PlainTransfer struct {
PlainTransfer *PlainTransfer `protobuf:"bytes,2,opt,name=plain_transfer,json=plainTransfer,oneof"`
}
type PlainTransfer ¶
type PlainTransfer struct { // The inputs to the transfer transaction are specified by their ID Inputs []*InputId `protobuf:"bytes,1,rep,name=inputs" json:"inputs,omitempty"` // A transfer transaction may contain one or more outputs Outputs []*PlainOutput `protobuf:"bytes,2,rep,name=outputs" json:"outputs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PlainTransfer specifies a transfer or one or more plaintext tokens to one or more outputs
func (*PlainTransfer) Descriptor ¶
func (*PlainTransfer) Descriptor() ([]byte, []int)
func (*PlainTransfer) GetInputs ¶
func (m *PlainTransfer) GetInputs() []*InputId
func (*PlainTransfer) GetOutputs ¶
func (m *PlainTransfer) GetOutputs() []*PlainOutput
func (*PlainTransfer) ProtoMessage ¶
func (*PlainTransfer) ProtoMessage()
func (*PlainTransfer) Reset ¶
func (m *PlainTransfer) Reset()
func (*PlainTransfer) String ¶
func (m *PlainTransfer) String() string
func (*PlainTransfer) XXX_DiscardUnknown ¶
func (m *PlainTransfer) XXX_DiscardUnknown()
func (*PlainTransfer) XXX_Marshal ¶
func (m *PlainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTransfer) XXX_Merge ¶
func (dst *PlainTransfer) XXX_Merge(src proto.Message)
func (*PlainTransfer) XXX_Size ¶
func (m *PlainTransfer) XXX_Size() int
func (*PlainTransfer) XXX_Unmarshal ¶
func (m *PlainTransfer) XXX_Unmarshal(b []byte) error
type ProverClient ¶
type ProverClient interface { // ProcessCommand processes the passed command ensuring proper access control. // The returned response allows the client to understand if the // operation was succeffully executed and if not, the response // reports the reason of the failure. ProcessCommand(ctx context.Context, in *SignedCommand, opts ...grpc.CallOption) (*SignedCommandResponse, error) }
func NewProverClient ¶
func NewProverClient(cc *grpc.ClientConn) ProverClient
type ProverServer ¶
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) }
type SignedCommand ¶
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 ¶
func (*SignedCommand) Descriptor() ([]byte, []int)
func (*SignedCommand) GetCommand ¶
func (m *SignedCommand) GetCommand() []byte
func (*SignedCommand) GetSignature ¶
func (m *SignedCommand) GetSignature() []byte
func (*SignedCommand) ProtoMessage ¶
func (*SignedCommand) ProtoMessage()
func (*SignedCommand) Reset ¶
func (m *SignedCommand) Reset()
func (*SignedCommand) String ¶
func (m *SignedCommand) String() string
func (*SignedCommand) XXX_DiscardUnknown ¶
func (m *SignedCommand) XXX_DiscardUnknown()
func (*SignedCommand) XXX_Marshal ¶
func (m *SignedCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedCommand) XXX_Merge ¶
func (dst *SignedCommand) XXX_Merge(src proto.Message)
func (*SignedCommand) XXX_Size ¶
func (m *SignedCommand) XXX_Size() int
func (*SignedCommand) XXX_Unmarshal ¶
func (m *SignedCommand) XXX_Unmarshal(b []byte) error
type SignedCommandResponse ¶
type SignedCommandResponse struct { // Response 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 ¶
func (*SignedCommandResponse) Descriptor() ([]byte, []int)
func (*SignedCommandResponse) GetResponse ¶
func (m *SignedCommandResponse) GetResponse() []byte
func (*SignedCommandResponse) GetSignature ¶
func (m *SignedCommandResponse) GetSignature() []byte
func (*SignedCommandResponse) ProtoMessage ¶
func (*SignedCommandResponse) ProtoMessage()
func (*SignedCommandResponse) Reset ¶
func (m *SignedCommandResponse) Reset()
func (*SignedCommandResponse) String ¶
func (m *SignedCommandResponse) String() string
func (*SignedCommandResponse) XXX_DiscardUnknown ¶
func (m *SignedCommandResponse) XXX_DiscardUnknown()
func (*SignedCommandResponse) XXX_Marshal ¶
func (m *SignedCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedCommandResponse) XXX_Merge ¶
func (dst *SignedCommandResponse) XXX_Merge(src proto.Message)
func (*SignedCommandResponse) XXX_Size ¶
func (m *SignedCommandResponse) XXX_Size() int
func (*SignedCommandResponse) XXX_Unmarshal ¶
func (m *SignedCommandResponse) XXX_Unmarshal(b []byte) error
type TokenToIssue ¶
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" json:"type,omitempty"` // Quantity refers to the number of token units to be issued Quantity uint64 `protobuf:"varint,3,opt,name=quantity" 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 ¶
func (*TokenToIssue) Descriptor() ([]byte, []int)
func (*TokenToIssue) GetQuantity ¶
func (m *TokenToIssue) GetQuantity() uint64
func (*TokenToIssue) GetRecipient ¶
func (m *TokenToIssue) GetRecipient() []byte
func (*TokenToIssue) GetType ¶
func (m *TokenToIssue) GetType() string
func (*TokenToIssue) ProtoMessage ¶
func (*TokenToIssue) ProtoMessage()
func (*TokenToIssue) Reset ¶
func (m *TokenToIssue) Reset()
func (*TokenToIssue) String ¶
func (m *TokenToIssue) String() string
func (*TokenToIssue) XXX_DiscardUnknown ¶
func (m *TokenToIssue) XXX_DiscardUnknown()
func (*TokenToIssue) XXX_Marshal ¶
func (m *TokenToIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenToIssue) XXX_Merge ¶
func (dst *TokenToIssue) XXX_Merge(src proto.Message)
func (*TokenToIssue) XXX_Size ¶
func (m *TokenToIssue) XXX_Size() int
func (*TokenToIssue) XXX_Unmarshal ¶
func (m *TokenToIssue) XXX_Unmarshal(b []byte) error
type TokenTransaction ¶
type TokenTransaction struct { // action 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 ¶
func (*TokenTransaction) Descriptor() ([]byte, []int)
func (*TokenTransaction) GetAction ¶
func (m *TokenTransaction) GetAction() isTokenTransaction_Action
func (*TokenTransaction) GetPlainAction ¶
func (m *TokenTransaction) GetPlainAction() *PlainTokenAction
func (*TokenTransaction) ProtoMessage ¶
func (*TokenTransaction) ProtoMessage()
func (*TokenTransaction) Reset ¶
func (m *TokenTransaction) Reset()
func (*TokenTransaction) String ¶
func (m *TokenTransaction) String() string
func (*TokenTransaction) XXX_DiscardUnknown ¶
func (m *TokenTransaction) XXX_DiscardUnknown()
func (*TokenTransaction) XXX_Marshal ¶
func (m *TokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenTransaction) XXX_Merge ¶
func (dst *TokenTransaction) XXX_Merge(src proto.Message)
func (*TokenTransaction) XXX_OneofFuncs ¶
func (*TokenTransaction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*TokenTransaction) XXX_Size ¶
func (m *TokenTransaction) XXX_Size() int
func (*TokenTransaction) XXX_Unmarshal ¶
func (m *TokenTransaction) XXX_Unmarshal(b []byte) error
type TokenTransaction_PlainAction ¶
type TokenTransaction_PlainAction struct {
PlainAction *PlainTokenAction `protobuf:"bytes,1,opt,name=plain_action,json=plainAction,oneof"`
}