Skip to content

Commit

Permalink
renegade_contracts: verifier, darkpool: consolidate into multiverifie…
Browse files Browse the repository at this point in the history
…r contract
  • Loading branch information
akirillo committed Sep 1, 2023
1 parent 896afb2 commit ee3089a
Show file tree
Hide file tree
Showing 7 changed files with 328 additions and 531 deletions.
270 changes: 112 additions & 158 deletions src/darkpool.cairo

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/darkpool/types.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,16 @@ enum Circuit {
ValidMatchMpc: (),
ValidSettle: (),
}

impl CircuitIntoFelt of Into<Circuit, felt252> {
fn into(self: Circuit) -> felt252 {
match self {
Circuit::ValidWalletCreate(()) => 0,
Circuit::ValidWalletUpdate(()) => 1,
Circuit::ValidCommitments(()) => 2,
Circuit::ValidReblind(()) => 3,
Circuit::ValidMatchMpc(()) => 4,
Circuit::ValidSettle(()) => 5,
}
}
}
Loading

0 comments on commit ee3089a

Please sign in to comment.