module BaseX::Base58

Extended Modules

Defined in:

base_x/base.cr

Constant Summary

DEFAULT = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
FLICKR = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
RIPPLE = "rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"

Instance Method Summary

Instance Method Detail

def decode(str : String, alphabet = DEFAULT) : Bytes #

[View source]
def decode_bytes(str : String, alphabet = DEFAULT) : Bytes #

[View source]
def decode_int(str : String, alphabet = DEFAULT) : BigInt #

[View source]
def encode(bytes : Bytes, alphabet = DEFAULT, leading_zeroes = true) : String #

[View source]
def encode(int : Number, alphabet = DEFAULT) : String #

[View source]