ethereumrlp

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

View Source
var File_EthereumRlp_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EncodingInput

type EncodingInput struct {

	// An item or a list to encode.
	Item *RlpItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

RLP encoding input.

func (*EncodingInput) Descriptor deprecated

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

Deprecated: Use EncodingInput.ProtoReflect.Descriptor instead.

func (*EncodingInput) GetItem

func (x *EncodingInput) GetItem() *RlpItem

func (*EncodingInput) ProtoMessage

func (*EncodingInput) ProtoMessage()

func (*EncodingInput) ProtoReflect

func (x *EncodingInput) ProtoReflect() protoreflect.Message

func (*EncodingInput) Reset

func (x *EncodingInput) Reset()

func (*EncodingInput) String

func (x *EncodingInput) String() string

type EncodingOutput

type EncodingOutput struct {

	// An item RLP encoded.
	Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// Error code, 0 is ok, other codes will be treated as errors.
	Error common.SigningError `protobuf:"varint,2,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	// Error code description.
	ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

/ RLP encoding output.

func (*EncodingOutput) Descriptor deprecated

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

Deprecated: Use EncodingOutput.ProtoReflect.Descriptor instead.

func (*EncodingOutput) GetEncoded

func (x *EncodingOutput) GetEncoded() []byte

func (*EncodingOutput) GetError

func (x *EncodingOutput) GetError() common.SigningError

func (*EncodingOutput) GetErrorMessage

func (x *EncodingOutput) GetErrorMessage() string

func (*EncodingOutput) ProtoMessage

func (*EncodingOutput) ProtoMessage()

func (*EncodingOutput) ProtoReflect

func (x *EncodingOutput) ProtoReflect() protoreflect.Message

func (*EncodingOutput) Reset

func (x *EncodingOutput) Reset()

func (*EncodingOutput) String

func (x *EncodingOutput) String() string

type RlpItem

type RlpItem struct {

	// Types that are valid to be assigned to Item:
	//
	//	*RlpItem_StringItem
	//	*RlpItem_NumberU64
	//	*RlpItem_NumberU256
	//	*RlpItem_Address
	//	*RlpItem_Data
	//	*RlpItem_List
	//	*RlpItem_RawEncoded
	Item isRlpItem_Item `protobuf_oneof:"item"`
	// contains filtered or unexported fields
}

RLP item.

func (*RlpItem) Descriptor deprecated

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

Deprecated: Use RlpItem.ProtoReflect.Descriptor instead.

func (*RlpItem) GetAddress

func (x *RlpItem) GetAddress() string

func (*RlpItem) GetData

func (x *RlpItem) GetData() []byte

func (*RlpItem) GetItem

func (x *RlpItem) GetItem() isRlpItem_Item

func (*RlpItem) GetList

func (x *RlpItem) GetList() *RlpList

func (*RlpItem) GetNumberU256

func (x *RlpItem) GetNumberU256() []byte

func (*RlpItem) GetNumberU64

func (x *RlpItem) GetNumberU64() uint64

func (*RlpItem) GetRawEncoded

func (x *RlpItem) GetRawEncoded() []byte

func (*RlpItem) GetStringItem

func (x *RlpItem) GetStringItem() string

func (*RlpItem) ProtoMessage

func (*RlpItem) ProtoMessage()

func (*RlpItem) ProtoReflect

func (x *RlpItem) ProtoReflect() protoreflect.Message

func (*RlpItem) Reset

func (x *RlpItem) Reset()

func (*RlpItem) String

func (x *RlpItem) String() string

type RlpItem_Address

type RlpItem_Address struct {
	// An address to be encoded.
	Address string `protobuf:"bytes,4,opt,name=address,proto3,oneof"`
}

type RlpItem_Data

type RlpItem_Data struct {
	// A data to be encoded.
	Data []byte `protobuf:"bytes,5,opt,name=data,proto3,oneof"`
}

type RlpItem_List

type RlpItem_List struct {
	// A list of items to be encoded.
	List *RlpList `protobuf:"bytes,6,opt,name=list,proto3,oneof"`
}

type RlpItem_NumberU256

type RlpItem_NumberU256 struct {
	// A U256 number to be encoded.
	NumberU256 []byte `protobuf:"bytes,3,opt,name=number_u256,json=numberU256,proto3,oneof"`
}

type RlpItem_NumberU64

type RlpItem_NumberU64 struct {
	// A U64 number to be encoded.
	NumberU64 uint64 `protobuf:"varint,2,opt,name=number_u64,json=numberU64,proto3,oneof"`
}

type RlpItem_RawEncoded

type RlpItem_RawEncoded struct {
	// An RLP encoded item to be appended as it is.
	RawEncoded []byte `protobuf:"bytes,7,opt,name=raw_encoded,json=rawEncoded,proto3,oneof"`
}

type RlpItem_StringItem

type RlpItem_StringItem struct {
	// A string to be encoded.
	StringItem string `protobuf:"bytes,1,opt,name=string_item,json=stringItem,proto3,oneof"`
}

type RlpList

type RlpList struct {
	Items []*RlpItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

List of elements.

func (*RlpList) Descriptor deprecated

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

Deprecated: Use RlpList.ProtoReflect.Descriptor instead.

func (*RlpList) GetItems

func (x *RlpList) GetItems() []*RlpItem

func (*RlpList) ProtoMessage

func (*RlpList) ProtoMessage()

func (*RlpList) ProtoReflect

func (x *RlpList) ProtoReflect() protoreflect.Message

func (*RlpList) Reset

func (x *RlpList) Reset()

func (*RlpList) String

func (x *RlpList) String() string

Jump to

Keyboard shortcuts

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