@hpke/common
Version:
A Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.
30 lines • 1.01 kB
TypeScript
/**
* This file is based on noble-curves (https://github.com/paulmillr/noble-curves).
*
* noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com)
*
* The original file is located at:
* https://github.com/paulmillr/noble-curves/blob/b9d49d2b41d550571a0c5be443ecb62109fa3373/src/abstract/curve.ts
*/
/**
* Methods for elliptic curve multiplication by scalars.
* Contains wNAF, pippenger.
* @module
*/
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
import type { Signer } from "../utils/noble.js";
export interface CurveLengths {
secretKey?: number;
publicKey?: number;
publicKeyUncompressed?: number;
publicKeyHasPrefix?: boolean;
signature?: number;
seed?: number;
}
type KeygenFn = (seed?: Uint8Array, isCompressed?: boolean) => {
secretKey: Uint8Array;
publicKey: Uint8Array;
};
export declare function createKeygen(randomSecretKey: Function, getPublicKey: Signer["getPublicKey"]): KeygenFn;
export {};
//# sourceMappingURL=curve.d.ts.map