Documentation ¶
Index ¶
- Variables
- func Has0xPrefix(s string) bool
- func Hex2X[T *big.Int | uint64 | []byte](hex string) (x T, err error)
- func HexOrString2X[T *big.Int | uint64](hexOrString string) (x T, err error)
- func IsAddress(address string) bool
- func IsHexHash(s string) bool
- func PackLowHighByBig(low128, high128 *big.Int) [32]byte
- func ParseError(data []byte, errorMap map[string]abi.Error) (string, map[string]interface{}, error)
- func ParseLog(log types.Log, eventMap map[string]abi.Event) (string, map[string]interface{}, error)
- func ParseMnemonic(mnemonic string, count uint32, derivationPath ...accounts.DerivationPath) ([]*ecdsa.PrivateKey, error)
- func ParseMnemonic2(mnemonic string, count uint32, derivationPath ...accounts.DerivationPath) ([]*ecdsa.PrivateKey, error)
- func PvHex2Key(privateKeyHex string) (*ecdsa.PrivateKey, error)
- func PvKey2Address(privateKey *ecdsa.PrivateKey) (common.Address, error)
- func PvKey2Hex(privateKey *ecdsa.PrivateKey) (string, error)
- func SignWithEncode(tx *types.Transaction, signer types.Signer, prv *ecdsa.PrivateKey) (string, string, error)
- func Signature(message []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func Trim0x(hex string) string
- func VerifySignature(address common.Address, message []byte, signature []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Has0xPrefix ¶
func PackLowHighByBig ¶
func ParseError ¶
func ParseMnemonic ¶
func ParseMnemonic(mnemonic string, count uint32, derivationPath ...accounts.DerivationPath) ([]*ecdsa.PrivateKey, error)
func ParseMnemonic2 ¶
func ParseMnemonic2(mnemonic string, count uint32, derivationPath ...accounts.DerivationPath) ([]*ecdsa.PrivateKey, error)
func PvKey2Address ¶
func PvKey2Address(privateKey *ecdsa.PrivateKey) (common.Address, error)
func SignWithEncode ¶
func SignWithEncode(tx *types.Transaction, signer types.Signer, prv *ecdsa.PrivateKey) (string, string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.