From adf245ef166e76e791368f92b052e92bf6703bc2 Mon Sep 17 00:00:00 2001 From: Hossein Moghaddas Date: Tue, 23 Jan 2024 01:26:41 +0100 Subject: [PATCH] Fix bug and update `Cargo.toml` --- Cargo.toml | 10 +++++----- src/sponge/absorb.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aa001515..2ef07709 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,8 +121,8 @@ ark-ec = { git = "https://github.com/arkworks-rs/algebra/" } ark-poly = { git = "https://github.com/arkworks-rs/algebra/" } ark-serialize = { git = "https://github.com/arkworks-rs/algebra/" } -ark-ed-on-bls12-377 = { git = "https://github.com/arkworks-rs/curves/" } -ark-ed-on-bls12-381 = { git = "https://github.com/arkworks-rs/curves/" } -ark-bls12-377 = { git = "https://github.com/arkworks-rs/curves/" } -ark-mnt4-298 = { git = "https://github.com/arkworks-rs/curves/" } -ark-mnt6-298 = { git = "https://github.com/arkworks-rs/curves/" } +ark-ed-on-bls12-377 = { git = "https://github.com/arkworks-rs/algebra/" } +ark-ed-on-bls12-381 = { git = "https://github.com/arkworks-rs/algebra/" } +ark-bls12-377 = { git = "https://github.com/arkworks-rs/algebra/" } +ark-mnt4-298 = { git = "https://github.com/arkworks-rs/algebra/" } +ark-mnt6-298 = { git = "https://github.com/arkworks-rs/algebra/" } diff --git a/src/sponge/absorb.rs b/src/sponge/absorb.rs index 5a8e49df..3827d428 100644 --- a/src/sponge/absorb.rs +++ b/src/sponge/absorb.rs @@ -154,7 +154,7 @@ impl, const N: usize> Absorb for Fp { self.serialize_compressed(dest).unwrap() } fn to_sponge_field_elements(&self, dest: &mut Vec) { - let _ = field_cast(&[*self], dest); + let _ = field_cast(&[*self], dest).unwrap(); } fn batch_to_sponge_field_elements(batch: &[Self], dest: &mut Vec) where