Documentation
¶
Index ¶
- Variables
- type EncodingInput
- type EncodingOutput
- func (*EncodingOutput) Descriptor() ([]byte, []int)deprecated
- func (x *EncodingOutput) GetEncoded() []byte
- func (x *EncodingOutput) GetError() common.SigningError
- func (x *EncodingOutput) GetErrorMessage() string
- func (*EncodingOutput) ProtoMessage()
- func (x *EncodingOutput) ProtoReflect() protoreflect.Message
- func (x *EncodingOutput) Reset()
- func (x *EncodingOutput) String() string
- type RlpItem
- func (*RlpItem) Descriptor() ([]byte, []int)deprecated
- func (x *RlpItem) GetAddress() string
- func (x *RlpItem) GetData() []byte
- func (x *RlpItem) GetItem() isRlpItem_Item
- func (x *RlpItem) GetList() *RlpList
- func (x *RlpItem) GetNumberU256() []byte
- func (x *RlpItem) GetNumberU64() uint64
- func (x *RlpItem) GetRawEncoded() []byte
- func (x *RlpItem) GetStringItem() string
- func (*RlpItem) ProtoMessage()
- func (x *RlpItem) ProtoReflect() protoreflect.Message
- func (x *RlpItem) Reset()
- func (x *RlpItem) String() string
- type RlpItem_Address
- type RlpItem_Data
- type RlpItem_List
- type RlpItem_NumberU256
- type RlpItem_NumberU64
- type RlpItem_RawEncoded
- type RlpItem_StringItem
- type RlpList
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) GetAddress ¶
func (*RlpItem) GetNumberU256 ¶
func (*RlpItem) GetNumberU64 ¶
func (*RlpItem) GetRawEncoded ¶
func (*RlpItem) GetStringItem ¶
func (*RlpItem) ProtoMessage ¶
func (*RlpItem) ProtoMessage()
func (*RlpItem) ProtoReflect ¶
func (x *RlpItem) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*RlpList) ProtoMessage()
func (*RlpList) ProtoReflect ¶
func (x *RlpList) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.