TWSegwitAddress class

Represents a BIP 0173 address.

Inheritance

Constructors

TWSegwitAddress.new(String string, {bool attach = true})
Creates an address from a string representation.
TWSegwitAddress.createWithPublicKey(TWHRP hrp, TWPublicKey publicKey, {bool attach = true})
Creates a segwit-version-0 address from a public key and HRP prefix. Taproot (v>=1) is not supported by this method.
TWSegwitAddress.fromPointer(int pointer, {bool attach = true})

Properties

attach bool
Whether the pointer is attached to the object.
finalinherited
description String
Returns the address string representation.
no setter
hashCode int
The hash code for this object.
no setteroverride
hrp TWHRP
Returns the human-readable part.
no setter
pointer int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
witnessProgram Uint8List
Returns the witness program
no setter
witnessVersion int
Returns the human-readable part.
no setter

Methods

delete() → void
Delete the given Segwit address
override
equal(TWSegwitAddress another) bool
Compares two addresses for equality.
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
Overloaded operator ==, equivalent to TWSegwitAddress.equal.
override

Static Methods

isValidString(String string) bool
Determines if the string is a valid Bech32 address.