Trait psbt::Encode

source ·
pub trait Encode {
    // Required method
    fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>;
}

Required Methods§

source

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

Trait Implementations§

source§

impl Encode for Box<dyn Encode>

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

Implementations on Foreign Types§

source§

impl Encode for u8

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for u32

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for ()

source§

fn encode(&self, _writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Box<dyn Encode>

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for TapDerivation

A compact size unsigned integer representing the number of leaf hashes, followed by a list of leaf hashes, followed by the 4 byte master key fingerprint concatenated with the derivation path of the public key. The derivation path is represented as 32-bit little endian unsigned integer indexes concatenated with each other.

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for TapTree

One or more tuples representing the depth, leaf version, and script for a leaf in the Taproot tree, allowing the entire tree to be reconstructed. The tuples must be in depth first search order so that the tree is correctly reconstructed. Each tuple is an 8-bit unsigned integer representing the depth in the Taproot tree for this script, an 8-bit unsigned integer representing the leaf version, the length of the script as a compact size unsigned integer, and the script itself.

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for KeyOrigin

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Xpub

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for XpubFp

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for XpubOrigin

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Bip340Sig

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for CompressedPk

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for ControlBlock

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for InternalPk

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for LeafScript

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for LegacyPk

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for LegacySig

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for LockHeight

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for LockTime

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for LockTimestamp

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Outpoint

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for RedeemScript

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Sats

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for ScriptBytes

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for ScriptPubkey

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for SeqNo

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for SigScript

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for SighashType

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for TapLeafHash

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for TapNodeHash

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Tx

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for TxOut

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for TxVer

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Txid

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for UncompressedPk

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for VarInt

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Vout

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for Witness

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for WitnessScript

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl Encode for XOnlyPk

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl<'a, T: Encode> Encode for &'a T

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl<A: Encode, B: Encode> Encode for (A, B)

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl<I: Idx> Encode for DerivationPath<I>

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl<T: Encode> Encode for Option<T>

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

source§

impl<const LEN: usize> Encode for Array<u8, LEN>

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

Implementors§