Function validate_share
Source pub fn validate_share(share: &VerifiableSecretShare) -> Result<(), String>
Expand description
Validates a verifiable share using its cryptographic proofs
§Arguments
share
- The verifiable share to validate
§Returns
Ok(()) if the share is valid, an error otherwise.
§Errors
Returns an error if:
- The proofs are invalid
- The share fails verification