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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
privateJwk |
AuditJwk |
options? |
{ keyId?: string; } |
options.keyId? |
string |
Returns
Section titled “Returns”Promise<AuditSigner>
Example
Section titled “Example”import { ed25519Signer } from "@xtandard/audit";
const signer = await ed25519Signer(JSON.parse(process.env.AUDIT_SIGNING_KEY!));