MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / smoke.mjs

File smoke.mjs

atomic-wasm/smoke.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { readFileSync } from "node:fs";
2import init, { prepareAttestation, attachProof, verifyAttestation, didForPublicKey } from "./pkg/atomic_wasm.js";
3await init({ module_or_path: readFileSync(new URL("./pkg/atomic_wasm_bg.wasm", import.meta.url)) });
4const kp = await crypto.subtle.generateKey("Ed25519", false, ["sign", "verify"]);

Callers

nothing calls this directly

Calls 4

initFunction · 0.50
signMethod · 0.45
logMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected