From e1f7148b2b585a16cddf3b26605f2ad5114f36c4 Mon Sep 17 00:00:00 2001 From: John Guibas Date: Tue, 19 Sep 2023 10:03:33 -0700 Subject: [PATCH] feat: init_unsafe in builder (#176) --- plonky2x/src/frontend/builder/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plonky2x/src/frontend/builder/mod.rs b/plonky2x/src/frontend/builder/mod.rs index c79b76d94..ae4b5d48b 100644 --- a/plonky2x/src/frontend/builder/mod.rs +++ b/plonky2x/src/frontend/builder/mod.rs @@ -172,6 +172,11 @@ impl, const D: usize> CircuitBuilder { V::init(self) } + /// Initializes a variable with a value from the circuit input without any validity checks. + pub fn init_unsafe(&mut self) -> V { + V::init_unsafe(self) + } + /// Initializes a variable with a constant value in the circuit. pub fn constant(&mut self, value: V::ValueType) -> V { V::constant(self, value)