Documentation
¶
Index ¶
- Variables
- type DerivationType
- func (DerivationType) Descriptor() protoreflect.EnumDescriptor
- func (x DerivationType) Enum() *DerivationType
- func (DerivationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DerivationType) Number() protoreflect.EnumNumber
- func (x DerivationType) String() string
- func (DerivationType) Type() protoreflect.EnumType
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetDerivation() DerivationType
- func (x *SigningInput) GetGasFeeCap() []byte
- func (x *SigningInput) GetGasLimit() int64
- func (x *SigningInput) GetGasPremium() []byte
- func (x *SigningInput) GetNonce() uint64
- func (x *SigningInput) GetParams() []byte
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetPublicKey() []byte
- func (x *SigningInput) GetTo() string
- func (x *SigningInput) GetValue() []byte
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningOutput
- func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningOutput) GetError() common.SigningError
- func (x *SigningOutput) GetErrorMessage() string
- func (x *SigningOutput) GetJson() string
- 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 ( DerivationType_name = map[int32]string{ 0: "SECP256K1", 1: "DELEGATED", } DerivationType_value = map[string]int32{ "SECP256K1": 0, "DELEGATED": 1, } )
Enum value maps for DerivationType.
View Source
var File_Filecoin_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DerivationType ¶
type DerivationType int32
Defines the type of `from` address derivation.
const ( // Defines a Secp256k1 (`f1`) derivation for the sender address. // Default derivation type. DerivationType_SECP256K1 DerivationType = 0 // Defines a Delegated (`f4`) derivation for the sender address. DerivationType_DELEGATED DerivationType = 1 )
func (DerivationType) Descriptor ¶
func (DerivationType) Descriptor() protoreflect.EnumDescriptor
func (DerivationType) Enum ¶
func (x DerivationType) Enum() *DerivationType
func (DerivationType) EnumDescriptor
deprecated
func (DerivationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DerivationType.Descriptor instead.
func (DerivationType) Number ¶
func (x DerivationType) Number() protoreflect.EnumNumber
func (DerivationType) String ¶
func (x DerivationType) String() string
func (DerivationType) Type ¶
func (DerivationType) Type() protoreflect.EnumType
type SigningInput ¶
type SigningInput struct {
// The secret private key of the sender account, used for signing (32 bytes).
PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// Recipient's address.
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
// Transaction nonce.
Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
// Transfer value (uint256, serialized big endian)
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
// Gas limit.
GasLimit int64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
// Gas fee cap (uint256, serialized big endian)
GasFeeCap []byte `protobuf:"bytes,6,opt,name=gas_fee_cap,json=gasFeeCap,proto3" json:"gas_fee_cap,omitempty"`
// Gas premium (uint256, serialized big endian)
GasPremium []byte `protobuf:"bytes,7,opt,name=gas_premium,json=gasPremium,proto3" json:"gas_premium,omitempty"`
// Message params.
Params []byte `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"`
// Sender address derivation type.
Derivation DerivationType `protobuf:"varint,9,opt,name=derivation,proto3,enum=TW.Filecoin.Proto.DerivationType" json:"derivation,omitempty"`
// Public key secp256k1 extended
PublicKey []byte `protobuf:"bytes,10,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) GetDerivation ¶
func (x *SigningInput) GetDerivation() DerivationType
func (*SigningInput) GetGasFeeCap ¶
func (x *SigningInput) GetGasFeeCap() []byte
func (*SigningInput) GetGasLimit ¶
func (x *SigningInput) GetGasLimit() int64
func (*SigningInput) GetGasPremium ¶
func (x *SigningInput) GetGasPremium() []byte
func (*SigningInput) GetNonce ¶
func (x *SigningInput) GetNonce() uint64
func (*SigningInput) GetParams ¶
func (x *SigningInput) GetParams() []byte
func (*SigningInput) GetPrivateKey ¶
func (x *SigningInput) GetPrivateKey() []byte
func (*SigningInput) GetPublicKey ¶
func (x *SigningInput) GetPublicKey() []byte
func (*SigningInput) GetTo ¶
func (x *SigningInput) GetTo() string
func (*SigningInput) GetValue ¶
func (x *SigningInput) GetValue() []byte
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 SigningOutput ¶
type SigningOutput struct {
// Resulting transaction, in JSON.
Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,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 description
ErrorMessage string `protobuf:"bytes,3,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) 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) 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.