converted for recent libbitcoin changes.