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.

31 lines
1.3 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.
  3. BabyJubJub is a twisted edwards curve embedded in the curve of BN128.
  4. BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
  5. Uses:
  6. - MiMC7 hash function: https://github.com/arnaucube/mimc-rs
  7. ## Warning
  8. Doing this in my free time to get familiar with Rust, do not use in production.
  9. - [x] point addition
  10. - [x] point scalar multiplication
  11. - [x] eddsa keys generation
  12. - [x] eddsa signature
  13. - [x] eddsa signature verification
  14. - [ ] {point, pk, signature} compress&decompress parsers
  15. ### References
  16. - BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
  17. - C++ https://github.com/barryWhiteHat/baby_jubjub_ecc
  18. - Javascript & Circom: https://github.com/iden3/circomlib
  19. - Go https://github.com/iden3/go-iden3-crypto
  20. - JubJub curve explanation: https://z.cash/technology/jubjub/
  21. - Rust: https://github.com/zkcrypto/jubjub
  22. - Python: https://github.com/daira/jubjub