Base58

object Base58

Base58 is a way to encode Kryptokrona addresses (or arbitrary data) as alphanumeric strings.

Author

Marcus Cvjeticanin

Since

0.2.0

See also

Functions

Link copied to clipboard
fun decode(input: String): ByteArray

Decodes the given base58 string into the original data bytes.

Link copied to clipboard
Link copied to clipboard
fun divmod(number: ByteArray, firstDigit: Int, base: Int, divisor: Int): Byte

Divides a number, represented as an array of bytes each containing a single digit in the specified base, by the given divisor. The given number is modified in-place to contain the quotient, and the return value is the remainder.

Link copied to clipboard
fun encode(input: ByteArray): String

Encodes the given bytes as a base58 string (no checksum is appended).