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

Function uint256_from_str

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

Source from the content-addressed store, hash-verified

120
121
122def uint256_from_str(s):
123 r = 0
124 t = struct.unpack("<IIIIIIII", s[:32])
125 for i in range(8):
126 r += t[i] << (i * 32)
127 return r
128
129
130def uint256_from_compact(c):

Callers 14

pegin_testMethod · 0.90
issuance_testMethod · 0.90
test_coinbase_witnessMethod · 0.90
run_testMethod · 0.90
compute_last_headerFunction · 0.90
run_testMethod · 0.90
gen_test_vectorsMethod · 0.90
run_testMethod · 0.90
SegwitV0SignatureMsgFunction · 0.70
get_witness_scriptFunction · 0.70
add_witness_commitmentFunction · 0.70
calc_sha256Method · 0.70

Calls

no outgoing calls

Tested by 1

test_coinbase_witnessMethod · 0.72