1 unstable release
Uses old Rust 2015
0.1.0 | Feb 2, 2018 |
---|
#8 in #banner
Used in 3 crates
(via yobicrypto)
36KB
850 lines
Yobicrypto
Cryptographyc toolkit used in Yobicash.
Table of Contents
Install
To install it add in your Cargo.toml:
# Cargo.toml
[dependencies]
yobicrypto = "^0.2"
and in the root of your crate:
//main.rs
extern crate yobicrypto;
Usage
Look at the documentation or at the tests for guidance.
// 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);
Maintainers
License
This project is license under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
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.
Dependencies
~0.4–1MB
~23K SLoC