mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-01-07 15:53:12 +00:00
rename crates
This commit is contained in:
parent
c051f4e9ea
commit
9e153b9ebd
@ -5,7 +5,7 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
risc0-zkvm = "2.2"
|
risc0-zkvm = "2.2"
|
||||||
toy-example-core = { path = "core" }
|
core = { path = "core" }
|
||||||
transfer-methods = { path = "transfer_methods" }
|
transfer-methods = { path = "transfer_methods" }
|
||||||
outer-methods = { path = "outer_methods" }
|
outer-methods = { path = "outer_methods" }
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "toy-example-core"
|
name = "core"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
risc0-zkvm = "2.0.2"
|
risc0-zkvm = "2.0.2"
|
||||||
serde = { version = "1.0", default-features = false }
|
serde = { version = "1.0", default-features = false }
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
use nssa::program::TransferProgram;
|
use nssa::program::TransferProgram;
|
||||||
use outer_methods::OUTER_ID;
|
use outer_methods::OUTER_ID;
|
||||||
use sparse_merkle_tree::SparseMerkleTree;
|
use sparse_merkle_tree::SparseMerkleTree;
|
||||||
use toy_example_core::{
|
use core::{
|
||||||
account::Account,
|
account::Account,
|
||||||
bytes_to_words,
|
bytes_to_words,
|
||||||
input::InputVisibiility,
|
input::InputVisibiility,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
use risc0_zkvm::{default_executor, ExecutorEnv};
|
use risc0_zkvm::{default_executor, ExecutorEnv};
|
||||||
use toy_example_core::account::Account;
|
use core::account::Account;
|
||||||
use transfer_methods::TRANSFER_ELF;
|
use transfer_methods::TRANSFER_ELF;
|
||||||
|
|
||||||
use nssa;
|
use nssa;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "toy_example"
|
name = "outer"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
@ -7,5 +7,5 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
risc0-zkvm = { version = "2.2.0", default-features = false, features = ['std'] }
|
risc0-zkvm = { version = "2.2.0", default-features = false, features = ['std'] }
|
||||||
toy-example-core = {path = "../../core" }
|
core = {path = "../../core" }
|
||||||
transfer-methods = {path = "../../transfer_methods"}
|
transfer-methods = {path = "../../transfer_methods"}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
use risc0_zkvm::{guest::env, serde::to_vec};
|
use risc0_zkvm::{guest::env, serde::to_vec};
|
||||||
use toy_example_core::{
|
use core::{
|
||||||
account::Account, compute_nullifier, hash, input::InputVisibiility, is_in_tree, types::Nonce,
|
account::Account, compute_nullifier, hash, input::InputVisibiility, is_in_tree, types::Nonce,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
use outer_methods::{OUTER_ELF, OUTER_ID};
|
use core::{
|
||||||
use program::Program;
|
|
||||||
use rand::{rngs::OsRng, Rng};
|
|
||||||
use risc0_zkvm::{default_executor, default_prover, ExecutorEnv, ExecutorEnvBuilder, Receipt};
|
|
||||||
use toy_example_core::{
|
|
||||||
account::Account,
|
account::Account,
|
||||||
input::InputVisibiility,
|
input::InputVisibiility,
|
||||||
types::{Commitment, Nonce, Nullifier},
|
types::{Commitment, Nonce, Nullifier},
|
||||||
};
|
};
|
||||||
|
use outer_methods::{OUTER_ELF, OUTER_ID};
|
||||||
|
use program::Program;
|
||||||
|
use rand::{rngs::OsRng, Rng};
|
||||||
|
use risc0_zkvm::{default_executor, default_prover, ExecutorEnv, ExecutorEnvBuilder, Receipt};
|
||||||
|
|
||||||
pub mod program;
|
pub mod program;
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "toy_example"
|
name = "transfer"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
@ -7,4 +7,4 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
risc0-zkvm = { version = "2.2.0", default-features = false, features = ['std'] }
|
risc0-zkvm = { version = "2.2.0", default-features = false, features = ['std'] }
|
||||||
toy-example-core = {path = "../../core" }
|
core = { path = "../../core" }
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
use risc0_zkvm::{guest::env, sha::{Impl, Sha256}, serde::to_vec};
|
use core::account::Account;
|
||||||
use toy_example_core::account::Account;
|
use risc0_zkvm::{
|
||||||
|
guest::env,
|
||||||
|
serde::to_vec,
|
||||||
|
sha::{Impl, Sha256},
|
||||||
|
};
|
||||||
|
|
||||||
/// A transfer of balance program.
|
/// A transfer of balance program.
|
||||||
/// To be used both in public and private contexts.
|
/// To be used both in public and private contexts.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user