feat: add base58
This commit is contained in:
12
single-scripts/base58.ts
Executable file
12
single-scripts/base58.ts
Executable 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==
|
||||||
Reference in New Issue
Block a user