Skip to content

Commit

Permalink
make better references to examples for JWS and CBOR encoding, close #56
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr committed Jul 8, 2024
1 parent df2ada7 commit eab09b4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions draft-ietf-anima-rfc8366bis.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ using the 'verified' assertion type, which should satisfy all pledges.
}
~~~~

{{I-D.ietf-anima-jws-voucher, Section 8}} contains examples of vouchers encoded in JSON, and signed with JOSE.
{{I-D.ietf-anima-constrained-voucher, Section 9}} contains examples of vouchers encoded in CBOR, and signed with COSE.

## YANG Module {#voucher-yang-module}

Expand All @@ -542,10 +544,14 @@ It is believed, however, that they will not change.
{::include-fold ietf-voucher-sid.txt}
~~~~

The "assertion" attribute is an enumerated type {{RFC8366}}, and the current PYANG tooling does not document the valid values for this attribute.
The "assertion" attribute is an enumerated type in {{RFC8366}}, but no values were provided as part of the enumeration.
This document provides enumerated values as part of the YANG module.

In the JSON serialization, the literal strings from the enumerated types are used so there is no ambiguity.
In the CBOR serialization, a small integer is used.
This following values are documented here, but the YANG module should be considered authoritative. No IANA registry is provided or necessary because the YANG module (and this document) would be extended when there are new entries to make.

In the CBOR serialization, a small integer is used, and the following values are repeated here.
The YANG module should be considered authoritative in the future.
No IANA registry is provided or necessary because the YANG module (and this document) would be extended when there are new entries to make.

Integer | Assertion Type
|-|-|
Expand Down

0 comments on commit eab09b4

Please sign in to comment.