@agorio/sdkDocs


Function: createJwkSigner()

createJwkSigner(opts): object

Build a real signer from a private JWK, ready to pass as Ap2ClientOptions.sign (with keyId + algorithm). Produces base64url signatures over the mandate’s canonical JSON. ES256 uses the ieee-p1363 (raw r‖s) encoding to match WebAuthn/ JWS and verifyMandateSignature.

Parameters

opts

opts.algorithm: MandateAlgorithm

opts.keyId: string

opts.privateJwk: any

Returns

object

algorithm

algorithm: MandateAlgorithm

keyId

keyId: string

sign()

sign: (payload) => Promise<string>

Parameters

payload: string

Returns

Promise<string>

Defined in

src/security/mandate-verifier.ts:64