From f696c5a452b08674fd35cca746d4cff88c84bbbb Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Fri, 18 Jul 2025 18:09:55 -0300 Subject: [PATCH] unused imports --- risc0-selective-privacy-poc/core/src/account.rs | 2 +- risc0-selective-privacy-poc/core/src/lib.rs | 4 +--- .../program_methods/guest/src/bin/pinata.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/risc0-selective-privacy-poc/core/src/account.rs b/risc0-selective-privacy-poc/core/src/account.rs index fd0549a..edcbc44 100644 --- a/risc0-selective-privacy-poc/core/src/account.rs +++ b/risc0-selective-privacy-poc/core/src/account.rs @@ -2,7 +2,7 @@ use crate::{ hash, types::{Address, Commitment, Key, Nonce}, }; -use risc0_zkvm::{serde::to_vec, sha::Impl}; +use risc0_zkvm::serde::to_vec; use serde::{Deserialize, Serialize}; /// Account to be used both in public and private contexts diff --git a/risc0-selective-privacy-poc/core/src/lib.rs b/risc0-selective-privacy-poc/core/src/lib.rs index 57f40bc..7650de1 100644 --- a/risc0-selective-privacy-poc/core/src/lib.rs +++ b/risc0-selective-privacy-poc/core/src/lib.rs @@ -4,7 +4,6 @@ pub mod visibility; use crate::types::{AuthenticationPath, Commitment, Key, Nullifier}; use risc0_zkvm::sha::{Impl, Sha256}; -use serde::{Deserialize, Serialize}; pub fn hash(bytes: &[u32]) -> [u32; 8] { Impl::hash_words(bytes).as_words().try_into().unwrap() @@ -12,8 +11,7 @@ pub fn hash(bytes: &[u32]) -> [u32; 8] { pub fn is_in_tree(commitment: Commitment, path: &AuthenticationPath, root: [u32; 8]) -> bool { const HASH_ONE: [u32; 8] = [ - 789771595, 3310634292, 3140410939, 3820475020, 3591004369, 2777006897, 1021496535, - 2588247415, + 789771595, 3310634292, 3140410939, 3820475020, 3591004369, 2777006897, 1021496535, 2588247415, ]; let mut hash = HASH_ONE; diff --git a/risc0-selective-privacy-poc/program_methods/guest/src/bin/pinata.rs b/risc0-selective-privacy-poc/program_methods/guest/src/bin/pinata.rs index d864f81..48c5a50 100644 --- a/risc0-selective-privacy-poc/program_methods/guest/src/bin/pinata.rs +++ b/risc0-selective-privacy-poc/program_methods/guest/src/bin/pinata.rs @@ -12,7 +12,7 @@ const PINATA_PRIZE: u128 = 100; fn main() { // Read input accounts. // It is expected to receive only two accounts: [pinata_account, winner_account] - let mut input_accounts: Vec = env::read(); + let input_accounts: Vec = env::read(); // Read claimed preimage let preimage: Vec = env::read();