From af155c36ddf80942dd82df9abbc42de9c215bac7 Mon Sep 17 00:00:00 2001 From: cedoor Date: Fri, 21 Jan 2022 14:01:47 +0100 Subject: [PATCH] fix: set correct secret type enum value Former-commit-id: 48bba26927e6d69aa510f520236997f4cfade959 [formerly fdbdc121dbde6d8f10252283056000250de037af] [formerly 19e34e60c409651bcb9f8e759dd8c451485226a7 [formerly 02d9d0c3d2d1fdac01a0c549b86b045f724365b5]] Former-commit-id: 845c860260b6ea2581d3e986dbaabb7ab317cdb0 [formerly fb81b5c3acd4471ecde0d2fbf543226345f62aac] Former-commit-id: 2785239c9a9ec6c391b6aaae4956b4c0494e0580 --- packages/protocols/tests/nrln.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/protocols/tests/nrln.test.ts b/packages/protocols/tests/nrln.test.ts index 2aaa1e8..fdb1913 100644 --- a/packages/protocols/tests/nrln.test.ts +++ b/packages/protocols/tests/nrln.test.ts @@ -13,7 +13,7 @@ beforeAll(() => { for (let i = 0; i < leafIndex; i += 1) { const tmpIdentity = new ZkIdentity() - const tmpCommitment: bigint = tmpIdentity.genIdentityCommitment(SecretType.MULTIPART_SECRET, SPAM_TRESHOLD) + const tmpCommitment: bigint = tmpIdentity.genIdentityCommitment(SecretType.MULTIPART, SPAM_TRESHOLD) identityCommitments.push(tmpCommitment) } }) @@ -23,7 +23,7 @@ describe("NRLN", () => { it("Generate NRLN witness", () => { const identity: ZkIdentity = new ZkIdentity() - const identityCommitment: bigint = identity.genIdentityCommitment(SecretType.MULTIPART_SECRET, SPAM_TRESHOLD) + const identityCommitment: bigint = identity.genIdentityCommitment(SecretType.MULTIPART, SPAM_TRESHOLD) const identitySecret: bigint[] = identity.getMultipartSecret(SPAM_TRESHOLD) const commitments: Array = Object.assign([], identityCommitments) @@ -44,7 +44,7 @@ describe("NRLN", () => { */ const identity: ZkIdentity = new ZkIdentity() - const identityCommitment: bigint = identity.genIdentityCommitment(SecretType.MULTIPART_SECRET, SPAM_TRESHOLD) + const identityCommitment: bigint = identity.genIdentityCommitment(SecretType.MULTIPART, SPAM_TRESHOLD) const identitySecret: bigint[] = identity.getMultipartSecret(SPAM_TRESHOLD) const commitments: Array = Object.assign([], identityCommitments) commitments.push(identityCommitment)