mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-01-02 13:23:08 +00:00
rename crates
This commit is contained in:
parent
c051f4e9ea
commit
9e153b9ebd
@ -5,7 +5,7 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
risc0-zkvm = "2.2"
|
||||
toy-example-core = { path = "core" }
|
||||
core = { path = "core" }
|
||||
transfer-methods = { path = "transfer_methods" }
|
||||
outer-methods = { path = "outer_methods" }
|
||||
serde = "1.0"
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
[package]
|
||||
name = "toy-example-core"
|
||||
name = "core"
|
||||
version = "0.12.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
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 outer_methods::OUTER_ID;
|
||||
use sparse_merkle_tree::SparseMerkleTree;
|
||||
use toy_example_core::{
|
||||
use core::{
|
||||
account::Account,
|
||||
bytes_to_words,
|
||||
input::InputVisibiility,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use risc0_zkvm::{default_executor, ExecutorEnv};
|
||||
use toy_example_core::account::Account;
|
||||
use core::account::Account;
|
||||
use transfer_methods::TRANSFER_ELF;
|
||||
|
||||
use nssa;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "toy_example"
|
||||
name = "outer"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
@ -7,5 +7,5 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
risc0-zkvm = { version = "2.2.0", default-features = false, features = ['std'] }
|
||||
toy-example-core = {path = "../../core" }
|
||||
core = {path = "../../core" }
|
||||
transfer-methods = {path = "../../transfer_methods"}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
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,
|
||||
};
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
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};
|
||||
use toy_example_core::{
|
||||
use core::{
|
||||
account::Account,
|
||||
input::InputVisibiility,
|
||||
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;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "toy_example"
|
||||
name = "transfer"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
@ -7,4 +7,4 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
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 toy_example_core::account::Account;
|
||||
|
||||
use core::account::Account;
|
||||
use risc0_zkvm::{
|
||||
guest::env,
|
||||
serde::to_vec,
|
||||
sha::{Impl, Sha256},
|
||||
};
|
||||
|
||||
/// A transfer of balance program.
|
||||
/// To be used both in public and private contexts.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user