MCPcopy
hub / github.com/ethereum/research / pack

Function pack

spec_pythonizer/minimal_ssz.py:117–118  ·  view source on GitHub ↗
(values, subtype)

Source from the content-addressed store, hash-verified

115 return [bytez[i:i+32] for i in range(0, len(bytez), 32)]
116
117def pack(values, subtype):
118 return chunkify(b''.join([serialize_value(value, subtype) for value in values]))
119
120def is_power_of_two(x):
121 return x > 0 and x & (x-1) == 0

Callers 1

hash_tree_rootFunction · 0.70

Calls 2

chunkifyFunction · 0.70
serialize_valueFunction · 0.70

Tested by

no test coverage detected