decentralized-identity/ion

CLI creates payload is outdated key type

Open

#229 ouverte le 7 sept. 2021

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)HTML (1 219 stars) (168 forks)batch import
good first issuehigh prioirtyimprovement

Description

As of

  "name": "ion",
  "version": "1.0.3",
{
        "action": "replace",
        "document": {
          "publicKeys": [
            {
              "id": "signing-key",
              "type": "EcdsaSecp256k1VerificationKey2019",
              "publicKeyJwk": {
                "kty": "EC",
                "crv": "secp256k1",
                "x": "qp0Ezzc4YhA196COYKa-RHrCom-0LgFtAf8FqvcntN0",
                "y": "zWcbbbg9w1m-DNOszvM68TD0_vFBtWyc18S06c8cULU"
              }
            }
          ]
        }
      }

Should be

{
        "action": "replace",
        "document": {
          "publicKeys": [
            {
              "id": "signing-key",
              "type": "JsonWebKey2020",
              "publicKeyJwk": {
                "kty": "EC",
                "crv": "secp256k1",
                "x": "qp0Ezzc4YhA196COYKa-RHrCom-0LgFtAf8FqvcntN0",
                "y": "zWcbbbg9w1m-DNOszvM68TD0_vFBtWyc18S06c8cULU"
              }
            }
          ]
        }
      }

This is low priority, but will harm interoperability with JsonWebSignature2020, better not to encourage that key type to be used.

Guide contributeur