pub trait Encode {
// Required method
fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>;
}
Required Methods§
Trait Implementations§
Implementations on Foreign Types§
Source§impl Encode for CompressedPk
impl Encode for CompressedPk
Source§impl Encode for UncompressedPk
impl Encode for UncompressedPk
Source§impl Encode for RedeemScript
impl Encode for RedeemScript
Source§impl Encode for ScriptBytes
impl Encode for ScriptBytes
Source§impl Encode for ScriptPubkey
impl Encode for ScriptPubkey
Source§impl Encode for WitnessScript
impl Encode for WitnessScript
Source§impl Encode for SighashType
impl Encode for SighashType
Source§impl Encode for ControlBlock
impl Encode for ControlBlock
Source§impl Encode for InternalPk
impl Encode for InternalPk
Source§impl Encode for LeafScript
impl Encode for LeafScript
Source§impl Encode for TapLeafHash
impl Encode for TapLeafHash
Source§impl Encode for TapNodeHash
impl Encode for TapNodeHash
Source§impl Encode for LockHeight
impl Encode for LockHeight
Source§impl Encode for LockTimestamp
impl Encode for LockTimestamp
Source§impl Encode for TapDerivation
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§impl Encode for TapTree
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.