Skip to content

ed25519Signer

function ed25519Signer(privateJwk, options?): Promise<AuditSigner>;

Defined in: src/integrity.ts:604

An Ed25519 signer from a private JWK (from generateSigningKeyPair or xtandard-audit keygen). The public half is served as a JWKS so customers can verify checkpoints themselves.

Parameter Type
privateJwk AuditJwk
options? { keyId?: string; }
options.keyId? string

Promise<AuditSigner>

import { ed25519Signer } from "@xtandard/audit";
const signer = await ed25519Signer(JSON.parse(process.env.AUDIT_SIGNING_KEY!));