pub enum OpretFirst {}
Expand description
Marker non-instantiable enum defining LNPBP-12 taproot OP_RETURN (opret
) protocol.
Trait Implementations§
Source§impl EmbedCommitProof<Commitment, ScriptPubkey, OpretFirst> for OpretProof
impl EmbedCommitProof<Commitment, ScriptPubkey, OpretFirst> for OpretProof
Source§fn restore_original_container(
&self,
commit_container: &ScriptPubkey,
) -> Result<ScriptPubkey, EmbedVerifyError<OpretError>>
fn restore_original_container( &self, commit_container: &ScriptPubkey, ) -> Result<ScriptPubkey, EmbedVerifyError<OpretError>>
Restores original container before the commitment from the proof data
and a container containing embedded commitment. Read more
Source§impl EmbedCommitProof<Commitment, Tx, OpretFirst> for OpretProof
impl EmbedCommitProof<Commitment, Tx, OpretFirst> for OpretProof
Source§fn restore_original_container(
&self,
commit_container: &Tx,
) -> Result<Tx, EmbedVerifyError<OpretError>>
fn restore_original_container( &self, commit_container: &Tx, ) -> Result<Tx, EmbedVerifyError<OpretError>>
Restores original container before the commitment from the proof data
and a container containing embedded commitment. Read more
Source§impl EmbedCommitProof<Commitment, TxOut, OpretFirst> for OpretProof
impl EmbedCommitProof<Commitment, TxOut, OpretFirst> for OpretProof
Source§fn restore_original_container(
&self,
commit_container: &TxOut,
) -> Result<TxOut, EmbedVerifyError<OpretError>>
fn restore_original_container( &self, commit_container: &TxOut, ) -> Result<TxOut, EmbedVerifyError<OpretError>>
Restores original container before the commitment from the proof data
and a container containing embedded commitment. Read more
Source§impl EmbedCommitVerify<Commitment, OpretFirst> for ScriptPubkey
impl EmbedCommitVerify<Commitment, OpretFirst> for ScriptPubkey
Source§type Proof = OpretProof
type Proof = OpretProof
The proof of the commitment produced as a result of
Self::embed_commit
procedure. This proof is later used
for verification.Source§type CommitError = OpretError
type CommitError = OpretError
Error type that may be reported during
Self::embed_commit
procedure.
It may also be returned from Self::verify
(wrapped into
EmbedVerifyError
in case the proof data are invalid and the
commitment can’t be re-created).Source§fn embed_commit(
&mut self,
msg: &Commitment,
) -> Result<Self::Proof, Self::CommitError>
fn embed_commit( &mut self, msg: &Commitment, ) -> Result<Self::Proof, Self::CommitError>
Creates a commitment to a message and embeds it into the provided
container (
self
) by mutating it and returning commitment proof. Read moreSource§impl EmbedCommitVerify<Commitment, OpretFirst> for Tx
impl EmbedCommitVerify<Commitment, OpretFirst> for Tx
Source§type Proof = OpretProof
type Proof = OpretProof
The proof of the commitment produced as a result of
Self::embed_commit
procedure. This proof is later used
for verification.Source§type CommitError = OpretError
type CommitError = OpretError
Error type that may be reported during
Self::embed_commit
procedure.
It may also be returned from Self::verify
(wrapped into
EmbedVerifyError
in case the proof data are invalid and the
commitment can’t be re-created).Source§fn embed_commit(
&mut self,
msg: &Commitment,
) -> Result<Self::Proof, Self::CommitError>
fn embed_commit( &mut self, msg: &Commitment, ) -> Result<Self::Proof, Self::CommitError>
Creates a commitment to a message and embeds it into the provided
container (
self
) by mutating it and returning commitment proof. Read moreSource§impl EmbedCommitVerify<Commitment, OpretFirst> for TxOut
impl EmbedCommitVerify<Commitment, OpretFirst> for TxOut
Source§type Proof = OpretProof
type Proof = OpretProof
The proof of the commitment produced as a result of
Self::embed_commit
procedure. This proof is later used
for verification.Source§type CommitError = OpretError
type CommitError = OpretError
Error type that may be reported during
Self::embed_commit
procedure.
It may also be returned from Self::verify
(wrapped into
EmbedVerifyError
in case the proof data are invalid and the
commitment can’t be re-created).Source§fn embed_commit(
&mut self,
msg: &Commitment,
) -> Result<Self::Proof, Self::CommitError>
fn embed_commit( &mut self, msg: &Commitment, ) -> Result<Self::Proof, Self::CommitError>
Creates a commitment to a message and embeds it into the provided
container (
self
) by mutating it and returning commitment proof. Read moreimpl CommitmentProtocol for OpretFirst
Auto Trait Implementations§
impl Freeze for OpretFirst
impl RefUnwindSafe for OpretFirst
impl Send for OpretFirst
impl Sync for OpretFirst
impl Unpin for OpretFirst
impl UnwindSafe for OpretFirst
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more