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

Function ser_uint256

test/functional/test_framework/messages.py:114–119  ·  view source on GitHub ↗
(u)

Source from the content-addressed store, hash-verified

112
113
114def ser_uint256(u):
115 rs = b""
116 for _ in range(8):
117 rs += struct.pack("<I", u & 0xFFFFFFFF)
118 u >>= 32
119 return rs
120
121
122def uint256_from_str(s):

Callers 15

to_jsonableFunction · 0.90
get_utxoMethod · 0.90
run_testMethod · 0.90
serialize_addrmanFunction · 0.90
compute_last_headerFunction · 0.90
dump_json_testFunction · 0.90
SegwitV0SignatureMsgFunction · 0.70

Calls

no outgoing calls