From fa1039890f5cf000143fb2f3b224b3e78719f152 Mon Sep 17 00:00:00 2001 From: John Guibas Date: Mon, 18 Sep 2023 18:19:04 -0700 Subject: [PATCH] feat: init_unsafe in builder --- 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 d24ca226e..2c9a81a4f 100644 --- a/plonky2x/src/frontend/builder/mod.rs +++ b/plonky2x/src/frontend/builder/mod.rs @@ -168,6 +168,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)