Skip to content

Commit

Permalink
implemented fetching of setup public settings for verifier, unified c…
Browse files Browse the repository at this point in the history
…li interface across verifier and contributor, updated tokio, added documentation
  • Loading branch information
ibaryshnikov committed May 15, 2021
1 parent 2ca8c58 commit 99b8c43
Show file tree
Hide file tree
Showing 14 changed files with 198 additions and 251 deletions.
165 changes: 26 additions & 139 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions setup1-cli-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@ Some handy utilities for testing purposes
## Build Guide

```bash
# Requires specific nightly to work
rustup default nightly-2020-08-15
# After choosing the nightly you can build with:
# Requires specific rustc version
rustup default 1.48
# After setting the toolchain, you can build with:
cargo build --release
```

~~Works on stable and nightly! (tested on 1.50 stable and 1.52 nightly)~~

Alternatively, to add the binaries to the PATH run:

```bash
cargo install --path .
```

This will add the `public-key-extractor` and `view-key` binaries to `.cargo/bin` folder

## Usage

```bash
# To generate a view key:
./view_key
view-key > view_key.txt

# To produce a public key out of a private key:
./public_key_extractor --path keys.json
public-key-extractor --path keys.json
```
1 change: 1 addition & 0 deletions setup1-cli-tools/keys.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"encryptedSeed":"6167652d656e6372797074696f6e2e6f72672f76310a2d3e20736372797074205433706877594d4e76784b71436d412b4143726d4d412031380a6455565770614952767a3755316f386f777437526b642b453033556f4d304272704c3735424d63585a48450a2d2d2d20464e7a624663423452643467666b316f364c62725330702f7774344e565644356e3166764444675a7277340ab8ae2b2a5245a066ed34c546d97826f01ce13225886bbb87e4075f39fd7f8735ba6c99f51c51225f041be140ea888c3f8c3a090fd4c083727786c043103acf01b1357ce5c68c701c882e30d40dd55269d0cf85c02a08209a567d1e991d9d0114","encryptedPrivateKey":"6167652d656e6372797074696f6e2e6f72672f76310a2d3e20736372797074206557303278375676345a5870486762493073745a77512031380a47585a4d303132316f4f33423668665841676c7878712f795a30614c766d4c36464b69636e6278327774450a2d2d2d2042324d682f472b394c694b5668656e4a4a6b374f654e2f6b2f426b64362f33477566344939333661342b450af9cba882dd40a72d30859f0119f2d14ba22d2f3046c68d6143078ab2e71b76558213aa49b3ddf3b704992d3d78a210ba28fbe85407fbff2f334036aad8f085d51f1ca50ad5d85cd3361b0880ea39c3ea4aab3a87e5f8589c4e47e8","address":"aleo1703jy63jyhxrhyyfd2pwmn5q8puzp8ta4fsxdjvdyx5wmfwpmy9svxq3a9"}
2 changes: 1 addition & 1 deletion setup1-cli-tools/src/view_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ fn main() {
let mut rng = rand::thread_rng();
let private_key = PrivateKey::new(&mut rng).expect("Should generate a random PrivateKey struct");
let view_key = ViewKey::from(&private_key).expect("Should create a ViewKey from a PrivateKey");
println!("{}", view_key);
print!("{}", view_key);
}
2 changes: 1 addition & 1 deletion setup1-contributor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "setup1-contributor"
version = "0.3.0"
version = "0.4.0"
authors = ["The Aleo Team <[email protected]>"]
description = "Aleo Setup Contributor"
homepage = "https://github.com/AleoHQ/aleo-setup"
Expand Down
Loading

0 comments on commit 99b8c43

Please sign in to comment.