AtomAddressUtils class
Internal Cosmos (ATOM) address helpers.
Constructors
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 Methods
-
decode(
String address, {String? hrp}) → AtomAddressDecodeResult - Decodes a Bech32 address, optionally checking its HRP.
-
ed25519PubkeyToAddress(
List< int> pubkeyBytes) → BuBytes - Derives an address from an Ed25519 public key.
-
encodeAddressBytes(
{required List< int> addressBytes, required String hrp}) → String - Encodes address bytes as Bech32 with the given HRP.
-
ethSecp256k1PubKeyToAddress(
List< int> pubkeyBytes) → BuBytes - Derives an Ethermint-style address from a secp256k1 public key.
-
hash(
List< int> typ, List<int> key) → BuBytes -
SHA-256(SHA-256(typ) + key), the generic Cosmos address hash.
override
-
module(
String moduleName, {List< List< derivationKeys = const []}) → BuBytesint> > -
Derives a module account address from a module name and derivation
keys (e.g.
address.Module(dao.ModuleName, newDAO.ID)). -
secp256k1PubKeyToAddress(
List< int> pubkeyBytes) → BuBytes - Derives an address from a secp256k1 public key.
-
secp256r1PubKeyToAddress(
List< int> pubkeyBytes) → BuBytes - Derives an address from a secp256r1 (nist256p1) public key.
-
validateAddressBytes(
List< int> addrBytes) → void - Validates decoded address bytes are a supported digest length.