Skip to content

Commit

Permalink
Merge branch 'master' into enrico-tree-trait
Browse files Browse the repository at this point in the history
  • Loading branch information
sifnoc committed Nov 8, 2023
2 parents c80e964 + 7489c53 commit 23c8d8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions backend/examples/summa_solvency_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use summa_backend::{
round::{MstInclusionProof, Round},
},
contracts::signer::{AddressInput, SummaSigner},
sample_entries::*,
sample_entries::get_sample_entries,
tests::initialize_test_env,
};
use summa_solvency::merkle_sum_tree::{utils::generate_leaf_hash, MerkleSumTree};
Expand All @@ -25,6 +25,9 @@ async fn main() -> Result<(), Box<dyn Error>> {

// 1. Submit ownership proof
//
// Each CEX prepares its own `signature` CSV file.
let signature_csv_path = "src/apis/csv/signatures.csv";

// The signer instance would be shared with `address_ownership` and `round` instances
//
// Using AddressInput::Address to directly provide the summa_contract's address.
Expand All @@ -37,8 +40,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
)
.await?;

// Each CEX prepares its own `signature` CSV file.
let signature_csv_path = "src/apis/csv/signatures.csv";
let mut address_ownership_client = AddressOwnership::new(&signer, signature_csv_path).unwrap();

// Dispatch the proof of address ownership.
Expand Down
2 changes: 1 addition & 1 deletion zk_prover/src/circuits/solvency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::chips::merkle_sum_tree::{MerkleSumTreeChip, MerkleSumTreeConfig};
use crate::chips::poseidon::hash::{PoseidonChip, PoseidonConfig};
use crate::chips::poseidon::poseidon_spec::PoseidonSpec;
use crate::circuits::traits::CircuitBase;
use crate::merkle_sum_tree::{MerkleSumTree, Tree};
use crate::merkle_sum_tree::Tree;
use halo2_proofs::circuit::{AssignedCell, Layouter, SimpleFloorPlanner, Value};
use halo2_proofs::halo2curves::bn256::Fr as Fp;
use halo2_proofs::plonk::{
Expand Down

0 comments on commit 23c8d8e

Please sign in to comment.