[−][src]Enum lnpbp::bp::dbc::ScriptEncodeData
Structure keeping the minimum of information (bytewise) required to verify
deteministic bitcoin commitment given only the transaction source, its
fee and protocol-specific constants. It is a part of the Proof
data.
Variants (Non-exhaustive)
Public key. Since we keep the original public key as a part of a proof, and value of the tweaked key can be reconstructed with DBC source data and the original pubkey, so we do not need to keep any additional data here).
LockScript(LockScript)
Any output containing script information, aside from OP_RETURN outputs
(using [ScriptInfo::SimplePubkey
]) and tapscript.
We have to store full original script in it's byte form since when
the deteministic bitcoin commitment is verified, the output may be
still unspent and we will not be able to reconstruct the script without
this data kept in the client-validated part.
Taproot(Hash)
Taproot-based outputs. We need to keep only the hash of the taprscript merkle tree root.
Trait Implementations
impl Clone for ScriptEncodeData
[src]
fn clone(&self) -> ScriptEncodeData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScriptEncodeData
[src]
impl Default for ScriptEncodeData
[src]
impl Display for ScriptEncodeData
[src]
impl Eq for ScriptEncodeData
[src]
impl Hash for ScriptEncodeData
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ScriptEncodeData> for ScriptEncodeData
[src]
fn eq(&self, other: &ScriptEncodeData) -> bool
[src]
fn ne(&self, other: &ScriptEncodeData) -> bool
[src]
impl StrictDecode for ScriptEncodeData
[src]
type Error = Error
Implementation-dependent error type
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
impl StrictEncode for ScriptEncodeData
[src]
type Error = Error
Implementation-dependent error type
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
impl StructuralEq for ScriptEncodeData
[src]
impl StructuralPartialEq for ScriptEncodeData
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScriptEncodeData
impl Send for ScriptEncodeData
impl Sync for ScriptEncodeData
impl Unpin for ScriptEncodeData
impl UnwindSafe for ScriptEncodeData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,