Skip to content

Generate a mock World ID semaphore tree to generate mock inclusion proofs for unit testing.

License

Notifications You must be signed in to change notification settings

worldcoin/semaphore-mock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semaphore-mock

Generate a mock World ID semaphore tree to generate mock inclusion proofs for unit testing. Doesn't require signup-sequencer and uses semaphore-rs to generate the tree and the proofs.

Usage

Generate identities:

# Generates 100 secrets from which you can create Semaphore identities (out/random_identities.json)
cargo run --release generate-identities -identities 100

Prove inclusion and output the proof to json:

# Generates an inclusion proof for a given leaf index (out/proof.json)
cargo run --release prove-inclusion -i "out/random_identities.json" -tree-depth 16 --identity-index 16

About

Generate a mock World ID semaphore tree to generate mock inclusion proofs for unit testing.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Rust 100.0%