39 lines
482 B
Python
39 lines
482 B
Python
|
from dataclasses import dataclass
|
||
|
from typing import List, Generator
|
||
|
|
||
|
from eth2spec.eip7594.mainnet import Bytes32
|
||
|
|
||
|
|
||
|
class NodeId(Bytes32):
|
||
|
pass
|
||
|
|
||
|
class Chunk(Bytes32):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class Column(List[Chunk]):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class Row(List[Chunk]):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class ChunksMatrix(List[Row]):
|
||
|
def columns(self) -> Generator[List[Chunk], None, None]:
|
||
|
# TODO: yield columns
|
||
|
yield None
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class Attestation:
|
||
|
pass
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class Certificate:
|
||
|
pass
|
||
|
|