pub trait SparkSignerFrost {
// Required methods
fn new_frost_signing_noncepair(
&self,
) -> Result<SigningCommitments, SparkSdkError>;
fn sensitive_expose_nonces_from_commitments<T>(
&self,
signing_commitments: &T,
) -> Result<SigningNonces, SparkSdkError>
where T: AsRef<[u8]>;
fn sensitive_create_if_not_found_expose_nonces_from_commitments(
&self,
signing_commitments: Option<&[u8]>,
) -> Result<SigningNonces, SparkSdkError>;
}
Required Methods§
Sourcefn new_frost_signing_noncepair(
&self,
) -> Result<SigningCommitments, SparkSdkError>
fn new_frost_signing_noncepair( &self, ) -> Result<SigningCommitments, SparkSdkError>
Generates a (commitments, nonces) pair for a FROST signing round. Stores the pair in the signer space.
§Returns
The FROST nonces
Sourcefn sensitive_expose_nonces_from_commitments<T>(
&self,
signing_commitments: &T,
) -> Result<SigningNonces, SparkSdkError>
fn sensitive_expose_nonces_from_commitments<T>( &self, signing_commitments: &T, ) -> Result<SigningNonces, SparkSdkError>
Exposes the nonces from the commitments. This is a highly sensitive operation from a security perspective because it reveals confidential material. Use it only when absolutely necessary, and handle the returned nonces with caution.
§Returns
The FROST nonces for the given commitments
Sourcefn sensitive_create_if_not_found_expose_nonces_from_commitments(
&self,
signing_commitments: Option<&[u8]>,
) -> Result<SigningNonces, SparkSdkError>
fn sensitive_create_if_not_found_expose_nonces_from_commitments( &self, signing_commitments: Option<&[u8]>, ) -> Result<SigningNonces, SparkSdkError>
Same as sensitive_expose_nonces_from_commitments
, but if the commitments are not found, it generates them.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.