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.

33 lines
1.5 KiB

  1. # babyjubjub-rs [![Crates.io](https://img.shields.io/crates/v/babyjubjub-rs.svg)](https://crates.io/crates/babyjubjub-rs) [![Build Status](https://travis-ci.org/arnaucube/babyjubjub-rs.svg?branch=master)](https://travis-ci.org/arnaucube/babyjubjub-rs)
  2. BabyJubJub elliptic curve implementation in Rust. A twisted edwards curve embedded in the curve of BN128.
  3. BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
  4. Uses:
  5. - MiMC7 hash function: https://github.com/arnaucube/mimc-rs
  6. - Poseidon hash function https://github.com/arnaucube/poseidon-rs
  7. Compatible with the BabyJubJub Go implementation from https://github.com/iden3/go-iden3-crypto
  8. ## Warning
  9. Doing this in my free time to get familiar with Rust, **do not use in production**.
  10. - [x] point addition
  11. - [x] point scalar multiplication
  12. - [x] eddsa keys generation
  13. - [x] eddsa signature
  14. - [x] eddsa signature verification
  15. - [x] {point, pk, signature} compress&decompress parsers
  16. ### References
  17. - BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
  18. - C++ & Explanation https://github.com/barryWhiteHat/baby_jubjub
  19. - C++ https://github.com/barryWhiteHat/baby_jubjub_ecc
  20. - Javascript & Circom: https://github.com/iden3/circomlib
  21. - Go https://github.com/iden3/go-iden3-crypto
  22. - JubJub curve explanation: https://z.cash/technology/jubjub/
  23. - Rust: https://github.com/zkcrypto/jubjub
  24. - Python: https://github.com/daira/jubjub