mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 22:33:06 +00:00
fix: address review comments
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
This commit is contained in:
parent
9431fd7448
commit
289498e854
@ -18,6 +18,7 @@ std = ["anyhow/std", "rand/std"]
|
||||
timing = ["std"]
|
||||
|
||||
[dependencies]
|
||||
ahash = { version = "0.8.2", default-features = false, features = ["compile-time-rng"] }
|
||||
anyhow = { version = "1.0.40", default-features = false }
|
||||
derivative = { version = "2.2.0", default-features = false, features = ["use_core"] }
|
||||
hashbrown = { version = "0.12.3", default-features = false, features = ["ahash", "serde"] }
|
||||
|
||||
@ -105,7 +105,9 @@ impl<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, const D: usize>
|
||||
|
||||
pub fn to_bytes(&self) -> Vec<u8> {
|
||||
let mut buffer = Vec::new();
|
||||
let _ = buffer.write_proof_with_public_inputs(self);
|
||||
buffer
|
||||
.write_proof_with_public_inputs(self)
|
||||
.expect("Writing to a byte-vector cannot fail.");
|
||||
buffer
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user