From 937f15269a33397dc447085693b161513ee5ac3b Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sat, 20 Jan 2024 15:30:13 -0600 Subject: [PATCH] rename to `from_bytes` --- src/circom/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/circom/builder.rs b/src/circom/builder.rs index b71378d..41c90b0 100644 --- a/src/circom/builder.rs +++ b/src/circom/builder.rs @@ -35,7 +35,7 @@ impl CircomConfig { }) } - pub fn new_from_bytes(wtns: &[u8], r1cs: &[u8]) -> Result { + pub fn from_bytes(wtns: &[u8], r1cs: &[u8]) -> Result { let wtns = WitnessCalculator::from_bytes(wtns).unwrap(); let r1cs = R1CSFile::new(Cursor::new(r1cs))?.into(); Ok(Self {