mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-02-17 11:43:06 +00:00
unused imports
This commit is contained in:
parent
b128e81b19
commit
f696c5a452
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user