Skip to content

Plume, over the Grumpkin curve, with Poseidon2 hashing, with a BN-curve-optimised hash-to-curve.

License

Notifications You must be signed in to change notification settings

iAmMichaelConnor/noir-pumpkin-plume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plume in Noir

Poseidon2 + Grumpkin = Pumpkin 🎃

Plume using the Grumpkin curve, Poseidon2 hash, and a map-to-curve approach specifically for BN curves.

These choices of curve and hash seek to minimise constraint counts in circuits. The last I measured, it's ~3300 constraints to verify a plume nullifier with this approach.

Warning

This approach has been written quickly, with no review. It will have bugs. The approach might not even be sound. Don't use it.

About the repo

Forked from https://github.com/distributed-lab/noir-plume. The lovely repo layout remains. The code relating to secp256k1, sha256, byte manipulation, and the map-to-curve approach using secp256k1 isogenies, has all been removed. The Sage code also remains, with modifications and additions for Grumpkin, Poseidon2, and map-to-curve.

Retaining the original license, for simplicity:

License: MIT

Noir CI 🌌

About Plume

Plume is needed to confirm your identity without disclosing your private data, i.e. zero-knowledge proof. Plume has another feature: you can send a message from a private group using special group message. For more details visit https://blog.aayushg.com/nullifier/.

How to use?

TODO

Example

See the example in crates/use.

For proving data generation, check out our SageMath implementation.

Benchmark

TODO. Headline: it's about 3300 constraints.

Miscellaneous

TODO

Useful resources:

About

Plume, over the Grumpkin curve, with Poseidon2 hashing, with a BN-curve-optimised hash-to-curve.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •