I'm ok with keeping the YANG as it is now!
For cBRSKI use cases with nonce-vouchers, none of the date-and-time
fields need to be present or at least none of those need to be parsed by
the Pledge.
Instead of the created-on field in the voucher, the Pledge may also
extract such info from the COSE header "issued at" (iat) field, if present.
See
https://datatracker.ietf.org/doc/html/draft-ietf-anima-constrained-voucher#section-9.2.5
This uses the CBOR numeric date defined in
https://www.rfc-editor.org/rfc/rfc7049#section-2.4.1.
Esko
On 25-9-2025 18:31, Michael Richardson wrote:
Esko Dijk<[email protected]> wrote:
> We had some past 2022 discussions on using a simple CBOR uint timestamp
> value (in seconds) in the constrained Voucher. The conclusion of this
> discussion was that such timestamp needed to be in a new field, not in
> "created-on", because that field is already defined by YANG/YANG-cbor
> as a date-time string. Most of the discussion was then about how it
> could be modeled in YANG such that consistent translations between
> string format and uint/float format can be done. But, that's complex as
> it turns out.
> Sorry to bring this topic up again!
Sorry to bring out a 12 month-old email.
Trying to empty inbox.
We could change the YANG from:
leaf created-on {
type yang:date-and-time;
to:
type union {
type uint64; // when serialized to CBOR
type yang:date-and-time; // when serialized to JSON
}
If there is a YANG data type which is seconds-since-unix-epoch, I'm unaware
of it. We are in WGLC, so is this something you want to make a blocking
comment?
--
Michael Richardson<[email protected]> . o O ( IPv6 IøT consulting )
Sandelman Software Works Inc, Ottawa and Worldwide
_______________________________________________
Anima mailing list [email protected]
To unsubscribe send an email [email protected]
--
*IoTconsultancy.nl* | Email/Teams: [email protected] | +31 6
2385 8339
_______________________________________________
Anima mailing list -- [email protected]
To unsubscribe send an email to [email protected]