1
2
3
4
5
6
7
8
9
10
11
import { exportedKeys } from "https://esm.town/v/stevekrouse/exportedKeys";
import { importKeys } from "https://esm.town/v/stevekrouse/importKeys";
import { signECDSA } from "https://esm.town/v/stevekrouse/signECDSA";
import { btoa } from "https://esm.town/v/stevekrouse/btoa";
export const signatureEx = btoa(
await signECDSA(
"test hello!",
(await importKeys(exportedKeys)).privateKey,
),
);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023