mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
fix: set correct secret type enum value
Former-commit-id: 48bba26927e6d69aa510f520236997f4cfade959 [formerly fdbdc121dbde6d8f10252283056000250de037af] [formerly 19e34e60c409651bcb9f8e759dd8c451485226a7 [formerly 02d9d0c3d2]]
Former-commit-id: 845c860260b6ea2581d3e986dbaabb7ab317cdb0 [formerly fb81b5c3acd4471ecde0d2fbf543226345f62aac]
Former-commit-id: 2785239c9a9ec6c391b6aaae4956b4c0494e0580
This commit is contained in:
@@ -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<bigint> = 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<bigint> = Object.assign([], identityCommitments)
|
||||
commitments.push(identityCommitment)
|
||||
|
||||
Reference in New Issue
Block a user