TYPEING Creating VP with JWTs not correct #591
Unanswered
RobertoSnap
asked this question in
Q&A
Replies: 2 comments 1 reply
-
That should work fine, actually. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Versions "@veramo/core": "^1.2.0",
"@veramo/credential-w3c": "^1.2.0",
"@veramo/data-store": "^1.2.0",
"@veramo/did-jwt": "^1.2.0",
"@veramo/did-manager": "^1.2.0",
"@veramo/did-provider-ethr": "^1.2.0",
"@veramo/did-provider-key": "^1.2.0",
"@veramo/did-resolver": "^1.2.0",
"@veramo/key-manager": "^1.2.0",
"@veramo/kms-local": "^1.2.0",
"@veramo/message-handler": "^1.2.0",
"@veramo/selective-disclosure": "^1.2.0", errorThat is the full error ImportsIts imported through the agent which has these imports and setup // Core interfaces
import {
createAgent,
IDataStore,
IDIDManager,
IKeyManager,
IResolver,
TAgent,
} from '@veramo/core';
import {
CredentialIssuer,
ICredentialIssuer,
W3cMessageHandler,
} from '@veramo/credential-w3c';
import {
DataStore,
DataStoreORM,
DIDStore,
Entities,
IDataStoreORM,
KeyStore,
} from '@veramo/data-store';
import { JwtMessageHandler } from '@veramo/did-jwt';
import { DIDManager } from '@veramo/did-manager';
import { EthrDIDProvider } from '@veramo/did-provider-ethr';
import { getDidKeyResolver, KeyDIDProvider } from '@veramo/did-provider-key';
// Custom resolvers
import { DIDResolverPlugin } from '@veramo/did-resolver';
// Core key manager plugin
import { KeyManager } from '@veramo/key-manager';
// Custom key management system for RN
import { KeyManagementSystem, SecretBox } from '@veramo/kms-local';
// Core identity manager plugin
import { MessageHandler } from '@veramo/message-handler';
export function initAgent(
dbConnection: Promise<Connection>,
_args: {
defaultDidProvider?: string;
secretKey?: string;
} = {},
): TAgent<
IDIDManager &
IKeyManager &
IDataStore &
IDataStoreORM &
IResolver &
ICredentialIssuer
> {
const args = { defaultDidProvider: 'did:ethr:brok', ..._args };
const agentConfig = getAgentConfig(
dbConnection,
args.defaultDidProvider,
args.secretKey,
);
return createAgent<
IDIDManager &
IKeyManager &
IDataStore &
IDataStoreORM &
IResolver &
ICredentialIssuer
>(agentConfig);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Type message: "Type 'string' is not assignable to type 'VerifiableCredential'."
Am I thinking about this wrong just pushing JWTs into a VP as strings?
Beta Was this translation helpful? Give feedback.
All reactions