UNPKG

did-jwt

Version:

Library for Signing and Verifying JWTs that use DIDs as issuers and JWEs that use DIDs as recipients

13 lines 628 B
import type { ECDH, EphemeralKeyPair, Recipient } from './types.js'; export declare function computeX25519EcdhEsKek(recipient: Recipient, receiverSecret: Uint8Array | ECDH, alg: string): Promise<Uint8Array | null>; export declare function createX25519EcdhEsKek(recipientPublicKey: Uint8Array, senderSecret: Uint8Array | ECDH | undefined, // unused alg: string, apu: string | undefined, // unused apv: string | undefined, ephemeralKeyPair: EphemeralKeyPair | undefined): Promise<{ epk: { kty: string; crv: string; x: string; }; kek: Uint8Array; }>; //# sourceMappingURL=X25519-ECDH-ES.d.ts.map