additional types

This commit is contained in:
Florian Förster 2025-12-16 15:05:10 +01:00
parent 6b7cfe7377
commit d3a808c0fe

View File

@ -0,0 +1,12 @@
from typing import TypeAlias, TypedDict
BlockIndex: TypeAlias = int
class SerializedPyBlock(TypedDict):
index: int
timestamp: int
nonce: int
previous_hash: str
hash: str
data: str