MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / uint256_from_str

Function uint256_from_str

test/functional/test_framework/messages.py:110–115  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

108
109
110def uint256_from_str(s):
111 r = 0
112 t = struct.unpack("<IIIIIIII", s[:32])
113 for i in range(8):
114 r += t[i] << (i * 32)
115 return r
116
117
118def uint256_from_compact(c):

Callers 7

run_testMethod · 0.90
get_witness_scriptFunction · 0.85
calc_sha256Method · 0.85
calc_sha256Method · 0.85
get_merkle_rootMethod · 0.85

Calls

no outgoing calls

Tested by 1