initial update to libbolt

This commit is contained in:
J. Ayo Akinyele 2018-02-24 03:12:58 -05:00
parent 3eeb5fbfe6
commit d680c4761f
4 changed files with 50 additions and 2 deletions

View File

@ -1,7 +1,6 @@
[package]
name = "libbolt"
version = "0.0.1"
version = "0.1.0"
authors = ["J. Ayo Akinyele <ayo@yeletech.org>"]
description = "library for Blind Off-chain Lightweight Transactions (BOLT)"
keywords = ["zcash", "payment channels", "bolt"]
@ -13,3 +12,7 @@ license = "MIT License"
[dependencies]
bn = "0.4.3"
rand = "~0.3.14"
[[bin]]
name = "bolt"
path = "bin/bolt.rs"

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
.PHONY: all
all:
cargo build
cargo run
clean:
cargo clean

View File

@ -1,5 +1,6 @@
extern crate bn;
extern crate rand;
extern crate libbolt;
use bn::{Group, Fr, G1, G2, pairing};
fn main() {
@ -23,4 +24,6 @@ fn main() {
assert!(alice_ss == bob_ss && bob_ss == carol_ss);
println!("All bn tests succeeded!");
libbolt::setup();
}

View File

@ -0,0 +1,34 @@
extern crate bn;
// define some structures here
pub fn test_libbolt() {
println!("Hello, Libbolt here!");
}
pub fn setup() {
println!("Run Setup...");
}
pub fn keygen() {
println!("Run Keygen...");
}
pub fn init() {
println!("Run Init...");
}
pub fn refund() {
println!("Run Refund...");
}
pub fn refute() {
println!("Run Refute...");
}
pub fn resolve() {
println!("Run Resolve...");
}