Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AddressLength is the expected length of the address
AddressLength = 20
)
Lengths of hashes and addresses in bytes.
Variables ¶
This section is empty.
Functions ¶
func FromECDSAPub ¶
Types ¶
type Address ¶
type Address [AddressLength]byte
Address represents the 20 byte address of an Ethereum account.
func BytesToAddress ¶
BytesToAddress returns Address with value b. If b is larger than len(h), b will be cropped from the left.
func PubkeyToAddress ¶
Click to show internal directories.
Click to hide internal directories.