We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252b866 commit ef69356Copy full SHA for ef69356
packages/proof/README.md
@@ -73,11 +73,12 @@ yarn add @semaphore-protocol/identity @semaphore-protocol/group @semaphore-proto
73
import { Identity } from "@semaphore-protocol/identity"
74
import { Group } from "@semaphore-protocol/group"
75
import { generateProof } from "@semaphore-protocol/proof"
76
+import { formatBytes32String } from "ethers/lib/utils"
77
78
const identity = new Identity()
79
const group = new Group()
-const externalNullifier = BigInt(1)
80
-const signal = "Hello world"
+const externalNullifier = 1
81
+const signal = formatBytes32String("Hello world")
82
83
group.addMembers([...identityCommitments, identity.generateCommitment()])
84
0 commit comments