Documentation ¶
Index ¶
- Variables
- func GetEthereumPubkey(sig []byte, hashMsg []byte) (*ecdsa.PublicKey, error)
- func GetHashMsg(byteMsg []byte) []byte
- func GetSignBytes(tx sdk.Tx) ([]byte, error)
- func Sign(tx sdk.Tx, privKey secp256k1.PrivKey) (*txsigning.SignatureV2, error)
- func VerifyEthSignature(tx sdk.Tx, address []byte, sig txsigning.SignatureV2) error
- type SignatureMessage
- func (*SignatureMessage) Descriptor() ([]byte, []int)
- func (m *SignatureMessage) Marshal() (dAtA []byte, err error)
- func (m *SignatureMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *SignatureMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignatureMessage) ProtoMessage()
- func (m *SignatureMessage) Reset()
- func (m *SignatureMessage) Size() (n int)
- func (m *SignatureMessage) String() string
- func (m *SignatureMessage) Unmarshal(dAtA []byte) error
- func (m *SignatureMessage) XXX_DiscardUnknown()
- func (m *SignatureMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignatureMessage) XXX_Merge(src proto.Message)
- func (m *SignatureMessage) XXX_Size() int
- func (m *SignatureMessage) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetEthereumPubkey ¶
func GetHashMsg ¶
func VerifyEthSignature ¶
VerifyEthSignature verifies that the signature was made by a specific Ethereum address
Types ¶
type SignatureMessage ¶
type SignatureMessage struct { // body_bytes is protobuf serialization of a TxBody that matches the // representation in TxRaw. BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"` // auth_info_bytes is a protobuf serialization of an AuthInfo that matches the // representation in TxRaw. AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"` }
SignatureMessage contains a protobuf encoded Msg
func (*SignatureMessage) Descriptor ¶
func (*SignatureMessage) Descriptor() ([]byte, []int)
func (*SignatureMessage) Marshal ¶
func (m *SignatureMessage) Marshal() (dAtA []byte, err error)
func (*SignatureMessage) MarshalToSizedBuffer ¶
func (m *SignatureMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SignatureMessage) ProtoMessage ¶
func (*SignatureMessage) ProtoMessage()
func (*SignatureMessage) Reset ¶
func (m *SignatureMessage) Reset()
func (*SignatureMessage) Size ¶
func (m *SignatureMessage) Size() (n int)
func (*SignatureMessage) String ¶
func (m *SignatureMessage) String() string
func (*SignatureMessage) Unmarshal ¶
func (m *SignatureMessage) Unmarshal(dAtA []byte) error
func (*SignatureMessage) XXX_DiscardUnknown ¶
func (m *SignatureMessage) XXX_DiscardUnknown()
func (*SignatureMessage) XXX_Marshal ¶
func (m *SignatureMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignatureMessage) XXX_Merge ¶
func (m *SignatureMessage) XXX_Merge(src proto.Message)
func (*SignatureMessage) XXX_Size ¶
func (m *SignatureMessage) XXX_Size() int
func (*SignatureMessage) XXX_Unmarshal ¶
func (m *SignatureMessage) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.