MCPcopy Create free account
hub / github.com/dfinity/bitcoin-developer-preview / sign_transaction

Function sign_transaction

examples/common/src/lib.rs:91–127  ·  view source on GitHub ↗

Sign a bitcoin transaction given the private key and the source address of the funds. Constraints: All the inputs are referencing outpoints that are owned by `src_address`. `src_address` is a P2PKH address.

(
    mut transaction: Transaction,
    private_key: PrivateKey,
    src_address: Address,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sendFunction · 0.50

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected