Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
122
def
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
130
def
uint256_from_compact(c):
Callers
14
pegin_test
Method · 0.90
issuance_test
Method · 0.90
test_coinbase_witness
Method · 0.90
run_test
Method · 0.90
compute_last_header
Function · 0.90
run_test
Method · 0.90
gen_test_vectors
Method · 0.90
run_test
Method · 0.90
SegwitV0SignatureMsg
Function · 0.70
get_witness_script
Function · 0.70
add_witness_commitment
Function · 0.70
calc_sha256
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_coinbase_witness
Method · 0.72