mirror of
https://github.com/CryptKeeperZK/semaphore.git
synced 2026-01-09 15:37:57 -05:00
15 lines
411 B
TypeScript
15 lines
411 B
TypeScript
import { Identity } from "@cryptkeeperzk/semaphore-identity"
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export function createIdentityCommitments(n: number): bigint[] {
|
|
const identityCommitments: bigint[] = []
|
|
|
|
for (let i = 0; i < n; i += 1) {
|
|
const { commitment } = new Identity(i.toString())
|
|
|
|
identityCommitments.push(commitment)
|
|
}
|
|
|
|
return identityCommitments
|
|
}
|