Skip to content

Commit

Permalink
fix: build in zk_prover; removed csv & csv_parser; re-exports Entry a…
Browse files Browse the repository at this point in the history
…nd MerkleSumTree
  • Loading branch information
sifnoc committed Nov 8, 2023
1 parent 2f14b36 commit 8b44b2f
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 140 deletions.
3 changes: 0 additions & 3 deletions backend/examples/summa_solvency_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ 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 Down
3 changes: 0 additions & 3 deletions backend/src/apis/csv/assets.csv

This file was deleted.

3 changes: 0 additions & 3 deletions backend/src/apis/csv/signatures.csv

This file was deleted.

129 changes: 0 additions & 129 deletions backend/src/apis/csv_parser.rs

This file was deleted.

1 change: 0 additions & 1 deletion backend/src/apis/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod address_ownership;
pub mod csv_parser;
pub mod round;
2 changes: 2 additions & 0 deletions backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ pub mod apis;
pub mod contracts;
pub mod sample_data;
pub mod tests;
pub use merkle_sum_tree::{Entry, MerkleSumTree};
use summa_solvency::merkle_sum_tree;
2 changes: 1 addition & 1 deletion zk_prover/src/circuits/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ mod test {
MerkleSumTree::<N_ASSETS, N_BYTES>::new("src/merkle_sum_tree/csv/entry_16.csv")
.unwrap();

let circuit = SolvencyCircuit::<N_ASSETS, N_BYTES>::init(merkle_sum_tree, asset_sums);
let circuit = SolvencyCircuit::<N_ASSETS, N_BYTES>::init(&merkle_sum_tree, asset_sums);

let root =
BitMapBackend::new("prints/solvency-layout.png", (2048, 32768)).into_drawing_area();
Expand Down

0 comments on commit 8b44b2f

Please sign in to comment.