blockchain implementation forked from libbitcoin