nano

package
v0.0.1-gowrapper-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL