[−][src]Enum lnpbp::dbc::spk::ScriptEncodeData
Structure keeping the minimum of information (bytewise) required to verify
deterministic 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]
pub 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]
pub 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]
fn strict_decode<D: Read>(mut d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for ScriptEncodeData
[src]
fn strict_encode<E: Write>(&self, mut e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl StructuralEq for ScriptEncodeData
[src]
impl StructuralPartialEq for ScriptEncodeData
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScriptEncodeData
[src]
impl Send for ScriptEncodeData
[src]
impl Sync for ScriptEncodeData
[src]
impl Unpin for ScriptEncodeData
[src]
impl UnwindSafe for ScriptEncodeData
[src]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,