mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-25 09:03:09 +00:00
chore: remove derivative dependency as non-crucial
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
This commit is contained in:
parent
2520bd62c6
commit
65d106bc31
@ -18,10 +18,9 @@ std = ["anyhow/std", "rand/std"]
|
||||
timing = ["std"]
|
||||
|
||||
[dependencies]
|
||||
ahash = { version = "0.7.6", default-features = false, features = ["compile-time-rng"] }
|
||||
ahash = { version = "0.7.6", default-features = false, features = ["compile-time-rng"] } # NOTE: Be sure to keep this version the same as the dependency in `hashbrown`.
|
||||
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"] }
|
||||
hashbrown = { version = "0.12.3", default-features = false, features = ["ahash", "serde"] } # NOTE: When upgrading, see `ahash` dependency.
|
||||
itertools = { version = "0.10.0", default-features = false }
|
||||
keccak-hash = { version = "0.8.0", default-features = false }
|
||||
log = { version = "0.4.14", default-features = false }
|
||||
|
||||
@ -26,8 +26,7 @@ use crate::plonk::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase};
|
||||
/// This also has some extra features to make it suitable for efficiently verifying Merkle proofs.
|
||||
/// It has a flag which can be used to swap the first four inputs with the next four, for ordering
|
||||
/// sibling digests.
|
||||
#[derive(derivative::Derivative)]
|
||||
#[derivative(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct PoseidonGate<F: RichField + Extendable<D>, const D: usize>(PhantomData<F>);
|
||||
|
||||
impl<F: RichField + Extendable<D>, const D: usize> PoseidonGate<F, D> {
|
||||
|
||||
@ -21,8 +21,7 @@ use crate::plonk::circuit_builder::CircuitBuilder;
|
||||
use crate::plonk::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase};
|
||||
|
||||
/// Poseidon MDS Gate
|
||||
#[derive(derivative::Derivative)]
|
||||
#[derivative(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct PoseidonMdsGate<F: RichField + Extendable<D> + Poseidon, const D: usize>(PhantomData<F>);
|
||||
|
||||
impl<F: RichField + Extendable<D> + Poseidon, const D: usize> PoseidonMdsGate<F, D> {
|
||||
|
||||
@ -250,8 +250,7 @@ impl<F: Field> MatrixWitness<F> {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(derivative::Derivative)]
|
||||
#[derivative(Clone, Debug, Default(bound = ""))]
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct PartialWitness<F: Field> {
|
||||
pub(crate) target_values: HashMap<Target, F>,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user