Bitcoin network adapter for @tradle/engine
See adapter API spec
const { testnet /*,bitcoin*/ } = require('@tradle/bitcoin-adapter')
const tradle = require('@tradle/engine')
const blockchain = testnet.createBlockchainAPI()
const privateKey = '..' // WIF private key
const transactor = testnet.createTransactor({ privateKey, blockchain })
const node = tradle.node({
// ...
network: testnet,
blockchain,
transactor
// ...
})