Skip to content

Support for RsaVerificationKey2018 #18

@fabrii

Description

@fabrii

Hello!

I am trying to use this library to load a did:web whose verificationMethod type is an RsaVerificationKey2018.

I thought that having this suite loaded in the vc.verifyCredential method was enough, but it seems that the securityLoader also requires it.

My vc.verifyCredential method:

const result = await vc.verifyCredential({
    credential,
    suite: [suiteRSA, suiteEd25519],
    documentLoader,
    checkStatus: checkStatus
})

However, I am encountering the following error:

LOG  {
  "name": "VerificationError",
  "errors": [
    {
      "name": "Error",
      "message": "Support for key type \"RsaVerificationKey2018\" is not installed.",
      "stack": "Error: Support for key type \"RsaVerificationKey2018\" is not installed.\n    at _suiteForType

I might need to add it here:

const cryptoLd = new CryptoLD();
cryptoLd.use(Ed25519VerificationKey2020);
cryptoLd.use(X25519KeyAgreementKey2020);
const didWebDriver = didWeb.driver({ cryptoLd });

Should this library support adding custom verification keys for CryptoLd?

Thank you

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done (Deployed/Closed)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions