From 181ddf93ab1934691749672340b1704629864454 Mon Sep 17 00:00:00 2001 From: wborgeaud Date: Mon, 23 Aug 2021 11:06:33 +0200 Subject: [PATCH] Merge two impls --- src/plonk/permutation_argument.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plonk/permutation_argument.rs b/src/plonk/permutation_argument.rs index 384ac9e1..3d7d68b8 100644 --- a/src/plonk/permutation_argument.rs +++ b/src/plonk/permutation_argument.rs @@ -82,8 +82,7 @@ impl PartitionWitness { self.forest[x.index] = x; self.forest[y.index] = y; } -} -impl PartitionWitness { + pub fn wire_partition(&mut self) -> WirePartition { let mut partition = HashMap::<_, Vec<_>>::new(); for gate in 0..self.degree {