unused imports

This commit is contained in:
Sergio Chouhy 2025-07-18 18:09:55 -03:00
parent b128e81b19
commit f696c5a452
3 changed files with 3 additions and 5 deletions

View File

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

View File

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

View File

@ -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<Account> = env::read();
let input_accounts: Vec<Account> = env::read();
// Read claimed preimage
let preimage: Vec<u32> = env::read();