yobicrypto 0.1.0

The Yobicash cryptographyc toolkit
docs.rs failed to build yobicrypto-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: yobicrypto-0.2.5

banner

Yobicrypto

Cryptographyc toolkit used in Yobicash.

Table of Contents

Install

Yobicrypto depends on unstable features, so use is only on nightly projects. To install it add in your Cargo.toml:

# Cargo.toml

[dependencies]
yobicrypto = { git = "https://github.com/yobicash/yobicrypto", version = "^0.1" }

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

Pull requests are well accepted. By askying to contribute you implicitly accept the above licenses.