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