MCPcopy Create free account
hub / github.com/dfinity/examples / create_spend_script

Function create_spend_script

rust/basic_bitcoin/src/p2tr.rs:55–62  ·  view source on GitHub ↗

Constructs a Taproot leaf script of the form ` OP_CHECKSIG`. This script is used in Taproot script path spending. It allows spending with a single Schnorr signature corresponding to the committed script leaf key. The key must match the one committed in the Taproot output's Merkle tree.

(script_key_bytes: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls

no outgoing calls

Tested by

no test coverage detected