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