package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Functions
BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
MustGeneratePrivateKey generates a random private key for an address.
ParseAddr parses the given address as hex.
# Constants
AddressLength is the expected length of the address.
HashLength is the expected length of the hash.
# Type aliases
Address represents the 20 byte address of an Astra account.
Hash represents the 32 byte Keccak256 hash of arbitrary data.
UnprefixedAddress allows marshaling an Address without 0x prefix.
UnprefixedHash allows marshaling a Hash without 0x prefix.