ietf-rats / ietf-corim-cddl

This repository is abandoned. The adopted I-D can be found at:
https://github.com/ietf-rats-wg/draft-ietf-rats-corim/
2 stars 0 forks source link

concise-reference-integrity-manifest-group-choice #34

Closed nedmsmith closed 3 years ago

nedmsmith commented 3 years ago

We decided to make concise-reference-integrity-manifest a group choice with a single element for now where: numeric code point: 0 text code point: 'corim' type: concise-reference-integrity-manifest-group-choice description: 'top level corim structure'

concise-reference-integrity-manifest-group-choice is defined as; numeric code point: 0 text code point: corim.unsigned-corim type: #6.47111(unsigned-corim-map)

and

numeric code point: 1 text code point: corim.signed-corim type: #6.47112(signed-corim-map)

thomas-fossati commented 3 years ago

I don't think the above can be translated to CDDL.

What is that we want to achieve? If we want to let CoRIM be choice among a few well-defined (but extensible) options, we could just:

corim = #6.TBD($concise-reference-integrity-manifest-type-choice)

$concise-reference-integrity-manifest-type-choice /= #6.47111(unsigned-corim-map)
$concise-reference-integrity-manifest-type-choice /= #6.47112(signed-corim-map)
nedmsmith commented 3 years ago

Yes, that is what I was thinking would be the CDDL way to handle it.

thomas-fossati commented 3 years ago

ok then :-)