pub fn check_is_valid(
        &self,
        pubkey: &Public,
        lambda_i: Scalar,
        commitment: jubjub::ExtendedPoint,
        challenge: Scalar,
    ) -> Result<(), &'static str> {
        if (SpendAuth::basepoint() * self.signature.0)
            != (commitment + pubkey.0 * challenge * lambda_i)
        {
            return Err("Invalid signature share");
        }
        Ok(())
    }
/// Tests if a signature share issued by a participant is valid before
/// aggregating it into a final joint signature to publish.
Tests if a signature share issued by a participant is valid before
aggregating it into a final joint signature to publish.
Tests if a signature share issued by a participant is valid before aggregating it into a final joint signature to publish .
pub fn check_is_valid(
        &self,
        pubkey: &Public,
        lambda_i: Scalar,
        commitment: jubjub::ExtendedPoint,
        challenge: Scalar,
    ) -> Result<(), &'static str> {
        if (SpendAuth::basepoint() * self.signature.0)
            != (commitment + pubkey.0 * challenge * lambda_i)
        {
            return Err("Invalid signature share");
        }
        Ok(())
    }
pub fn check_is_valid ( & self , pubkey : & Public , lambda_i : Scalar , commitment : jubjub :: ExtendedPoint , challenge : Scalar , ) -> Result < ( ) , & ' static str > { if ( SpendAuth :: basepoint ( ) * self . signature . 0 ) != ( commitment + pubkey . 0 * challenge * lambda_i ) { return Err ( " " ) ; } Ok ( ( ) ) }
Tests if a signature share issued by a participant is valid before
aggregating it into a final joint signature to publish.
Tests if a signature share issued by a participant is valid before aggregating it into a final joint signature to publish .
&self
pubkey
&Public
lambda_i
Scalar
commitment
jubjub::ExtendedPoint
challenge
Scalar