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 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.