Commit 2ab196a
committed
feat: add cose-key and cose-key-set codecs
Register the CBOR-native counterparts to pkix-pub/pkcs8-priv so the table has one-codec-per-role containers for both the DER (ASN.1) and CBOR (COSE) ecosystems, covering the same "algorithm identifier travels in the payload" model on both sides.
- cose-key (0x42): COSE_Key map per IETF RFC 9052 section 7; media type application/cose-key
- cose-key-set (0x43): COSE_KeySet array per IETF RFC 9052 section 7; media type application/cose-key-set
- split mirrors IETF's own registration of two media types and two CoAP Content-Format IDs (101 and 102), and keeps the "prefix tells you the shape" invariant
- both remain in the single-byte varint range (0x42 and 0x43 in the unclustered 0x39-0x4f block) for identifier cost parity with libp2p-key
Refs:
- https://www.rfc-editor.org/rfc/rfc9052
- https://www.iana.org/assignments/media-types/application/cose-key
- https://www.iana.org/assignments/media-types/application/cose-key-set1 parent b300a7d commit 2ab196a
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments