pub trait EmbedCommitProof<Msg, Container, Protocol>where
Self: Sized + VerifyEq,
Container: EmbedCommitVerify<Msg, Protocol>,
Protocol: CommitmentProtocol,{
// Required method
fn restore_original_container(
&self,
commit_container: &Container,
) -> Result<Container, EmbedVerifyError<Container::CommitError>>;
}
Expand description
Proofs produced by EmbedCommitVerify::embed_commit
procedure.
Required Methods§
Sourcefn restore_original_container(
&self,
commit_container: &Container,
) -> Result<Container, EmbedVerifyError<Container::CommitError>>
fn restore_original_container( &self, commit_container: &Container, ) -> Result<Container, EmbedVerifyError<Container::CommitError>>
Restores original container before the commitment from the proof data and a container containing embedded commitment.
§Error
If the container can’t be restored from the proof returns
EmbedVerifyError::InvalidProof
.
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.