change hash_digest_size to hash_size (to match libbitcoin export).