TWSegwitAddress class abstract

Represents a BIP 0173 address.

Implementers

Constructors

TWSegwitAddress.new()

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

TWSegwitAddressCreateWithPublicKey(int hrp, Pointer<Void> publicKey) Pointer<Void>
Creates a segwit-version-0 address from a public key and HRP prefix. Taproot (v>=1) is not supported by this method.
TWSegwitAddressCreateWithString(Pointer<Utf8> string) Pointer<Void>
Creates an address from a string representation.
TWSegwitAddressDelete(Pointer<Void> address) → void
Delete the given Segwit address
TWSegwitAddressDescription(Pointer<Void> address) Pointer<Utf8>
Returns the address string representation.
TWSegwitAddressEqual(Pointer<Void> lhs, Pointer<Void> rhs) bool
Compares two addresses for equality.
TWSegwitAddressHRP(Pointer<Void> address) int
Returns the human-readable part.
TWSegwitAddressIsValidString(Pointer<Utf8> string) bool
Determines if the string is a valid Bech32 address.
TWSegwitAddressWitnessProgram(Pointer<Void> address) Pointer<Void>
Returns the witness program
TWSegwitAddressWitnessVersion(Pointer<Void> address) int
Returns the human-readable part.