Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
avorylli authored Dec 31, 2024
1 parent 8eaad8c commit f29e639
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions commitment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ use ark_std::{borrow::Borrow, fmt::Debug, hash::Hash, UniformRand};
///
/// Intended as the return type for verification of proofs, signatures, etc.
/// Recommended for use in the nested [`Result`] pattern: see <https://sled.rs/errors>.
///
/// # Returns
/// - `Ok(())` - Verification passed successfully
/// - `Err(())` - Verification failed
///
/// This type is designed to be more explicit than a simple boolean,
/// forcing the caller to handle both success and failure cases.
type VerificationResult = Result<(), ()>;

pub trait CommitmentScheme {
Expand Down

0 comments on commit f29e639

Please sign in to comment.