Skip to content

Commit 2250511

Browse files
committed
fix: compatibility with 2021 toolchain.
1 parent 1f0d381 commit 2250511

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/fiat_shamir.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ type Transcript<P> = (
3838
#[derive(Debug)]
3939
pub struct NISigmaProtocol<P, C>
4040
where
41-
P: SigmaProtocol<Challenge: PartialEq>,
41+
P: SigmaProtocol,
42+
P::Challenge: PartialEq,
4243
C: Codec<Challenge = P::Challenge>,
4344
{
4445
/// Current codec state.
@@ -49,7 +50,8 @@ where
4950

5051
impl<P, C> NISigmaProtocol<P, C>
5152
where
52-
P: SigmaProtocol<Challenge: PartialEq>,
53+
P: SigmaProtocol,
54+
P::Challenge: PartialEq,
5355
C: Codec<Challenge = P::Challenge> + Clone,
5456
{
5557
/// Constructs a new [`NISigmaProtocol`] instance.
@@ -191,7 +193,8 @@ where
191193

192194
impl<P, C> NISigmaProtocol<P, C>
193195
where
194-
P: SigmaProtocol<Challenge: PartialEq>,
196+
P: SigmaProtocol,
197+
P::Challenge: PartialEq,
195198
C: Codec<Challenge = P::Challenge> + Clone,
196199
{
197200
/// Generates a compact serialized proof.

0 commit comments

Comments
 (0)