Skip to content

ES256 keys & did document

Posted on:April 4, 2022 at 09:39 PM

Keys

Public key - Link

{
  "crv": "P-256",
  "kty": "EC",
  "x": "RF_xqUZCUtUu-nVK6HtBSu3HtxqewBi9wLHocwyX6vc",
  "y": "2nfl9YMOYF_7IibxUMQhS_J5bqWByg32KPspx9r-b-I"
}

Private key - Link

{
  "crv": "P-256",
  "d": "f-Br8K6KP11ip0RFZmKjYdH589xeBjPWrq2UaLG6Xx8",
  "kty": "EC",
  "x": "RF_xqUZCUtUu-nVK6HtBSu3HtxqewBi9wLHocwyX6vc",
  "y": "2nfl9YMOYF_7IibxUMQhS_J5bqWByg32KPspx9r-b-I"
}

Did Document

Issuer - Link

{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/suites/jws-2020/v1"
  ],
  "id": "did:web:dontusethisinproduction.com:did:issuer",
  "authentication": [
    {
      "id": "#E0VRsrzuENxujGcrZClQLzJXYtuf67QPSg7PydD8Mmc",
      "type": "JsonWebKey2020",
      "controller": "did:web:dontusethisinproduction.com:did:issuer",
      "publicKeyJwk": {
        "crv": "P-256",
        "kty": "EC",
        "x": "RF_xqUZCUtUu-nVK6HtBSu3HtxqewBi9wLHocwyX6vc",
        "y": "2nfl9YMOYF_7IibxUMQhS_J5bqWByg32KPspx9r-b-I"
      }
    }
  ]
}