mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-04-28 03:00:41 -04:00
8 lines
306 B
TypeScript
8 lines
306 B
TypeScript
import { generateMerkleProof } from "@zk-kit/protocols"
|
|
|
|
export const SnarkScalarField = BigInt("21888242871839275222246405745257275088548364400416034343698204186575808495617")
|
|
|
|
export function createMerkleProof(leaves: bigint[], leaf: bigint) {
|
|
return generateMerkleProof(20, BigInt(0), leaves, leaf)
|
|
}
|