did-jwt
Version:
Library for Signing and Verifying JWTs that use DIDs as issuers and JWEs that use DIDs as recipients
17 lines • 570 B
TypeScript
import type { Signer } from '../JWT.js';
/**
* @deprecated Please use ES256KSigner
* The SimpleSigner returns a configured function for signing data.
*
* @example
* const signer = SimpleSigner(process.env.PRIVATE_KEY)
* signer(data, (err, signature) => {
* ...
* })
*
* @param {String} hexPrivateKey a hex encoded private key
* @return {Function} a configured signer function
*/
declare function SimpleSigner(hexPrivateKey: string): Signer;
export default SimpleSigner;
//# sourceMappingURL=SimpleSigner.d.ts.map