Skip to content

Commit

Permalink
feat: Allow document loader to also load DID from the agent and fall …
Browse files Browse the repository at this point in the history
…back to the universal resolver (all configurable)
  • Loading branch information
nklomp committed Aug 9, 2023
1 parent bae026d commit f2f9fbc
Show file tree
Hide file tree
Showing 4 changed files with 361 additions and 318 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@ export class CredentialHandlerLDLocal implements IAgentPlugin {
suites: SphereonLdSignature[]
bindingOverrides?: IBindingOverrides
keyStore?: AbstractPrivateKeyStore
documentLoader?: {
localResolution?: boolean // Resolve identifiers hosted by the agent
uniresolverResolution?: boolean // Resolve identifiers using universal resolver
resolverResolution?: boolean // Use registered drivers
}
}) {
this.keyStore = options.keyStore
this.ldCredentialModule = new LdCredentialModule({
ldContextLoader: new LdContextLoader({ contextsPaths: options.contextMaps }),
ldSuiteLoader: new LdSuiteLoader({ ldSignatureSuites: options.suites }),
documentLoader: options?.documentLoader
})

this.overrideBindings(options.bindingOverrides)
Expand Down
Loading

0 comments on commit f2f9fbc

Please sign in to comment.