From 614c4ae69f7831b7ef7b6940607a767be105f977 Mon Sep 17 00:00:00 2001 From: Emanuele Cesena Date: Fri, 10 Feb 2023 08:20:22 -0600 Subject: [PATCH] Make le_sum public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Methods like split_le are public. le_sum is the inverse map so useful to have it pub as well (at the very least, we’d like to access it). --- plonky2/src/gadgets/split_base.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plonky2/src/gadgets/split_base.rs b/plonky2/src/gadgets/split_base.rs index 5fbe8053..dd0edf5d 100644 --- a/plonky2/src/gadgets/split_base.rs +++ b/plonky2/src/gadgets/split_base.rs @@ -33,7 +33,7 @@ impl, const D: usize> CircuitBuilder { /// Takes an iterator of bits `(b_i)` and returns `sum b_i * 2^i`, i.e., /// the number with little-endian bit representation given by `bits`. - pub(crate) fn le_sum(&mut self, bits: impl Iterator>) -> Target { + pub fn le_sum(&mut self, bits: impl Iterator>) -> Target { let bits = bits.map(|b| *b.borrow()).collect_vec(); let num_bits = bits.len(); assert!(