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

Method to_bytes

circlestark/fields.py:49–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 return '<'+str(self.value)+'>'
48
49 def to_bytes(self):
50 return self.value.to_bytes(4, 'little')
51
52 @classmethod
53 def from_bytes(cls, bytez):

Callers 15

hashFunction · 0.45
serialize_valueFunction · 0.45
mix_in_lengthFunction · 0.45
create_deposit_dataFunction · 0.45
serialize_intFunction · 0.45
serialize_pointFunction · 0.45
rootMethod · 0.45
encode_seriesFunction · 0.45
serialize_valueFunction · 0.45
mix_in_lengthFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_vectorFunction · 0.36
test_multi_merkle_treeFunction · 0.36
test_merkletreeFunction · 0.36