encode

Function encode 

Source
pub fn encode(
    descriptor: Descriptor<DescriptorPublicKey>,
    key_map: &KeyMap,
) -> (Vec<u8>, Vec<u8>)
Expand description

Encodes a descriptor as a template with a separate payload, containing the keys, fingerprints, hashes, and timelocks.