Documentation
¶
Index ¶
- Variables
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetBalance() string
- func (x *SigningInput) GetLinkBlock() []byte
- func (x *SigningInput) GetLinkOneof() isSigningInput_LinkOneof
- func (x *SigningInput) GetLinkRecipient() string
- func (x *SigningInput) GetParentBlock() []byte
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetPublicKey() []byte
- func (x *SigningInput) GetRepresentative() string
- func (x *SigningInput) GetWork() string
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningInput_LinkBlock
- type SigningInput_LinkRecipient
- type SigningOutput
- func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningOutput) GetBlockHash() []byte
- func (x *SigningOutput) GetError() common.SigningError
- func (x *SigningOutput) GetErrorMessage() string
- func (x *SigningOutput) GetJson() string
- func (x *SigningOutput) GetSignature() []byte
- func (*SigningOutput) ProtoMessage()
- func (x *SigningOutput) ProtoReflect() protoreflect.Message
- func (x *SigningOutput) Reset()
- func (x *SigningOutput) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_Nano_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SigningInput ¶
type SigningInput struct { // The secret private key used for signing (32 bytes). PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // Optional parent block hash ParentBlock []byte `protobuf:"bytes,2,opt,name=parent_block,json=parentBlock,proto3" json:"parent_block,omitempty"` // Receive/Send reference // // Types that are valid to be assigned to LinkOneof: // // *SigningInput_LinkBlock // *SigningInput_LinkRecipient LinkOneof isSigningInput_LinkOneof `protobuf_oneof:"link_oneof"` // Representative address Representative string `protobuf:"bytes,5,opt,name=representative,proto3" json:"representative,omitempty"` // Account balance (128-bit unsigned integer, as a string) Balance string `protobuf:"bytes,6,opt,name=balance,proto3" json:"balance,omitempty"` // Work Work string `protobuf:"bytes,7,opt,name=work,proto3" json:"work,omitempty"` // Pulic key used for building preImage (32 bytes). PublicKey []byte `protobuf:"bytes,8,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
Input data necessary to create a signed transaction.
func (*SigningInput) Descriptor
deprecated
func (*SigningInput) Descriptor() ([]byte, []int)
Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.
func (*SigningInput) GetBalance ¶
func (x *SigningInput) GetBalance() string
func (*SigningInput) GetLinkBlock ¶
func (x *SigningInput) GetLinkBlock() []byte
func (*SigningInput) GetLinkOneof ¶
func (x *SigningInput) GetLinkOneof() isSigningInput_LinkOneof
func (*SigningInput) GetLinkRecipient ¶
func (x *SigningInput) GetLinkRecipient() string
func (*SigningInput) GetParentBlock ¶
func (x *SigningInput) GetParentBlock() []byte
func (*SigningInput) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetPublicKey ¶
func (x *SigningInput) GetPublicKey() []byte
func (*SigningInput) GetRepresentative ¶
func (x *SigningInput) GetRepresentative() string
func (*SigningInput) GetWork ¶
func (x *SigningInput) GetWork() string
func (*SigningInput) ProtoMessage ¶
func (*SigningInput) ProtoMessage()
func (*SigningInput) ProtoReflect ¶
func (x *SigningInput) ProtoReflect() protoreflect.Message
func (*SigningInput) Reset ¶
func (x *SigningInput) Reset()
func (*SigningInput) String ¶
func (x *SigningInput) String() string
type SigningInput_LinkBlock ¶
type SigningInput_LinkBlock struct { // Hash of a block to receive from LinkBlock []byte `protobuf:"bytes,3,opt,name=link_block,json=linkBlock,proto3,oneof"` }
type SigningInput_LinkRecipient ¶
type SigningInput_LinkRecipient struct { // Recipient address to send coins to LinkRecipient string `protobuf:"bytes,4,opt,name=link_recipient,json=linkRecipient,proto3,oneof"` }
type SigningOutput ¶
type SigningOutput struct { // Signature Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // Block hash BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // JSON representation of the block Json string `protobuf:"bytes,3,opt,name=json,proto3" json:"json,omitempty"` // error code, 0 is ok, other codes will be treated as errors Error common.SigningError `protobuf:"varint,4,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"` // error code description ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // contains filtered or unexported fields }
Result containing the signed and encoded transaction.
func (*SigningOutput) Descriptor
deprecated
func (*SigningOutput) Descriptor() ([]byte, []int)
Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.
func (*SigningOutput) GetBlockHash ¶
func (x *SigningOutput) GetBlockHash() []byte
func (*SigningOutput) GetError ¶
func (x *SigningOutput) GetError() common.SigningError
func (*SigningOutput) GetErrorMessage ¶
func (x *SigningOutput) GetErrorMessage() string
func (*SigningOutput) GetJson ¶
func (x *SigningOutput) GetJson() string
func (*SigningOutput) GetSignature ¶
func (x *SigningOutput) GetSignature() []byte
func (*SigningOutput) ProtoMessage ¶
func (*SigningOutput) ProtoMessage()
func (*SigningOutput) ProtoReflect ¶
func (x *SigningOutput) ProtoReflect() protoreflect.Message
func (*SigningOutput) Reset ¶
func (x *SigningOutput) Reset()
func (*SigningOutput) String ¶
func (x *SigningOutput) String() string
Click to show internal directories.
Click to hide internal directories.