Base58CheckCodec class

A codec for Base58Check, a binary-to-string encoding used in cryptocurrencies like Bitcoin and Ripple.

The constructor requires the alphabet and a function that performs a SINGLE-round SHA-256 digest on a List<int> and returns a List<int> as result.

For all details about Base58Check, see the Bitcoin wiki page: https://en.bitcoin.it/wiki/Base58Check_encoding

Inheritance

Constructors

Base58CheckCodec(String alphabet)
Base58CheckCodec.bitcoin()
A codec that works with the Bitcoin alphabet and the SHA256 hash function.

Properties

alphabet String
final
decoder Converter<String, Base58CheckPayload>
Returns the decoder of this, converting from T to S.
no setteroverride
encoder Converter<Base58CheckPayload, String>
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<String, Base58CheckPayload>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String encoded) Base58CheckPayload
Decodes encoded data.
inherited
decodeUnchecked(String encoded) Base58CheckPayload
encode(Base58CheckPayload input) String
Encodes input.
inherited
fuse<R>(Codec<String, R> other) Codec<Base58CheckPayload, R>
Fuses this with other.
inherited
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

Constants

BITCOIN_ALPHABET → const String