Base58Encoder class

Encodes bytes into a Base58 string.

Constructors

Base58Encoder()

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

encode(List<int> dataBytes, [Base58Alphabets alphabet = Base58Alphabets.bitcoin]) → String
Encodes dataBytes as plain Base58 (no checksum) using alphabet.
encodeWithChecksum(List<int> dataBytes, [Base58Alphabets alphabet = Base58Alphabets.bitcoin]) → String
Encodes dataBytes with a 4-byte checksum appended (double-SHA256, truncated), so Base58Decoder.decodeWithChecksum can later detect a mistyped or corrupted string. This is what Bitcoin addresses/WIF keys use under the hood.