You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.3 KiB

  1. # babyjubjub-rs [![Crates.io](https://img.shields.io/crates/v/babyjubjub-rs.svg)](https://crates.io/crates/babyjubjub-rs) [![Test](https://github.com/arnaucube/babyjubjub-rs/workflows/Test/badge.svg)](https://github.com/arnaucube/babyjubjub-rs/actions?query=workflow%3ATest)
  2. BabyJubJub elliptic curve implementation in Rust. A twisted edwards curve embedded in the curve of BN128/BN256.
  3. BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
  4. Uses:
  5. - Poseidon hash function https://github.com/arnaucube/poseidon-rs
  6. Compatible with the BabyJubJub implementations in:
  7. - Go, from https://github.com/iden3/go-iden3-crypto
  8. - circom & javascript, from https://github.com/iden3/circomlib
  9. ## Warning
  10. Doing this in my free time, **do not use in production**.
  11. ### References
  12. - BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
  13. - C++ & Explanation https://github.com/barryWhiteHat/baby_jubjub
  14. - C++ https://github.com/barryWhiteHat/baby_jubjub_ecc
  15. - Javascript & Circom: https://github.com/iden3/circomlib
  16. - Go https://github.com/iden3/go-iden3-crypto
  17. - JubJub curve explanation: https://z.cash/technology/jubjub/
  18. - Rust: https://github.com/zkcrypto/jubjub
  19. - Python: https://github.com/daira/jubjub