encoding.base58 #

Constants #

const alphabets = init_alphabets()

alphabets is a map of common base58 alphabets

fn decode #

fn decode(str string) ?string

decode decodes base58 string using the Bitcoin alphabet

fn decode_int #

fn decode_int(input string) ?int

decode_int decodes base58 string to an integer with Bitcoin alphabet

fn decode_int_walpha #

fn decode_int_walpha(input string, alphabet Alphabet) ?int

decode_int_walpha decodes base58 string to an integer with custom alphabet

fn decode_walpha #

fn decode_walpha(str string, alphabet Alphabet) ?string

decode_walpha decodes base58 string using custom alphabet

fn encode #

fn encode(input string) string

encode encodes byte array to base58 with Bitcoin alphabet

fn encode_int #

fn encode_int(input int) ?string

encode_int encodes any integer type to base58 string with Bitcoin alphabet

fn encode_int_walpha #

fn encode_int_walpha(input int, alphabet Alphabet) ?string

encode_int_walpha any integer type to base58 string with custom alphabet

fn encode_walpha #

fn encode_walpha(input string, alphabet Alphabet) string

encode_walpha encodes byte array to base58 with custom aplhabet

fn new_alphabet #

fn new_alphabet(str string) ?Alphabet

new_alphabet instantiates an Alphabet object based on the provided characters

fn (Alphabet) str #

fn (alphabet Alphabet) str() string

str returns an Alphabet encode table byte array as a string