P2PKHAddrEncoder class

Encodes a P2PKH (Pay-to-Public-Key-Hash) Base58 address.

Implemented types

Constructors

P2PKHAddrEncoder()

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

encodeKey(List<int> pubKey, {List<int>? netVersion, Base58Alphabets alphabet = Base58Alphabets.bitcoin, CryptoKeyEncoding pubKeyMode = CryptoKeyEncoding.base}) → String
Encodes a public key or address bytes into a blockchain address.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validateAndHashKey(List<int> pubKey, {CryptoKeyEncoding pubKeyMode = CryptoKeyEncoding.base}) → BuBytes
Validates the pubkey and returns its hash160.

Operators

operator ==(Object other) → bool
The equality operator.
inherited