rename crates

This commit is contained in:
Sergio Chouhy 2025-07-17 10:10:39 -03:00
parent c051f4e9ea
commit 9e153b9ebd
9 changed files with 22 additions and 18 deletions

View File

@ -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"

View File

@ -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 }

View File

@ -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,

View File

@ -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;

View File

@ -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"}

View File

@ -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,
};

View File

@ -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;

View File

@ -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" }

View File

@ -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.