[{"data":1,"prerenderedAt":244},["ShallowReactive",2],{"navigation_docs":3,"-encodings-base58check":128,"-encodings-base58check-surround":239},[4,40],{"title":5,"path":6,"stem":7,"children":8,"icon":39},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Encoding and Decoding","\u002Fguide\u002Fencoding","1.guide\u002F02.encoding",{"title":16,"path":17,"stem":18},"Checksums","\u002Fguide\u002Fchecksums","1.guide\u002F03.checksums",{"title":20,"path":21,"stem":22},"Identify","\u002Fguide\u002Fidentify","1.guide\u002F04.identify",{"title":24,"path":25,"stem":26},"CLI","\u002Fguide\u002Fcli","1.guide\u002F05.cli",{"title":28,"path":29,"stem":30},"Agents","\u002Fguide\u002Fagents","1.guide\u002F06.agents",{"title":32,"path":33,"stem":34},"Custom Encodings","\u002Fguide\u002Fcustom","1.guide\u002F07.custom",{"title":36,"path":37,"stem":38},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F08.playground","i-lucide-book-open",{"title":41,"path":42,"stem":43,"children":44,"icon":127},"Encodings","\u002Fencodings","2.encodings\u002F00.index",[45,47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123],{"title":46,"path":42,"stem":43},"Every encoding",{"title":48,"path":49,"stem":50},"Binary","\u002Fencodings\u002Fbinary","2.encodings\u002F01.binary",{"title":52,"path":53,"stem":54},"Hex","\u002Fencodings\u002Fhex","2.encodings\u002F02.hex",{"title":56,"path":57,"stem":58},"Base32","\u002Fencodings\u002Fbase32","2.encodings\u002F03.base32",{"title":60,"path":61,"stem":62},"Base32hex","\u002Fencodings\u002Fbase32hex","2.encodings\u002F04.base32hex",{"title":64,"path":65,"stem":66},"Crockford's Base32","\u002Fencodings\u002Fbase32-crockford","2.encodings\u002F05.base32-crockford",{"title":68,"path":69,"stem":70},"z-base-32","\u002Fencodings\u002Fz-base-32","2.encodings\u002F06.z-base-32",{"title":72,"path":73,"stem":74},"Base45","\u002Fencodings\u002Fbase45","2.encodings\u002F07.base45",{"title":76,"path":77,"stem":78},"Base58","\u002Fencodings\u002Fbase58","2.encodings\u002F08.base58",{"title":80,"path":81,"stem":82},"Base58Check","\u002Fencodings\u002Fbase58check","2.encodings\u002F09.base58check",{"title":84,"path":85,"stem":86},"Base58 (Flickr)","\u002Fencodings\u002Fbase58-flickr","2.encodings\u002F10.base58-flickr",{"title":88,"path":89,"stem":90},"Base58 (Ripple)","\u002Fencodings\u002Fbase58-ripple","2.encodings\u002F11.base58-ripple",{"title":92,"path":93,"stem":94},"Base64","\u002Fencodings\u002Fbase64","2.encodings\u002F12.base64",{"title":96,"path":97,"stem":98},"Base64url","\u002Fencodings\u002Fbase64url","2.encodings\u002F13.base64url",{"title":100,"path":101,"stem":102},"Ascii85","\u002Fencodings\u002Fascii85","2.encodings\u002F14.ascii85",{"title":104,"path":105,"stem":106},"Z85","\u002Fencodings\u002Fz85","2.encodings\u002F15.z85",{"title":108,"path":109,"stem":110},"basE91","\u002Fencodings\u002Fbase91","2.encodings\u002F16.base91",{"title":112,"path":113,"stem":114},"Bech32","\u002Fencodings\u002Fbech32","2.encodings\u002F17.bech32",{"title":116,"path":117,"stem":118},"Bech32m","\u002Fencodings\u002Fbech32m","2.encodings\u002F18.bech32m",{"title":120,"path":121,"stem":122},"uuencode","\u002Fencodings\u002Fuuencode","2.encodings\u002F19.uuencode",{"title":124,"path":125,"stem":126},"Quoted-Printable","\u002Fencodings\u002Fquoted-printable","2.encodings\u002F20.quoted-printable","i-lucide-library",{"id":129,"title":80,"body":130,"description":232,"extension":233,"links":234,"meta":235,"navigation":236,"path":81,"seo":237,"stem":82,"__hash__":238},"docs\u002F2.encodings\u002F09.base58check.md",{"type":131,"value":132,"toc":230},"minimark",[133,137,141,187,209,226],[134,135],"encoding-facts",{"name":136},"base58check",[138,139,140],"p",{},"Base58 with a seatbelt. The payload, then the first four bytes of its double SHA-256.",[142,143,148],"pre",{"className":144,"code":145,"language":146,"meta":147,"style":147},"language-ts shiki shiki-themes encodings encodings encodings","hex.encode(base58check.decode(\"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\"));\n\u002F\u002F \"0062e907b15cbf27d5425399ebf6f0fb50ebb88f18\"\n","ts","",[149,150,151,180],"code",{"__ignoreMap":147},[152,153,156,160,164,167,170,173,177],"span",{"class":154,"line":155},"line",1,[152,157,159],{"class":158},"s38Sx","hex.",[152,161,163],{"class":162},"sK71F","encode",[152,165,166],{"class":158},"(base58check.",[152,168,169],{"class":162},"decode",[152,171,172],{"class":158},"(",[152,174,176],{"class":175},"shU9J","\"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\"",[152,178,179],{"class":158},"));\n",[152,181,183],{"class":154,"line":182},2,[152,184,186],{"class":185},"scIB-","\u002F\u002F \"0062e907b15cbf27d5425399ebf6f0fb50ebb88f18\"\n",[138,188,189,190,193,194,196,197,200,201,208],{},"The genesis address: version ",[149,191,192],{},"0x00",", then the HASH160 of Satoshi's key. Change one character and ",[149,195,169],{}," throws ",[149,198,199],{},"ChecksumError",". The double SHA-256 comes from ",[202,203,207],"a",{"href":204,"rel":205},"https:\u002F\u002Fhashes.agntn.dev",[206],"nofollow","@agntn\u002Fhashes",", the one dependency this package has.",[138,210,211,212,215,216,219,220,225],{},"The version stays in the payload. Is ",[149,213,214],{},"0x80"," a WIF key and ",[149,217,218],{},"0x05"," a P2SH address? Sure, but that's network knowledge, and it lives in ",[202,221,224],{"href":222,"rel":223},"https:\u002F\u002Fkeys.agntn.dev",[206],"@agntn\u002Fkeys",". This codec checks the checksum and hands you the bytes.",[227,228,229],"style",{},"html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":147,"searchDepth":182,"depth":182,"links":231},[],"Base58 with four bytes of double SHA-256 on the end. Bitcoin addresses and WIF keys and xpubs","md",null,{},true,{"title":80,"description":232},"Wztc6zQb4vI9r5CWAUWOT2GO-YqKTy5c7e8wgdvovNQ",[240,242],{"title":76,"path":77,"stem":78,"description":241,"children":-1},"Base58 with the Bitcoin alphabet. No 0 and O and I and l and leading zero bytes become leading ones",{"title":84,"path":85,"stem":86,"description":243,"children":-1},"Base58 with the lowercase run before the uppercase one. Flickr short URLs",1790940134310]