MCPcopy Create free account
hub / github.com/ElementsProject/elements / calc_hash_str

Function calc_hash_str

contrib/linearize/linearize-data.py:60–65  ·  view source on GitHub ↗
(blk_hdr)

Source from the content-addressed store, hash-verified

58 return hash2_o
59
60def calc_hash_str(blk_hdr):
61 hash = calc_hdr_hash(blk_hdr)
62 hash = bufreverse(hash)
63 hash = wordreverse(hash)
64 hash_str = hash.hex()
65 return hash_str
66
67def get_blk_dt(blk_hdr):
68 members = struct.unpack("<I", blk_hdr[68:68+4])

Callers 1

runMethod · 0.85

Calls 4

calc_hdr_hashFunction · 0.85
bufreverseFunction · 0.85
wordreverseFunction · 0.85
hexMethod · 0.80

Tested by

no test coverage detected