use new bitcoin-chain module extracted from bitcoin