package
10.9.0+incompatible
Repository: https://github.com/status-im/status-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
BigToAddress returns Address with byte values of b.
Bytes2Hex returns the hexadecimal encoding of d.
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
DecodeHex decodes a hex string with 0x prefix.
EncodeHex encodes b as a hex string with 0x prefix.
EncodeHex encodes bs as a hex strings with 0x prefix.
FromHex returns the bytes represented by the hexadecimal string s.
Hex2Bytes returns the bytes represented by the hexadecimal string str.
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
MustDecodeHex decodes a hex string with 0x prefix.
NewMixedcaseAddress constructor (mainly for testing).
NewMixedcaseAddressFromString is mainly meant for unit-testing.
ToHex returns the hex string representation of bytes with 0x prefix.
UnmarshalFixedHexText decodes the input as a string with 0x prefix.
UnmarshalFixedJSON decodes the input as a string with 0x prefix.
UnmarshalFixedText decodes the input as a string with 0x prefix.
UnmarshalFixedUnprefixedText decodes the input as a string with optional 0x prefix.
# Constants
AddressLength is the expected length of the address.
AesKeyLength represents the length (in bytes) of an private key.
HashLength is the expected length of the hash.
PubKeyLength represents the length (in bytes) of an uncompressed public key.
# Variables
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
# Structs
Account represents an Ethereum account located at a specific location defined by the optional URL field.
No description provided by the author
MixedcaseAddress retains the original string, which may or may not be correctly checksummed.
NegotiatedSecret represents a negotiated secret (both public and private keys).
# Interfaces
No description provided by the author
# Type aliases
Address represents the 20 byte address of an Ethereum account.
EnodeID is a unique identifier for each node.
Hash represents the 32 byte Keccak256 hash of arbitrary data.
HexBytes marshals/unmarshals as a JSON string with 0x prefix.
UnprefixedAddress allows marshaling an Address without 0x prefix.