pub trait EntryShareGenerator<S: PixSpec> {
type Error: Error + Send + Sync + 'static;
// Required methods
fn next_share(
&self,
pseudonym: &S::Pseudonym,
msg: &impl AsRef<[u8]>,
) -> Result<Option<GeneratedShare<S>>, Self::Error>;
fn new_ssa_commitment(
&self,
pseudonym: &S::Pseudonym,
ssa_index: SsaIndex,
) -> Result<SsaCommitment<S>, Self::Error>;
}Required Associated Types§
Required Methods§
Generate the next crate::PartialSsaShare for the given pseudonym and message msg.
IMPORTANT: Each msg MUST be unique for a given pseudonym.
Returns None if all polynomials for the given pseudonym have been used up.
This signals that a new SSA must be committed.
Sourcefn new_ssa_commitment(
&self,
pseudonym: &S::Pseudonym,
ssa_index: SsaIndex,
) -> Result<SsaCommitment<S>, Self::Error>
fn new_ssa_commitment( &self, pseudonym: &S::Pseudonym, ssa_index: SsaIndex, ) -> Result<SsaCommitment<S>, Self::Error>
Generates a new SSA commitment from the sender side, for the given pseudonym.
Returns the new random SSA-commitment and the corresponding SSA share verifier.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".