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.

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