mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
11 lines
209 B
Python
11 lines
209 B
Python
|
import struct
|
||
|
|
||
|
HashLength = 32
|
||
|
AddressLength = 20
|
||
|
BlockNumberLength = 8
|
||
|
IncarnationLength = 8
|
||
|
|
||
|
|
||
|
def bytesToUint64(val): return struct.unpack("<Q", val)[0]
|
||
|
def uint64ToBytes(val): return struct.pack("<Q", val)
|