pub struct ScriptPubkey { /* private fields */ }
Expand description
A single script pubkey containing spending conditions for a transaction output.
Script pubkeys can be created from raw script bytes or retrieved from existing transaction outputs.
Implementations§
Source§impl ScriptPubkey
impl ScriptPubkey
pub fn new(script_bytes: &[u8]) -> Result<Self, KernelError>
pub fn as_ref(&self) -> ScriptPubkeyRef<'_>
Trait Implementations§
Source§impl Clone for ScriptPubkey
impl Clone for ScriptPubkey
Source§impl Debug for ScriptPubkey
impl Debug for ScriptPubkey
Source§impl Drop for ScriptPubkey
impl Drop for ScriptPubkey
Source§impl From<&ScriptPubkey> for Vec<u8>
impl From<&ScriptPubkey> for Vec<u8>
Source§fn from(script: &ScriptPubkey) -> Self
fn from(script: &ScriptPubkey) -> Self
Converts to this type from the input type.
Source§impl From<ScriptPubkey> for Vec<u8>
impl From<ScriptPubkey> for Vec<u8>
Source§fn from(script: ScriptPubkey) -> Self
fn from(script: ScriptPubkey) -> Self
Converts to this type from the input type.
Source§impl ScriptPubkeyExt for ScriptPubkey
impl ScriptPubkeyExt for ScriptPubkey
Source§impl TryFrom<&[u8]> for ScriptPubkey
impl TryFrom<&[u8]> for ScriptPubkey
impl Send for ScriptPubkey
impl Sync for ScriptPubkey
Auto Trait Implementations§
impl Freeze for ScriptPubkey
impl RefUnwindSafe for ScriptPubkey
impl Unpin for ScriptPubkey
impl UnwindSafe for ScriptPubkey
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