From a8503d6819ece42aa9fe10cc69ceeeef20a23482 Mon Sep 17 00:00:00 2001 From: dhrubabasu <7675102+dhrubabasu@users.noreply.github.com> Date: Fri, 16 Feb 2024 18:03:27 -0500 Subject: [PATCH] bls: Add `htfOpts` parameter to `sign` functions --- src/abstract/bls.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/abstract/bls.ts b/src/abstract/bls.ts index bfab1a8..c4ec60f 100644 --- a/src/abstract/bls.ts +++ b/src/abstract/bls.ts @@ -83,12 +83,12 @@ export type CurveFn = { getPublicKey: (privateKey: PrivKey) => Uint8Array; getPublicKeyForShortSignatures: (privateKey: PrivKey) => Uint8Array; sign: { - (message: Hex, privateKey: PrivKey): Uint8Array; - (message: ProjPointType, privateKey: PrivKey): ProjPointType; + (message: Hex, privateKey: PrivKey, htfOpts?: htfBasicOpts): Uint8Array; + (message: ProjPointType, privateKey: PrivKey, htfOpts?: htfBasicOpts): ProjPointType; }; signShortSignature: { - (message: Hex, privateKey: PrivKey): Uint8Array; - (message: ProjPointType, privateKey: PrivKey): ProjPointType; + (message: Hex, privateKey: PrivKey, htfOpts?: htfBasicOpts): Uint8Array; + (message: ProjPointType, privateKey: PrivKey, htfOpts?: htfBasicOpts): ProjPointType; }; verify: ( signature: Hex | ProjPointType,