Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
110
def
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
118
def
uint256_from_compact(c):
Callers
7
test_witness_block_size
Method · 0.90
run_test
Method · 0.90
SegwitVersion1SignatureHash
Function · 0.85
get_witness_script
Function · 0.85
calc_sha256
Method · 0.85
calc_sha256
Method · 0.85
get_merkle_root
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_witness_block_size
Method · 0.72