rename to from_bytes

This commit is contained in:
Dmitriy Ryajov 2024-01-20 15:30:13 -06:00
parent 2bb54b79e7
commit 937f15269a
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -35,7 +35,7 @@ impl<E: Pairing> CircomConfig<E> {
})
}
pub fn new_from_bytes(wtns: &[u8], r1cs: &[u8]) -> Result<Self> {
pub fn from_bytes(wtns: &[u8], r1cs: &[u8]) -> Result<Self> {
let wtns = WitnessCalculator::from_bytes(wtns).unwrap();
let r1cs = R1CSFile::new(Cursor::new(r1cs))?.into();
Ok(Self {