Skip to content

Commit

Permalink
docs(proof): update readme file
Browse files Browse the repository at this point in the history
Former-commit-id: 55add65
  • Loading branch information
cedoor committed Dec 23, 2022
1 parent 252b866 commit ef69356
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/proof/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ yarn add @semaphore-protocol/identity @semaphore-protocol/group @semaphore-proto
import { Identity } from "@semaphore-protocol/identity"
import { Group } from "@semaphore-protocol/group"
import { generateProof } from "@semaphore-protocol/proof"
import { formatBytes32String } from "ethers/lib/utils"

const identity = new Identity()
const group = new Group()
const externalNullifier = BigInt(1)
const signal = "Hello world"
const externalNullifier = 1
const signal = formatBytes32String("Hello world")

group.addMembers([...identityCommitments, identity.generateCommitment()])

Expand Down

0 comments on commit ef69356

Please sign in to comment.