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

Function sign_transaction_key_spend

rust/basic_bitcoin/src/p2tr.rs:208–262  ·  view source on GitHub ↗

Sign a P2TR key 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.

(
    ctx: &BitcoinContext,
    own_address: &Address,
    mut transaction: Transaction,
    prevouts: &[TxOut],
    derivation_path: Vec<Vec<u8>>,
    merkle_root_hash: Vec<u8>,
    signer: SignFun,

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

build_transactionFunction · 0.85
inscribe_ordinalFunction · 0.85
etch_runeFunction · 0.85
inscribe_brc20Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected