mirror of https://github.com/zcash/orchard.git
poseidon: Remove `M: SpongeMode` from `PhantomData`
`M` was at one point only used as a type marker, but now it stores per-mode state. Co-authored-by: ying tong <yingtong@z.cash>
This commit is contained in:
parent
423006b905
commit
a64e2d64a8
|
@ -135,7 +135,7 @@ pub struct Sponge<
|
|||
chip: PoseidonChip,
|
||||
mode: M,
|
||||
state: State<PoseidonChip::Word, T>,
|
||||
_marker: PhantomData<(M, D)>,
|
||||
_marker: PhantomData<D>,
|
||||
}
|
||||
|
||||
impl<
|
||||
|
|
|
@ -186,7 +186,7 @@ pub(crate) struct Sponge<
|
|||
state: State<F, T>,
|
||||
mds_matrix: Mds<F, T>,
|
||||
round_constants: Vec<[F; T]>,
|
||||
_marker: PhantomData<(S, M)>,
|
||||
_marker: PhantomData<S>,
|
||||
}
|
||||
|
||||
impl<F: FieldExt, S: Spec<F, T, RATE>, const T: usize, const RATE: usize>
|
||||
|
|
Loading…
Reference in New Issue