Enum OpretFirst

Source
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

Source§

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

Source§

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

Source§

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

Source§

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

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>

Creates a commitment to a message and embeds it into the provided container (self) by mutating it and returning commitment proof. Read more
Source§

fn verify( &self, msg: &Msg, proof: &Self::Proof, ) -> Result<(), EmbedVerifyError<Self::CommitError>>
where Self: VerifyEq, Self::Proof: VerifyEq,

Verifies commitment with commitment proof against the message. Read more
Source§

impl EmbedCommitVerify<Commitment, OpretFirst> for Tx

Source§

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

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>

Creates a commitment to a message and embeds it into the provided container (self) by mutating it and returning commitment proof. Read more
Source§

fn verify( &self, msg: &Msg, proof: &Self::Proof, ) -> Result<(), EmbedVerifyError<Self::CommitError>>
where Self: VerifyEq, Self::Proof: VerifyEq,

Verifies commitment with commitment proof against the message. Read more
Source§

impl EmbedCommitVerify<Commitment, OpretFirst> for TxOut

Source§

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

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>

Creates a commitment to a message and embeds it into the provided container (self) by mutating it and returning commitment proof. Read more
Source§

fn verify( &self, msg: &Msg, proof: &Self::Proof, ) -> Result<(), EmbedVerifyError<Self::CommitError>>
where Self: VerifyEq, Self::Proof: VerifyEq,

Verifies commitment with commitment proof against the message. Read more
Source§

impl CommitmentProtocol for OpretFirst

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V