Documentation ¶
Index ¶
- func CreateAddress(b common.Address, nonce uint64) common.Address
- func CreateAddress2(b common.Address, salt [32]byte, inithash []byte) common.Address
- func GetContractAddress(address common.Address) common.Address
- func GetEvidenceAddress(target common.Address) common.Address
- func GetLockAddress(alice, bob common.Address) common.Address
- func GetNormalAddress(p ecdsa.PublicKey) common.Address
- func GetNormalAddressFromEvidence(target common.Address) common.Address
- func Keccak256Hash(data ...[]byte) (h common.Hash)
- func PubkeyToAddress(p ecdsa.PublicKey) common.Address
- func RecoverAddressFromSig(hash common.Hash, sig []byte) (common.Address, error)
- func ToECDSAPub(pub []byte) *ecdsa.PublicKey
- func ValidSigValue(r, s, v *big.Int) bool
- func ValidateSignatureValues(v byte, r, s *big.Int, homestead bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAddress ¶
CreateAddress creates an ethereum address given the bytes and the nonce
func CreateAddress2 ¶
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 PubkeyToAddress ¶
don't use this method, use GetNormalAddress
func RecoverAddressFromSig ¶
func ToECDSAPub ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.