@@ -46,15 +46,15 @@ babbageCDDL =
4646 , HIRule $ huddleRule @ " signkey_kes" (Proxy @ BabbageEra )
4747 ]
4848
49- -- | Babbage changed protocol_version from Named Group to Rule to match actual block
49+ -- | Babbage changed protocol_version from GroupDef to Rule to match actual block
5050-- serialization. See 'header_body' instance for full explanation.
5151-- Ref: PR #3762, Issue #3559
5252babbageProtocolVersionRule ::
5353 forall era . HuddleRule " major_protocol_version" era => Proxy era -> Rule
5454babbageProtocolVersionRule p =
5555 " protocol_version" =:= arr [a $ huddleRule @ " major_protocol_version" p, a VUInt ]
5656
57- -- | Babbage changed operational_cert from Named Group to Rule to match actual block
57+ -- | Babbage changed operational_cert from GroupDef to Rule to match actual block
5858-- serialization. See 'header_body' instance for full explanation.
5959-- Ref: PR #3762, Issue #3559
6060babbageOperationalCertRule :: forall era . Era era => Proxy era -> Rule
@@ -267,16 +267,16 @@ instance HuddleRule "header" BabbageEra where
267267 , " body_signature" ==> huddleRule @ " kes_signature" p
268268 ]
269269
270- -- IMPORTANT: Babbage changed operational_cert and protocol_version from Named Group
270+ -- IMPORTANT: Babbage changed operational_cert and protocol_version from GroupDef
271271-- (grp) to Rule (arr) to match actual block serialization.
272272--
273273-- Semantic difference:
274- -- * Named Group (grp): Fields are inlined directly into parent array.
274+ -- * GroupDef (grp): Fields are inlined directly into parent array.
275275-- -> header_body becomes a 14-element flat array
276276-- * Rule (arr): Fields are nested as separate sub-arrays.
277277-- -> header_body becomes a 10-element array with nested structures
278278--
279- -- Pre-Babbage eras (Shelley through Alonzo) used Named Group , but actual Babbage+
279+ -- Pre-Babbage eras (Shelley through Alonzo) used GroupDef , but actual Babbage+
280280-- blocks serialize with Rule (nested arrays). This change corrects the CDDL spec to
281281-- match the actual CBOR serialization.
282282--
0 commit comments