mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
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:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user