4a: Exotic Bases

+po

Phonetic base.

Container core for providing phonetic syllables and name generators for the Urbit naming system. The two faces, .sis and .dex, are available to the contained arms.

Source

~/  %po
=+  :-  ^=  sis                                       ::  prefix syllables
    'dozmarbinwansamlitsighidfidlissogdirwacsabwissib\
    /rigsoldopmodfoglidhopdardorlorhodfolrintogsilmir\
    /holpaslacrovlivdalsatlibtabhanticpidtorbolfosdot\
    /losdilforpilramtirwintadbicdifrocwidbisdasmidlop\
    /rilnardapmolsanlocnovsitnidtipsicropwitnatpanmin\
    /ritpodmottamtolsavposnapnopsomfinfonbanmorworsip\
    /ronnorbotwicsocwatdolmagpicdavbidbaltimtasmallig\
    /sivtagpadsaldivdactansidfabtarmonranniswolmispal\
    /lasdismaprabtobrollatlonnodnavfignomnibpagsopral\
    /bilhaddocridmocpacravripfaltodtiltinhapmicfanpat\
    /taclabmogsimsonpinlomrictapfirhasbosbatpochactid\
    /havsaplindibhosdabbitbarracparloddosbortochilmac\
    /tomdigfilfasmithobharmighinradmashalraglagfadtop\
    /mophabnilnosmilfopfamdatnoldinhatnacrisfotribhoc\
    /nimlarfitwalrapsarnalmoslandondanladdovrivbacpol\
    /laptalpitnambonrostonfodponsovnocsorlavmatmipfip'
    ^=  dex                                           ::  suffix syllables
    'zodnecbudwessevpersutletfulpensytdurwepserwylsun\
    /rypsyxdyrnuphebpeglupdepdysputlughecryttyvsydnex\
    /lunmeplutseppesdelsulpedtemledtulmetwenbynhexfeb\
    /pyldulhetmevruttylwydtepbesdexsefwycburderneppur\
    /rysrebdennutsubpetrulsynregtydsupsemwynrecmegnet\
    /secmulnymtevwebsummutnyxrextebfushepbenmuswyxsym\
    /selrucdecwexsyrwetdylmynmesdetbetbeltuxtugmyrpel\
    /syptermebsetdutdegtexsurfeltudnuxruxrenwytnubmed\
    /lytdusnebrumtynseglyxpunresredfunrevrefmectedrus\
    /bexlebduxrynnumpyxrygryxfeptyrtustyclegnemfermer\
    /tenlusnussyltecmexpubrymtucfyllepdebbermughuttun\
    /bylsudpemdevlurdefbusbeprunmelpexdytbyttyplevmyl\
    /wedducfurfexnulluclennerlexrupnedlecrydlydfenwel\
    /nydhusrelrudneshesfetdesretdunlernyrsebhulryllud\
    /remlysfynwerrycsugnysnyllyndyndemluxfedsedbecmun\
    /lyrtesmudnytbyrsenwegfyrmurtelreptegpecnelnevfes'
|%

+ind:po

Parse suffix.

Produces the byte of the right-hand syllable .a.

Accepts

.a is a @tas.

Produces

A (unit @).

Source

Examples


+ins:po

Parse prefix.

Produces the byte of the left-hand phonetic syllable .a.

Accepts

.a is a @tas.

Produces

A (unit @).

Source

Examples


+tod:po

Fetch suffix.

Produces the phonetic suffix syllable from index .a within .dex as an $atom.

Accepts

.a is an $atom

Produces

An $atom.

Source

Examples


+tos:po

Fetch prefix.

Produces the phonetic prefix syllable from index .a within .sis as an $atom.

Accepts

.a is an $atom.

Produces

An $atom.

Source

Examples


+fa

base58check.

Container core for base58check (e.g. bitcoin address) functions.

Source


+cha:fa

Decode base58check character.

Check whether character .a is valid in base58check encoding, producing a +unit of its decoded value if it's valid, and a null +unit if it's not.

Accepts

.a is a +char.

Produces

A (unit @uF).

Source

Examples


+tok:fa

Compute base58check checksum.

Compute the base58check checksum of .a.

Accepts

.a is a @ux.

Produces

A @ux.

Source

Examples


+pad:fa

base58check padding bytes.

Compute the number of bytes of 0s needed to pad .a to 21 bytes, if it's less than 21 bytes.

Accepts

.a is a @ - a value without its base58check checksum.

Produces

A @.

Source

Examples


+enc:fa

encode base58check.

Compute and append checksum to .a.

Accepts

.a is a @ux.

Produces

A @ux.

Source

Example


+den:fa

decode base58check.

Check checksum of .a, return a +unit of .a sans the checksum if successful, or a null +unit otherwise.

Accepts

.a is a @ux

Produces

A (unit @ux).

Source

Examples


Last updated