#toolkit #cryptographic

yobicrypto

The Yobicash cryptographyc toolkit

13 releases

0.2.5 Mar 28, 2018
0.2.4 Mar 27, 2018
0.2.3 Feb 8, 2018
0.1.6 Feb 5, 2018
Download history 13/week @ 2018-08-24 10/week @ 2018-08-31 16/week @ 2018-09-07 2/week @ 2018-09-14 26/week @ 2018-09-28 28/week @ 2018-10-05 1/week @ 2018-10-12 151/week @ 2018-10-19 39/week @ 2018-11-02 67/week @ 2018-11-09

132 downloads per month
Used in 2 crates

MIT/Apache

90KB
2K SLoC

Rust 1.5K SLoC // 0.1% comments C 675 SLoC // 0.1% comments

banner

Yobicrypto

Travis branch Coveralls github branch Crates.io Docs.rs Crates.io

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

@chritchens

License

This project is license under either of

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

~5MB
~91K SLoC