Exemplo n.º 1
0
 def fromJSON(
     json: Dict[str, Any]
 ) -> Any:
     return Block(
         BlockHeader.fromJSON(json["header"]),
         BlockBody.fromJSON(json)
     )
Exemplo n.º 2
0
 def fromJSON(
     keys: Dict[bytes, int],
     json: Dict[str, Any]
 ) -> Any:
     return Block(
         BlockHeader.fromJSON(json["header"]),
         BlockBody.fromJSON(keys, json)
     )