Trait commit_verify::EmbedCommitProof
source · 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.
Object Safety§
This trait is not object safe.