def hash(self, sighash_type=None): if sighash_type is None: obj = lib.bc_transaction__hash(self._obj) else: obj = lib.bc_transaction__hash_Sighash(self._obj, sighash_type.value) return HashDigest(obj)
def extract_ephemeral_key_Hash(script): out_unsigned_ephemeral_key = HashDigest() if lib.bc_extract_ephemeral_key_Hash(out_unsigned_ephemeral_key._obj, script._obj) != 1: return None return out_unsigned_ephemeral_key
def generate_signature_hash(tx, input_index, script_code, sighash_type): obj = lib.bc_script__generate_signature_hash(tx._obj, input_index, script_code._obj, sighash_type.value) return HashDigest(obj)
def hash(self): obj = lib.bc_point__hash(self._obj) return HashDigest(obj)
def hash(self): obj = lib.bc_header__hash(self._obj) return HashDigest(obj)
def merkle(self): obj = lib.bc_header__merkle(self._obj) return HashDigest(obj)
def previous_block_hash(self): obj = lib.bc_header__previous_block_hash(self._obj) return HashDigest(obj)