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

Function wordreverse

contrib/linearize/linearize-data.py:42–47  ·  view source on GitHub ↗
(in_buf)

Source from the content-addressed store, hash-verified

40 return b''.join(out_words)
41
42def wordreverse(in_buf):
43 out_words = []
44 for i in range(0, len(in_buf), 4):
45 out_words.append(in_buf[i:i+4])
46 out_words.reverse()
47 return b''.join(out_words)
48
49def calc_hdr_hash(blk_hdr):
50 hash1 = hashlib.sha256()

Callers 1

calc_hash_strFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected