feat: add base58

This commit is contained in:
2025-09-18 23:29:05 +08:00
parent 8f7e49ffcc
commit 1343baa12d

12
single-scripts/base58.ts Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env runts --
import { encodeBase58, decodeBase58 } from "jsr:@std/encoding/base58";
import { toArrayBuffer } from "https://deno.land/std@0.203.0/streams/mod.ts";
const input = await toArrayBuffer(Deno.stdin.readable);
const encoded = encodeBase58(input);
console.log(encoded);
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250918T232829+08:00.MEQCIDTK7w2cMsnuSeOTG6Ea
// IuYKaueP/nmuNLrphCzropKdAiAy5bIcH2mMdo9cXo6zojqoz2p9gOe/HXapjJgGLUvpMg==