Documentation ¶
Index ¶
- Variables
- type SwapAccept
- func (*SwapAccept) Descriptor() ([]byte, []int)deprecated
- func (x *SwapAccept) GetId() string
- func (x *SwapAccept) GetInputBlindingKey() map[string][]byte
- func (x *SwapAccept) GetOutputBlindingKey() map[string][]byte
- func (x *SwapAccept) GetRequestId() string
- func (x *SwapAccept) GetTransaction() string
- func (*SwapAccept) ProtoMessage()
- func (x *SwapAccept) ProtoReflect() protoreflect.Message
- func (x *SwapAccept) Reset()
- func (x *SwapAccept) String() string
- type SwapComplete
- func (*SwapComplete) Descriptor() ([]byte, []int)deprecated
- func (x *SwapComplete) GetAcceptId() string
- func (x *SwapComplete) GetId() string
- func (x *SwapComplete) GetTransaction() string
- func (*SwapComplete) ProtoMessage()
- func (x *SwapComplete) ProtoReflect() protoreflect.Message
- func (x *SwapComplete) Reset()
- func (x *SwapComplete) String() string
- type SwapFail
- func (*SwapFail) Descriptor() ([]byte, []int)deprecated
- func (x *SwapFail) GetFailureCode() uint32
- func (x *SwapFail) GetFailureMessage() string
- func (x *SwapFail) GetId() string
- func (x *SwapFail) GetMessageId() string
- func (*SwapFail) ProtoMessage()
- func (x *SwapFail) ProtoReflect() protoreflect.Message
- func (x *SwapFail) Reset()
- func (x *SwapFail) String() string
- type SwapRequest
- func (*SwapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SwapRequest) GetAmountP() uint64
- func (x *SwapRequest) GetAmountR() uint64
- func (x *SwapRequest) GetAssetP() string
- func (x *SwapRequest) GetAssetR() string
- func (x *SwapRequest) GetId() string
- func (x *SwapRequest) GetInputBlindingKey() map[string][]byte
- func (x *SwapRequest) GetOutputBlindingKey() map[string][]byte
- func (x *SwapRequest) GetTransaction() string
- func (*SwapRequest) ProtoMessage()
- func (x *SwapRequest) ProtoReflect() protoreflect.Message
- func (x *SwapRequest) Reset()
- func (x *SwapRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_swap_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SwapAccept ¶
type SwapAccept struct { // Random unique identifier for the current message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // indetifier of the SwapRequest message RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // The partial signed transaction base64 encoded containing the Responder's // signed inputs in a PSBT format Transaction string `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` // In case of a confidential transaction the blinding key of each confidential // input is included. Each blinding key is identified by the prevout script // hex encoded. InputBlindingKey map[string][]byte `` /* 199-byte string literal not displayed */ // In case of a confidential transaction the blinding key of each confidential // output is included. Each blinding key is identified by the output script // hex encoded. OutputBlindingKey map[string][]byte `` /* 202-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SwapAccept) Descriptor
deprecated
func (*SwapAccept) Descriptor() ([]byte, []int)
Deprecated: Use SwapAccept.ProtoReflect.Descriptor instead.
func (*SwapAccept) GetId ¶
func (x *SwapAccept) GetId() string
func (*SwapAccept) GetInputBlindingKey ¶
func (x *SwapAccept) GetInputBlindingKey() map[string][]byte
func (*SwapAccept) GetOutputBlindingKey ¶
func (x *SwapAccept) GetOutputBlindingKey() map[string][]byte
func (*SwapAccept) GetRequestId ¶
func (x *SwapAccept) GetRequestId() string
func (*SwapAccept) GetTransaction ¶
func (x *SwapAccept) GetTransaction() string
func (*SwapAccept) ProtoMessage ¶
func (*SwapAccept) ProtoMessage()
func (*SwapAccept) ProtoReflect ¶
func (x *SwapAccept) ProtoReflect() protoreflect.Message
func (*SwapAccept) Reset ¶
func (x *SwapAccept) Reset()
func (*SwapAccept) String ¶
func (x *SwapAccept) String() string
type SwapComplete ¶
type SwapComplete struct { // Random unique identifier for the current message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // indetifier of the SwapAccept message AcceptId string `protobuf:"bytes,2,opt,name=accept_id,json=acceptId,proto3" json:"accept_id,omitempty"` // The signed transaction base64 encoded containing the Proposers's signed // inputs in a PSBT format Transaction string `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` // contains filtered or unexported fields }
func (*SwapComplete) Descriptor
deprecated
func (*SwapComplete) Descriptor() ([]byte, []int)
Deprecated: Use SwapComplete.ProtoReflect.Descriptor instead.
func (*SwapComplete) GetAcceptId ¶
func (x *SwapComplete) GetAcceptId() string
func (*SwapComplete) GetId ¶
func (x *SwapComplete) GetId() string
func (*SwapComplete) GetTransaction ¶
func (x *SwapComplete) GetTransaction() string
func (*SwapComplete) ProtoMessage ¶
func (*SwapComplete) ProtoMessage()
func (*SwapComplete) ProtoReflect ¶
func (x *SwapComplete) ProtoReflect() protoreflect.Message
func (*SwapComplete) Reset ¶
func (x *SwapComplete) Reset()
func (*SwapComplete) String ¶
func (x *SwapComplete) String() string
type SwapFail ¶
type SwapFail struct { // Random unique identifier for the current message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // indetifier of either SwapRequest or SwapAccept message. It can be empty MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // The failure code. It can be empty FailureCode uint32 `protobuf:"varint,3,opt,name=failure_code,json=failureCode,proto3" json:"failure_code,omitempty"` // The failure reason messaged FailureMessage string `protobuf:"bytes,4,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"` // contains filtered or unexported fields }
func (*SwapFail) Descriptor
deprecated
func (*SwapFail) GetFailureCode ¶
func (*SwapFail) GetFailureMessage ¶
func (*SwapFail) GetMessageId ¶
func (*SwapFail) ProtoMessage ¶
func (*SwapFail) ProtoMessage()
func (*SwapFail) ProtoReflect ¶
func (x *SwapFail) ProtoReflect() protoreflect.Message
type SwapRequest ¶
type SwapRequest struct { // Random unique identifier for the current message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The proposer's quantity AmountP uint64 `protobuf:"varint,2,opt,name=amount_p,json=amountP,proto3" json:"amount_p,omitempty"` // The proposer's asset hash AssetP string `protobuf:"bytes,3,opt,name=asset_p,json=assetP,proto3" json:"asset_p,omitempty"` // The responder's quantity AmountR uint64 `protobuf:"varint,4,opt,name=amount_r,json=amountR,proto3" json:"amount_r,omitempty"` // The responder's asset hash AssetR string `protobuf:"bytes,5,opt,name=asset_r,json=assetR,proto3" json:"asset_r,omitempty"` // The proposer's unsigned transaction in PSBT format (base64 string) Transaction string `protobuf:"bytes,6,opt,name=transaction,proto3" json:"transaction,omitempty"` // In case of a confidential transaction the blinding key of each confidential // input is included. Each blinding key is identified by the prevout script // hex encoded. InputBlindingKey map[string][]byte `` /* 199-byte string literal not displayed */ // In case of a confidential transaction the blinding key of each confidential // output is included. Each blinding key is identified by the output script // hex encoded. OutputBlindingKey map[string][]byte `` /* 202-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SwapRequest) Descriptor
deprecated
func (*SwapRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwapRequest.ProtoReflect.Descriptor instead.
func (*SwapRequest) GetAmountP ¶
func (x *SwapRequest) GetAmountP() uint64
func (*SwapRequest) GetAmountR ¶
func (x *SwapRequest) GetAmountR() uint64
func (*SwapRequest) GetAssetP ¶
func (x *SwapRequest) GetAssetP() string
func (*SwapRequest) GetAssetR ¶
func (x *SwapRequest) GetAssetR() string
func (*SwapRequest) GetId ¶
func (x *SwapRequest) GetId() string
func (*SwapRequest) GetInputBlindingKey ¶
func (x *SwapRequest) GetInputBlindingKey() map[string][]byte
func (*SwapRequest) GetOutputBlindingKey ¶
func (x *SwapRequest) GetOutputBlindingKey() map[string][]byte
func (*SwapRequest) GetTransaction ¶
func (x *SwapRequest) GetTransaction() string
func (*SwapRequest) ProtoMessage ¶
func (*SwapRequest) ProtoMessage()
func (*SwapRequest) ProtoReflect ¶
func (x *SwapRequest) ProtoReflect() protoreflect.Message
func (*SwapRequest) Reset ¶
func (x *SwapRequest) Reset()
func (*SwapRequest) String ¶
func (x *SwapRequest) String() string
Click to show internal directories.
Click to hide internal directories.