On Sat, May 27, 2023 at 06:09:50PM +0200, Carsten Bormann wrote:
> On 2023-05-27, at 17:25, Ilari Liusvaara <[email protected]> wrote:
> >
> > […]
> > 
> > - Is the required order wrong way around? AFAICT, it is 1, -1, -2, -3,
> >  like in the diagnostic format.
> 
> There is no point in specifying a required order in this spec; CBOR 
> deterministic encoding takes care of this.  So I didn’t look at the order in 
> the English language list.
> The diagnostic notation is showing the right order of the map keys:
> 
> 1 ➔ 0x01
> -1 ➔ 0x20
> -2 ➔ 0x21
> -3 ➔ 0x22
> 
> https://cbor.me/?diag=1,%20-1,%20-2,%20-3

Sorry, that was unclear, I was referring to the following text in
section 5:

>>> The required order based on Section 4.2.1 of [RFC8949] is:
>>>  * "y" (label: -3, data type: bstr)
>>>  * "x" (label: -2, data type: bstr)
>>>  * "crv" (label: -1, data type: int)
>>>  * "kty" (label: 1, data type: int)

Which seems upside-down to me...



-Ilari

_______________________________________________
COSE mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/cose

Reply via email to