mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-01-02 13:23:08 +00:00
fix
This commit is contained in:
parent
f696c5a452
commit
fe7727a93c
@ -1,12 +1,10 @@
|
||||
use core::{
|
||||
account::Account,
|
||||
bytes_to_words, hash,
|
||||
types::{Address, Commitment, Key, Nullifier},
|
||||
bytes_to_words,
|
||||
types::Address,
|
||||
visibility::InputVisibiility,
|
||||
};
|
||||
|
||||
use nssa::program::{PinataProgram, TransferProgram};
|
||||
use risc0_zkvm::Receipt;
|
||||
use nssa::program::PinataProgram;
|
||||
|
||||
use crate::mocked_components::sequencer::{print_accounts, MockedSequencer};
|
||||
use crate::mocked_components::{client::MockedClient, USER_CLIENTS};
|
||||
@ -60,7 +58,7 @@ fn main() {
|
||||
// All of this is executed locally by the sender
|
||||
let receiver_addr = USER_CLIENTS[1].user_address();
|
||||
let pinata_account = sequencer.get_account(&[0xcafe; 8]).unwrap();
|
||||
let mut receiver_account = MockedClient::fresh_account_for_mint(receiver_addr);
|
||||
let receiver_account = MockedClient::fresh_account_for_mint(receiver_addr);
|
||||
let visibilities = [InputVisibiility::Public, InputVisibiility::Private(None)];
|
||||
let preimage = bytes_to_words(b"NSSA Selective privacy is great!").to_vec();
|
||||
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
use crate::mocked_components::sequencer::MockedSequencer;
|
||||
use core::{
|
||||
account::Account,
|
||||
types::{Address, Commitment, Key, Nullifier},
|
||||
types::{Address, Key},
|
||||
visibility::InputVisibiility,
|
||||
};
|
||||
use nssa::program::TransferProgram;
|
||||
|
||||
pub mod transfer_deshielded;
|
||||
pub mod transfer_private;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use core::account::Account;
|
||||
use core::types::{Address, Commitment, Key, Nullifier};
|
||||
use core::types::Address;
|
||||
use core::visibility::InputVisibiility;
|
||||
|
||||
use nssa::program::TransferProgram;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use core::account::Account;
|
||||
use core::types::{Address, Commitment, Key, Nullifier};
|
||||
use core::types::Address;
|
||||
use core::visibility::InputVisibiility;
|
||||
|
||||
use nssa::program::TransferProgram;
|
||||
@ -22,7 +22,7 @@ impl MockedClient {
|
||||
let sender_commitment_auth_path = sequencer.get_authentication_path_for(&owned_private_account.commitment());
|
||||
|
||||
// Create a new default private account for the recipient
|
||||
let mut receiver_account = Self::fresh_account_for_mint(*to_address);
|
||||
let receiver_account = Self::fresh_account_for_mint(*to_address);
|
||||
|
||||
// Set visibilities. Both private accounts.
|
||||
let visibilities = vec![
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use core::account::Account;
|
||||
use core::types::{Address, Commitment, Key, Nullifier};
|
||||
use core::types::Address;
|
||||
use core::visibility::InputVisibiility;
|
||||
|
||||
use nssa::program::TransferProgram;
|
||||
@ -22,7 +22,7 @@ impl MockedClient {
|
||||
let from_account = sequencer.get_account(&self.user_address()).ok_or(())?;
|
||||
|
||||
// Create a new default private account for the receiver
|
||||
let mut to_account = Self::fresh_account_for_mint(*to_address);
|
||||
let to_account = Self::fresh_account_for_mint(*to_address);
|
||||
|
||||
// Set input visibilities
|
||||
// First is the public account of the sender. Second is the private account minted in this
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
use core::types::Key;
|
||||
|
||||
use crate::mocked_components::client::MockedClient;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use core::{
|
||||
account::Account,
|
||||
bytes_to_words,
|
||||
types::{Address, AuthenticationPath, Commitment, Key, Nullifier, ProgramId},
|
||||
types::{Address, AuthenticationPath, Commitment, Nullifier, ProgramId},
|
||||
};
|
||||
use std::collections::{BTreeMap, HashSet};
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ use core::{
|
||||
visibility::InputVisibiility,
|
||||
};
|
||||
use nssa::program::TransferMultipleProgram;
|
||||
use program_methods::OUTER_ID;
|
||||
use sparse_merkle_tree::SparseMerkleTree;
|
||||
|
||||
/// A private execution of the TransferMultiple function.
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
use core::account::Account;
|
||||
use risc0_zkvm::{default_executor, ExecutorEnv};
|
||||
|
||||
use nssa;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user