From 76da9687ccc6b2fc7ad565ffce2784df0da0e4fa Mon Sep 17 00:00:00 2001 From: Oren Date: Fri, 6 Oct 2023 23:27:35 +0300 Subject: [PATCH] Set the default version to V2 (JavaScript) --- javascript/src/signals.ts | 2 +- javascript/test/signals.test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/javascript/src/signals.ts b/javascript/src/signals.ts index bf7e424..2b6bcd2 100644 --- a/javascript/src/signals.ts +++ b/javascript/src/signals.ts @@ -97,7 +97,7 @@ export function computeAllInputs( message: string | Uint8Array, secretKey: string | Uint8Array, r?: string | Uint8Array, - version: PlumeVersion = PlumeVersion.V1 + version: PlumeVersion = PlumeVersion.V2 ) { const secretKeyBytes = typeof secretKey === "string" ? hexToUint8Array(secretKey) : secretKey; diff --git a/javascript/test/signals.test.ts b/javascript/test/signals.test.ts index cdbc4cd..6a411fa 100644 --- a/javascript/test/signals.test.ts +++ b/javascript/test/signals.test.ts @@ -65,7 +65,8 @@ describe("signals", () => { const { plume, s, publicKey, c, gPowR, hashMPKPowR } = computeAllInputs( testMessage, testSecretKey, - testR + testR, + PlumeVersion.V1, ); expect(publicKey).toEqual(testPublicKey); expect(gPowR.x.toString(16)).toEqual(