pub trait Encode {
// Required method
fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>;
}
Required Methods§
Trait Implementations§
Implementations on Foreign Types§
Implementors§
impl Encode for PsbtVer
impl Encode for Bip340Sig
impl Encode for CompressedPk
impl Encode for ControlBlock
impl Encode for InternalPk
impl Encode for KeyOrigin
impl Encode for LeafScript
impl Encode for LegacyPk
impl Encode for LegacySig
impl Encode for LockHeight
impl Encode for LockTime
impl Encode for LockTimestamp
impl Encode for Outpoint
impl Encode for RedeemScript
impl Encode for Sats
impl Encode for ScriptBytes
impl Encode for ScriptPubkey
impl Encode for SeqNo
impl Encode for SigScript
impl Encode for SighashType
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.
impl Encode for TapLeafHash
impl Encode for TapNodeHash
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.