Port to libbitcoin-client