|
|
@@ -162,6 +162,10 @@ def generate() -> dict[Path, bytes]:
|
|
|
channel_source = load_yaml("channel-map.yaml")
|
|
|
evidence = load_json("host-i2c-pin-evidence.json")
|
|
|
sha = contract_hash(manual, wire, snapshot, fan, evidence)
|
|
|
+ if manual['uart']['ack_type']!=wire['responses']['ACK_NACK']['type'] or manual['uart']['snapshot_type']!=wire['responses']['ALL_STATUS_DATA']['type']:
|
|
|
+ raise ValueError('manual/wire response identifiers disagree')
|
|
|
+ if manual['uart']['length_width_bits']!=wire['length_width_bits']:
|
|
|
+ raise ValueError('manual/wire length widths disagree')
|
|
|
fields, length = snapshot_layout(snapshot)
|
|
|
channel_map = dict(channel_source)
|
|
|
channel_map["contract_sha256"] = sha
|