Module avalanche_types::key::address
source · [−]Functions
Converts public key bytes to the short address bytes (20-byte).
“hashing.PubkeyBytesToAddress” and “ids.ToShortID”
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/utils/hashing#PubkeyBytesToAddress
Encodes the public key in ETH address format.
ref. https://pkg.go.dev/github.com/ethereum/go-ethereum/crypto#PubkeyToAddress
ref. https://pkg.go.dev/github.com/ethereum/go-ethereum/common#Address.Hex
“hashing.PubkeyBytesToAddress”
ref. “pk.PublicKey().Address().Bytes()”
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/utils/hashing#PubkeyBytesToAddress
“hashing.PubkeyBytesToAddress” and “ids.ToShortID”
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/utils/hashing#PubkeyBytesToAddress