AdaShelleyAddrUtils class

Utility class for encoding and decoding Ada Shelley addresses.

Constructors

AdaShelleyAddrUtils()

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

decodeCred(int header, int bit) AdaStakeCredType
decodeNetworkTag(int header) int
encode({required AdaStakeCredential credential, AdaStakeCredential? stakeCredential, Pointer? pointer, required ADANetwork netTag, required String hrp, required ADAAddressType type}) String
encodeBytes(List<int> addrBytes) String
encodePrefix(ADAAddressType hdrType, int netTag, AdaStakeCredType credType, {AdaStakeCredType? stakeType}) List<int>
Encodes the address prefix based on the header type and network tag. The prefix is a combination of the header type and network tag.
keyHash(List<int> pubKeyBytes) List<int>
Computes the key hash for the given public key bytes. Key hash is calculated using the Blake2b224 hash function.