UNPKG

did-jwt

Version:

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

19 lines 618 B
import type { Signer } from '../JWT.js'; /** * @deprecated Please use ES256KSigner * The EllipticSigner returns a configured function for signing data. * * @example * ```typescript * const signer = EllipticSigner(process.env.PRIVATE_KEY) * signer(data).then( (signature: string) => { * ... * }) * ``` * * @param {String} hexPrivateKey a hex encoded private key * @return {Function} a configured signer function */ declare function EllipticSigner(hexPrivateKey: string): Signer; export default EllipticSigner; //# sourceMappingURL=EllipticSigner.d.ts.map