mirror of
https://github.com/arnaucube/plonky2-u32.git
synced 2026-02-10 05:06:42 +01:00
some changes to get unit tests to pass
This commit is contained in:
@@ -10,7 +10,7 @@ edition = "2021"
|
||||
anyhow = { version = "1.0.40", default-features = false }
|
||||
itertools = { version = "0.10.0", default-features = false }
|
||||
num = { version = "0.4", default-features = false }
|
||||
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git", default-features = false }
|
||||
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git" }
|
||||
|
||||
[dev-dependencies]
|
||||
plonky2 = { git = "https://github.com/mir-protocol/plonky2.git", default-features = false, features = ["gate_testing"] }
|
||||
|
||||
@@ -92,7 +92,7 @@ impl<F: RichField + Extendable<D>, const D: usize> Gate<F, D> for U32AddManyGate
|
||||
}
|
||||
|
||||
fn serialize(&self, dst: &mut Vec<u8>) -> IoResult<()> {
|
||||
dst.write_usize(self.num_addends);
|
||||
dst.write_usize(self.num_addends)?;
|
||||
dst.write_usize(self.num_ops)
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ impl WriteU32 for Vec<u8> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
pub trait ReadU32 {
|
||||
fn read_target_u32(&mut self) -> IoResult<U32Target>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user