Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicKeyToAddress ¶
func PublicKeyToAddress(pubKey *btcec.PublicKey) *ethtypes.Address0xHex
Types ¶
type KeyPair ¶
type KeyPair struct { PrivateKey *btcec.PrivateKey PublicKey *btcec.PublicKey Address ethtypes.Address0xHex }
func NewSecp256k1KeyPair ¶
func (*KeyPair) PrivateKeyBytes ¶
func (*KeyPair) PublicKeyBytes ¶
type SignatureData ¶
func (*SignatureData) Recover ¶
func (s *SignatureData) Recover(message []byte, chainID int64) (a *ethtypes.Address0xHex, err error)
Recover obtains the original signer
func (*SignatureData) UpdateEIP155 ¶
func (s *SignatureData) UpdateEIP155(chainID int64)
EIP-155 rules - 2xChainID + 35 - starting point must be legacy 27/28
func (*SignatureData) UpdateEIP2930 ¶
func (s *SignatureData) UpdateEIP2930()
EIP-2930 (/ EIP-1559) rules - 0 or 1 V value for raw Y-parity value (chainID goes into the payload)
Click to show internal directories.
Click to hide internal directories.