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

Function sign_transaction_script_spend

rust/basic_bitcoin/src/p2tr.rs:137–199  ·  view source on GitHub ↗

Sign a P2TR script spend transaction. IMPORTANT: This method is for demonstration purposes only and it only supports signing transactions if: 1. All the inputs are referencing outpoints that are owned by `own_address`. 2. `own_address` is a P2TR address that includes a script.

(
    ctx: &BitcoinContext,
    own_address: &Address,
    mut transaction: Transaction,
    prevouts: &[TxOut],
    control_block: &ControlBlock,
    script: &ScriptBuf,
    derivation_path: Vec<Vec<

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected