Skip to content

Commit

Permalink
Set the default version to V2 (JavaScript)
Browse files Browse the repository at this point in the history
  • Loading branch information
orenyomtov committed Oct 6, 2023
1 parent 82c7c26 commit 76da968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript/src/signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion javascript/test/signals.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 76da968

Please sign in to comment.