Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions codecs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,27 @@
"description": "ML-KEM 1024 public key; as specified by FIPS 203",
"code": 4621
},
"4624": {
"name": "mldsa-44-pub",
"tag": "key",
"status": "draft",
"description": "ML-DSA 44 public key; as specified by FIPS 204",
"code": 4624
},
"4625": {
"name": "mldsa-65-pub",
"tag": "key",
"status": "draft",
"description": "ML-DSA 65 public key; as specified by FIPS 204",
"code": 4625
},
"4626": {
"name": "mldsa-87-pub",
"tag": "key",
"status": "draft",
"description": "ML-DSA 87 public key; as specified by FIPS 204",
"code": 4626
},
"4665": {
"name": "multisig",
"tag": "multiformat",
Expand Down Expand Up @@ -1385,6 +1406,48 @@
"description": "SM2 private key",
"code": 4880
},
"4881": {
"name": "ed448-priv",
"tag": "key",
"status": "draft",
"description": "Ed448 private key",
"code": 4881
},
"4882": {
"name": "x448-priv",
"tag": "key",
"status": "draft",
"description": "X448 private key",
"code": 4882
},
"4883": {
"name": "mlkem-512-priv",
"tag": "key",
"status": "draft",
"description": "ML-KEM 512 private key; as specified by FIPS 203",
"code": 4883
},
"4884": {
"name": "mlkem-768-priv",
"tag": "key",
"status": "draft",
"description": "ML-KEM 768 public key; as specified by FIPS 203",
"code": 4884
},
"4885": {
"name": "mlkem-1024-priv",
"tag": "key",
"status": "draft",
"description": "ML-KEM 1024 public key; as specified by FIPS 203",
"code": 4885
},
"4886": {
"name": "jwk_jcs-priv",
"tag": "key",
"status": "draft",
"description": "JSON object containing only the required members of a JWK (RFC 7518 and RFC 7517) representing the private key. Serialisation based on JCS (RFC 8785)",
"code": 4886
},
"6676": {
"name": "lamport-sha3-512-pub",
"tag": "key",
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function decodeCID (value) {
return {
cid,
multibase: cid.version === 0 ? bases.base58btc : base,
multicodec: codecs[cid.code],
multicodec: codecs[cid.code] || {name: "unknown multicodec", description: "unknown multicodec", code: cid.code},
multihash: {
...cid.multihash,
name: codecs[cid.multihash.code]?.name || 'unknown multihash'
Expand Down