generated from digitalcredentials/isomorphic-lib-template
-
Couldn't load subscription status.
- Fork 2
Closed
Description
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:
security-document-loader/src/documentLoader.ts
Lines 26 to 29 in 28db64f
| 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
Assignees
Labels
No labels
Type
Projects
Status
Done (Deployed/Closed)