AtomAddressUtils class

Constructors

AtomAddressUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

nist566p1KeyType List<int>
final

Static Methods

decode(String address, {String? hrp}) AtomAddressDecodeResult
ed25519PubkeyToAddress(List<int> pubkeyBytes) List<int>
encodeAddressBytes({required List<int> addressBytes, required String hrp}) String
ethSecp256k1PubKeyToAddress(List<int> pubkeyBytes) List<int>
hash(List<int> typ, List<int> key) List<int>
Creates a combined hash code for a number of objects.
override
module(String moduleName, {List<List<int>> derivationKeys = const []}) List<int>
Module is a specialized version of a composed address for modules. Each module account is constructed from a module name and a sequence of derivation keys (at least one derivation key must be provided). The derivation keys must be unique in the module scope, and is usually constructed from some object id. Example, let's a x/dao module, and a new DAO object, it's address would be:
secp256k1PubKeyToAddress(List<int> pubkeyBytes) List<int>
secp256r1PubKeyToAddress(List<int> pubkeyBytes) List<int>
validateAddressBytes(List<int> addrBytes) → void