pub struct OpretProof(/* private fields */);
Expand description
Empty type for use inside [crate::Anchor
] for opret commitment scheme.
Implementations§
Source§impl OpretProof
impl OpretProof
Sourcepub fn verify(
&self,
msg: &Commitment,
tx: &Tx,
) -> Result<(), EmbedVerifyError<OpretError>>
pub fn verify( &self, msg: &Commitment, tx: &Tx, ) -> Result<(), EmbedVerifyError<OpretError>>
Verifies opret commitment againsy the proof.
Trait Implementations§
Source§impl Clone for OpretProof
impl Clone for OpretProof
Source§fn clone(&self) -> OpretProof
fn clone(&self) -> OpretProof
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpretProof
impl Debug for OpretProof
Source§impl Default for OpretProof
impl Default for OpretProof
Source§fn default() -> OpretProof
fn default() -> OpretProof
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpretProof
impl<'de> Deserialize<'de> for OpretProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 Hash for OpretProof
impl Hash for OpretProof
Source§impl Ord for OpretProof
impl Ord for OpretProof
Source§fn cmp(&self, other: &OpretProof) -> Ordering
fn cmp(&self, other: &OpretProof) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OpretProof
impl PartialEq for OpretProof
Source§impl PartialOrd for OpretProof
impl PartialOrd for OpretProof
Source§impl Serialize for OpretProof
impl Serialize for OpretProof
Source§impl StrictDecode for OpretProof
impl StrictDecode for OpretProof
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDeserialize for OpretProof
impl StrictDeserialize for OpretProof
fn from_strict_serialized<const MAX: usize>( ast_data: Confined<Vec<u8>, 0, MAX>, ) -> Result<Self, DeserializeError>
fn strict_deserialize<const MAX: usize>( read: impl Read, ) -> Result<Self, DeserializeError>
fn strict_deserialize_from_file<const MAX: usize>( path: impl AsRef<Path>, ) -> Result<Self, DeserializeError>
Source§impl StrictEncode for OpretProof
impl StrictEncode for OpretProof
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSerialize for OpretProof
impl StrictSerialize for OpretProof
fn strict_serialized_len<const MAX: usize>(&self) -> Result<usize, Error>
fn to_strict_serialized<const MAX: usize>( &self, ) -> Result<Confined<Vec<u8>, 0, MAX>, SerializeError>
fn strict_serialize<const MAX: usize>( &self, write: impl Write, ) -> Result<(), Error>
fn strict_serialize_to_file<const MAX: usize>( &self, path: impl AsRef<Path>, ) -> Result<(), SerializeError>
Source§impl StrictTuple for OpretProof
impl StrictTuple for OpretProof
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for OpretProof
impl StrictType for OpretProof
const STRICT_LIB_NAME: &'static str = LIB_NAME_BPCORE
fn strict_name() -> Option<TypeName>
impl Copy for OpretProof
impl Eq for OpretProof
impl StrictProduct for OpretProof
impl StructuralPartialEq for OpretProof
Auto Trait Implementations§
impl Freeze for OpretProof
impl RefUnwindSafe for OpretProof
impl Send for OpretProof
impl Sync for OpretProof
impl Unpin for OpretProof
impl UnwindSafe for OpretProof
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.