Skip to content

Commit

Permalink
Merge pull request #117 from dhrubabasu/add-htfopts
Browse files Browse the repository at this point in the history
bls: Add `htfOpts` parameter to `sign` functions
  • Loading branch information
paulmillr committed Feb 17, 2024
2 parents 8397b26 + a8503d6 commit 6a85252
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/abstract/bls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ export type CurveFn<Fp, Fp2, Fp6, Fp12> = {
getPublicKey: (privateKey: PrivKey) => Uint8Array;
getPublicKeyForShortSignatures: (privateKey: PrivKey) => Uint8Array;
sign: {
(message: Hex, privateKey: PrivKey): Uint8Array;
(message: ProjPointType<Fp2>, privateKey: PrivKey): ProjPointType<Fp2>;
(message: Hex, privateKey: PrivKey, htfOpts?: htfBasicOpts): Uint8Array;
(message: ProjPointType<Fp2>, privateKey: PrivKey, htfOpts?: htfBasicOpts): ProjPointType<Fp2>;
};
signShortSignature: {
(message: Hex, privateKey: PrivKey): Uint8Array;
(message: ProjPointType<Fp>, privateKey: PrivKey): ProjPointType<Fp>;
(message: Hex, privateKey: PrivKey, htfOpts?: htfBasicOpts): Uint8Array;
(message: ProjPointType<Fp>, privateKey: PrivKey, htfOpts?: htfBasicOpts): ProjPointType<Fp>;
};
verify: (
signature: Hex | ProjPointType<Fp2>,
Expand Down

0 comments on commit 6a85252

Please sign in to comment.