Skip to content

Commit

Permalink
fix: VCI holder agent plugin credential and branding storage fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Mar 1, 2024
1 parent f83aee5 commit 901ff44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/oid4vci-holder/src/agent/OID4VCIHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class OID4VCIHolder implements IAgentPlugin {

const localeBranding: Array<IBasicCredentialLocaleBranding> | undefined = credentialBranding?.get(selectedCredentials[0])
if (localeBranding && localeBranding.length > 0) {
await context.agent.addCredentialBranding({
await context.agent.ibAddCredentialBranding({
vcHash: computeEntryHash(credentialsToAccept[0].rawVerifiableCredential),
issuerCorrelationId: new URL(serverMetadata.issuer).hostname,
localeBranding,
Expand All @@ -284,7 +284,7 @@ export class OID4VCIHolder implements IAgentPlugin {
private async oid4vciHolderStoreCredentials(args: StoreCredentialsArgs, context: RequiredContext): Promise<void> {
const { credentialsToAccept } = args

const verifiableCredential: VerifiableCredential = credentialsToAccept[0].rawVerifiableCredential
const verifiableCredential = credentialsToAccept[0].uniformVerifiableCredential as VerifiableCredential
const vcHash = await context.agent.dataStoreSaveVerifiableCredential({ verifiableCredential })

await context.agent.emit(OID4VCIHolderEvent.CREDENTIAL_STORED, {
Expand Down

0 comments on commit 901ff44

Please sign in to comment.