Merge pull request #4 from appliedzkp/nrln_fix

genIdentifier added to nRln

Former-commit-id: f983f039a86991ce4760081fe9576fcefdb3c22e [formerly a6c4a74e04]
Former-commit-id: 93f020cabcd37d15e5c0836343fee8b7af4c8741
This commit is contained in:
Andrija Novakovic
2021-10-25 22:46:35 +02:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@@ -91,6 +91,14 @@ class NRln extends ZkProtocol {
}
return f0
}
/**
*
* @returns unique identifier of the rln dapp
*/
genIdentifier(): bigint {
return Fq.random()
}
}
export default new NRln()

View File

@@ -72,9 +72,8 @@ class Rln extends ZkProtocol {
/**
*
* @returns unique identifier of rln dapp
* @returns unique identifier of the rln dapp
*/
genIdentifier(): bigint {
return Fq.random()
}