Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/i proof sdk #8

Open
wants to merge 3 commits into
base: testnet3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 62 additions & 120 deletions Cargo.lock

Large diffs are not rendered by default.

98 changes: 51 additions & 47 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ members = [ "rust", "wasm" ]

[workspace.dependencies.snarkvm]
version = "0.9.13"
path="../snarkVM"

[workspace.dependencies.snarkvm-wasm]
version = "0.9.13"
default-features = false
path="../snarkVM/wasm"

[workspace.dependencies.snarkvm-synthesizer]
path="../snarkVM/synthesizer"
version = "0.9.13"

[workspace.dependencies.snarkvm-console]
path="../snarkVM/console"
version = "0.9.13"

[lib]
path = "cli/lib.rs"
Expand All @@ -41,68 +51,62 @@ wasm = [ "aleo-wasm" ]
[dependencies]
num-format = "0.4.4"

[dependencies.aleo-rust]
path = "rust"
version = "0.3.5"
optional = true
[dependencies.aleo-rust]
path = "rust"
version = "0.3.5"
optional = true

[dependencies.aleo-wasm]
path = "wasm"
version = "0.3.5"
optional = true
[dependencies.aleo-wasm]
path = "wasm"
version = "0.3.5"
optional = true

[dependencies.anyhow]
version = "1.0"
[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "3.2"
features = [ "derive" ]
[dependencies.clap]
version = "3.2"
features = [ "derive" ]

[dependencies.colored]
version = "2"
[dependencies.colored]
version = "2"

[dependencies.parking_lot]
version = "0.12"
[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.8"
default-features = false
[dependencies.rand]
version = "0.8"
default-features = false

[dependencies.rand_chacha]
version = "0.3.0"
default-features = false
[dependencies.rand_chacha]
version = "0.3.0"
default-features = false

[dependencies.rpassword]
version = "7.2.0"
[dependencies.rpassword]
version = "7.2.0"

[dependencies.self_update]
version = "0.32"
[dependencies.self_update]
version = "0.32"

[dependencies.serde]
version = "1"
[dependencies.serde]
version = "1"

[dependencies.serde_json]
version = "1"
[dependencies.serde_json]
version = "1"

[dependencies.snarkvm]
workspace = true
features = [
"aleo-cli",
"circuit",
"console",
"parallel",
"snarkvm-synthesizer"
]
[dependencies.snarkvm]
workspace = true
features = [ "aleo-cli", "circuit", "console", "snarkvm-synthesizer"]

[dependencies.thiserror]
version = "1.0"
[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.22"
features = [ "rt" ]
[dependencies.tokio]
version = "1.22"
features = [ "rt" ]

[dependencies.warp]
version = "0.3"
[dependencies.warp]
version = "0.3"

[dev-dependencies.rusty-hook]
version = "0.11.2"
Expand Down
21 changes: 14 additions & 7 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,26 @@ optional = true
[dependencies.serde_json]
version = "1.0.91"

[dependencies.snarkvm-console]
features = [ "parallel" ]
optional = true
[dependencies.snarkvm-wasm]
version = "0.9.13"
path="../../snarkVM/wasm"

[dependencies.snarkvm-utilities]
version = "0.9.13"
path="../../snarkVM/utilities"

[dependencies.snarkvm-synthesizer]
features = [ "parallel" ]
optional = true
version = "0.9.13"
path = "../../snarkVM/synthesizer"
default-features = false
features = [ "wasm" ]
optional = true

[dependencies.snarkvm-utilities]
features = [ "parallel" ]
[dependencies.snarkvm-console]
path = "../../snarkVM/console"
default-features = false
version = "0.9.13"
optional = true

[dev-dependencies.bencher]
version = "0.1.5"
Expand Down
5 changes: 4 additions & 1 deletion rust/src/account/encryptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
use snarkvm_console::{
account::PrivateKey,
network::Network,
program::{Ciphertext, Identifier, Literal, Plaintext},
types::Field,
};
use snarkvm_utilities::Uniform;

use snarkvm_console::{
program::{Ciphertext, Identifier, Literal, Plaintext}
};

use anyhow::{anyhow, Result};
use once_cell::sync::OnceCell;
use std::{iter::FromIterator, str::FromStr};
Expand Down
43 changes: 41 additions & 2 deletions wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,56 @@ version = "0.8"

[dependencies.serde_json]
version = "1.0"
features = [ "preserve_order" ]

[dependencies.snarkvm-synthesizer]
path="../../snarkVM/synthesizer"
version = "0.9.13"
default-features = false
features = [ "wasm" ]

[dependencies.snarkvm-console]
path="../../snarkVM/console"
version = "0.9.13"
default-features = false

[dependencies.snarkvm-wasm]
workspace = true
features = [ "console", "fields", "utilities" ]
path="../../snarkVM/wasm"
version = "0.9.13"

[dependencies.wasm-bindgen]
version = "0.2"
features = [ "serde-serialize" ]

[dependencies.js-sys]
version = "0.3"

[dependencies.web-sys]
version = "0.3"
features = ["console"]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.4"

[dependencies.console_error_panic_hook]
version = "0.1.7"

[dependencies.rand_chacha]
version = "0.3.1"

[dev-dependencies.wasm-bindgen-test]
version = "0.3.33"

[profile.release]
opt-level = 3
lto = true

[package.metadata.wasm-pack.profile.debug]
wasm-opt = ["-O4"]

[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O4"]
3 changes: 3 additions & 0 deletions wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ pub use account::*;
pub mod record;
pub use record::*;

pub mod program;
pub use program::*;

pub(crate) mod types;
Loading