Base58

scalus.cardano.ledger.Base58
object Base58

Base58 encoding/decoding implementation using Bitcoin alphabet.

Base58 is a binary-to-text encoding scheme that uses 58 alphanumeric characters, excluding characters that can be visually confused: 0, O, I, l.

This implementation is used for Byron-era Cardano addresses.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Base58.type

Members list

Value members

Concrete methods

final def decode(input: String): Array[Byte]

Decode a Base58 string to a byte array.

Decode a Base58 string to a byte array.

Value parameters

input

The Base58 string to decode

Attributes

Returns

Decoded bytes

Throws
IllegalArgumentException

if the string contains invalid characters

final def encode(input: Array[Byte]): String

Encode a byte array to a Base58 string.

Encode a byte array to a Base58 string.

Value parameters

input

The bytes to encode

Attributes

Returns

Base58 encoded string