UNPKG

identity-based-encryption-bn254

Version:

![build](https://github.com/randa-mu/identity-based-encryption-bn254/actions/workflows/build.yml/badge.svg)

41 lines (40 loc) 1.31 kB
import { CurveFn } from "@noble/curves/abstract/bls"; export declare const htfDefaultsG1: Readonly<{ readonly DST: "BN254G1_XMD:KECCAK-256_SVDW_RO_"; readonly p: bigint; readonly m: 1; readonly k: 128; readonly expand: "xmd"; readonly hash: { (msg: import("@noble/hashes/utils").Input): Uint8Array; outputLen: number; blockLen: number; create(): import("@noble/hashes/utils").Hash<import("@noble/hashes/utils").Hash<any>>; }; }>; export declare const htfDefaultsG2: Readonly<{ readonly DST: "BN254G2_XMD:KECCAK-256_SVDW_RO_"; readonly p: bigint; readonly m: 2; readonly k: 128; readonly expand: "xmd"; readonly hash: { (msg: import("@noble/hashes/utils").Input): Uint8Array; outputLen: number; blockLen: number; create(): import("@noble/hashes/utils").Hash<import("@noble/hashes/utils").Hash<any>>; }; }>; /** * bn254 (a.k.a. alt_bn128) pairing-friendly curve. * Contains G1 / G2 operations and pairings. */ export declare const bn254: CurveFn; export declare function mapToG1(scalars: bigint[]): { x: bigint; y: bigint; }; export declare function mapToG2(scalars: bigint[]): { x: import("@noble/curves/abstract/tower").Fp2; y: import("@noble/curves/abstract/tower").Fp2; };