11//! Fiat-Shamir transformation for [`SigmaProtocol`]s.
22//!
3- //! This module defines [`NISigmaProtocol `], a generic non-interactive Sigma protocol wrapper,
3+ //! This module defines [`Nizk `], a generic non-interactive Sigma protocol wrapper,
44//! based on applying the Fiat-Shamir heuristic using a codec.
55//!
66//! It transforms an interactive [`SigmaProtocol`] into a non-interactive one,
@@ -26,7 +26,7 @@ type Transcript<P> = (
2626
2727/// A Fiat-Shamir transformation of a [`SigmaProtocol`] into a non-interactive proof.
2828///
29- /// [`NISigmaProtocol `] wraps an interactive Sigma protocol `P`
29+ /// [`Nizk `] wraps an interactive Sigma protocol `P`
3030/// and a hash-based codec `C`, to produce non-interactive proofs.
3131///
3232/// It manages the domain separation, codec reset,
@@ -36,7 +36,7 @@ type Transcript<P> = (
3636/// - `P`: the Sigma protocol implementation.
3737/// - `C`: the codec used for Fiat-Shamir.
3838#[ derive( Debug ) ]
39- pub struct NISigmaProtocol < P , C >
39+ pub struct Nizk < P , C >
4040where
4141 P : SigmaProtocol ,
4242 P :: Challenge : PartialEq ,
@@ -48,20 +48,20 @@ where
4848 pub interactive_proof : P ,
4949}
5050
51- impl < P , C > NISigmaProtocol < P , C >
51+ impl < P , C > Nizk < P , C >
5252where
5353 P : SigmaProtocol ,
5454 P :: Challenge : PartialEq ,
5555 C : Codec < Challenge = P :: Challenge > + Clone ,
5656{
57- /// Constructs a new [`NISigmaProtocol `] instance.
57+ /// Constructs a new [`Nizk `] instance.
5858 ///
5959 /// # Parameters
6060 /// - `iv`: Domain separation tag for the hash function (e.g., protocol name or context).
6161 /// - `instance`: An instance of the interactive Sigma protocol.
6262 ///
6363 /// # Returns
64- /// A new [`NISigmaProtocol `] that can generate and verify non-interactive proofs.
64+ /// A new [`Nizk `] that can generate and verify non-interactive proofs.
6565 pub fn new ( session_identifier : & [ u8 ] , interactive_proof : P ) -> Self {
6666 let hash_state = C :: new (
6767 interactive_proof. protocol_identifier ( ) . as_ref ( ) ,
@@ -233,7 +233,7 @@ where
233233 }
234234}
235235
236- impl < P , C > NISigmaProtocol < P , C >
236+ impl < P , C > Nizk < P , C >
237237where
238238 P : SigmaProtocol + SigmaProtocolSimulator ,
239239 P :: Challenge : PartialEq ,
0 commit comments