Documentation ¶
Index ¶
- func CompressPubKey(pubKey []byte) ([]byte, error)
- func CreateAddress2(b common.Address, salt [32]byte, inithash []byte) common.Address
- func Ecrecover(hash, sig []byte) ([]byte, error)
- func Keccak256(data ...[]byte) []byte
- func Keccak256Hash(data ...[]byte) (h common.Hash)
- func SigToPub(hash, sig []byte) (*ecdsa.PublicKey, error)
- func ValidateSignatureValues(r, s *big.Int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressPubKey ¶ added in v1.67.3
CompressPubKey compress pub key
func CreateAddress2 ¶ added in v1.65.3
CreateAddress2 creates an ethereum address given the address bytes, initial contract code hash and a salt.
func Keccak256Hash ¶
Keccak256Hash calculates and returns the Keccak256 hash of the input data, converting it to an internal Hash data structure.
func ValidateSignatureValues ¶
ValidateSignatureValues 校验签名信息是否正确
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.