Skip to content

Commit

Permalink
chore: fixed status list resolveIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Feb 17, 2025
1 parent 7ab8beb commit 1e74eca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/vc-status-list/src/impl/encoding/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ export interface DecodedStatusListPayload {
}

export const resolveIdentifier = async (context: IRequiredContext, issuer: string, keyRef?: string) => {
if (keyRef && !issuer.startsWith('did:')) {
return await context.agent.identifierManagedGetByKid({
identifier: keyRef,
})
}

return await context.agent.identifierManagedGet({
identifier: issuer,
vmRelationship: 'assertionMethod',
offlineWhenNoDIDRegistered: true,
...(keyRef && { kmsKeyRef: keyRef }), // TODO the getDid resolver should look at this ASAP
})
}

0 comments on commit 1e74eca

Please sign in to comment.