Cryptographyc toolkit used in Yobicash.
To install it add in your Cargo.toml:
```toml
[dependencies] yobicrypto = "^0.2" ```
and in the root of your crate:
```rust //main.rs
extern crate yobicrypto; ```
Look at the documentation or at the tests for guidance.
```rust // main.rs
use yobicrypto::{Random, Scalar, ZKPWitness, ZKPProof};
let instance = Scalar::random(); let witness = ZKPWitness::new(instance)?; let message = Random::bytes(64); let proof = ZKPProof::new(instance, &message)?; let verified = proof.verify(witness)?;
assert!(verified); ```
This project is license under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in yobicrypto by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.