AdaAddressUtils class
Utility class for handling ADA addresses.
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
-
decodeAddres(
String address, {ADAAddressType? addrType, ADANetwork? network}) → AdaGenericAddrDecoderResult - Decode an ADA address string.
-
decodePoolIdBech32(
String bech32PoolId) → List< int> - Decode a Bech32-encoded pool ID string to bytes.
-
decodeShellyAddress(
String address, {ADANetwork? network, bool keepPrefix = true}) → List< int> - Decode an ADA Shelly address string to bytes.
-
encodeBytes(
List< int> addrBytes) → ADAAddress - Encode a byte list to an ADA address.
-
findAddrType(
String addr) → ADAAddressType - Find the address type of a given ADA address.
-
publicKeyToCredential(
List< int> pubKeyBytes) → StakeCredKey - Convert a public key byte list to a StakeCredKey.
-
publicKeyToHash(
List< int> pubKeyBytes) → List<int> - Convert a public key byte list to a hash byte list.
-
toAdaStakeCredential(
StakeCred credential) → AdaStakeCredential -
Convert a StakeCred to an
AdaStakeCredential
. -
toCerdential(
AdaStakeCredential credential) → StakeCred -
Convert an
AdaStakeCredential
to a StakeCred. -
validatePubkeyAndRemovePrefix(
List< int> pubKeyBytes) → List<int> - Validate a public key byte list and remove prefix if present.