13 lines
453 B
TypeScript
Executable File
13 lines
453 B
TypeScript
Executable File
#!/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==
|