add some error handling

This commit is contained in:
arnaucube
2019-09-09 20:42:17 +02:00
parent 2ab48ff3ad
commit addcca64e5
4 changed files with 90 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
# 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)
BabyJubJub elliptic curve implementation in Rust. Is a twisted edwards curve embedded in the curve of BN128.
BabyJubJub elliptic curve implementation in Rust. A twisted edwards curve embedded in the curve of BN128.
BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
@@ -10,7 +10,7 @@ Uses:
Compatible with the BabyJubJub Go implementation from https://github.com/iden3/go-iden3-crypto
## Warning
Doing this in my free time to get familiar with Rust, do not use in production.
Doing this in my free time to get familiar with Rust, **do not use in production**.
- [x] point addition
- [x] point scalar multiplication
@@ -24,7 +24,8 @@ Doing this in my free time to get familiar with Rust, do not use in production.
### References
- BabyJubJub curve explanation: https://medium.com/zokrates/efficient-ecc-in-zksnarks-using-zokrates-bd9ae37b8186
- C++ https://github.com/barryWhiteHat/baby_jubjub_ecc
- C++ & Explanation https://github.com/barryWhiteHat/baby_jubjub
- C++ https://github.com/barryWhiteHat/baby_jubjub_ecc
- Javascript & Circom: https://github.com/iden3/circomlib
- Go https://github.com/iden3/go-iden3-crypto
- JubJub curve explanation: https://z.cash/technology/jubjub/