pub struct PushDropData {
pub locking_public_key: PublicKey,
pub fields: Vec<Vec<u8>>,
}Expand description
The result of decoding a PushDrop locking script.
Mirrors TS PushDrop.decode / Go pushdrop.Decode, both of which return the
locking public key ALONGSIDE the fields. The old Rust port returned a keyless
PushDrop, discarding the pubkey.
Fields§
§locking_public_key: PublicKeyThe public key the output is locked to.
fields: Vec<Vec<u8>>The embedded data fields, with minimally-encoded opcode forms decoded back to their byte values.
Implementations§
Source§impl PushDropData
impl PushDropData
Sourcepub fn decode(script: &LockingScript) -> Result<PushDropData, ScriptError>
pub fn decode(script: &LockingScript) -> Result<PushDropData, ScriptError>
Convenience alias for decode.
Trait Implementations§
Source§impl Clone for PushDropData
impl Clone for PushDropData
Source§fn clone(&self) -> PushDropData
fn clone(&self) -> PushDropData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PushDropData
impl !UnwindSafe for PushDropData
impl Freeze for PushDropData
impl Send for PushDropData
impl Sync for PushDropData
impl Unpin for PushDropData
impl UnsafeUnpin for PushDropData
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