util

package
v0.0.0-...-828d3b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add0xPrefix

func Add0xPrefix(input string) string

func Has0xPrefix

func Has0xPrefix(input string) bool

func IsHex

func IsHex(str string) bool

isHex validates whether each byte is valid hexadecimal string.

func IsSameAddress

func IsSameAddress(addr1, addr2 string) bool

func RecoverSignFromMetamask

func RecoverSignFromMetamask(dataStr, signHex string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL