Handbook
Glossary
>base58 ( seq -- base58 )
Base58 conversions
Next:
base58> ( base58 -- seq )
Vocabulary
base58
Inputs
seq
a
sequence
Outputs
base58
a
sequence
Word description
Encode into Base58 encoding.
Definition
USING:
base58.private
endian
kernel
math
sequences
;
IN:
base58
::
>base58
( seq -- base58 )
BV{
}
clone
:>
accum seq
[
zero?
not
]
find
[
drop
seq
length
]
unless
:>
i seq i
tail-slice
be>
[
58
/mod
ch>base58
accum
push
]
until-zero
i
alphabet
first
[
accum
push
]
curry
times
accum
reverse!
B{
}
like
;