-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor registry client, remove issuerAuth.
- Loading branch information
1 parent
ca73636
commit 6ec33fd
Showing
14 changed files
with
15,543 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const KnownDidRegistries = [ | ||
{ | ||
'name': 'DCC Pilot Registry', | ||
'url': 'https://digitalcredentials.github.io/issuer-registry/registry.json' | ||
}, | ||
{ | ||
'name': 'DCC Sandbox Registry', | ||
'url': 'https://digitalcredentials.github.io/sandbox-registry/registry.json' | ||
}, | ||
{ | ||
'name': 'DCC Community Registry', | ||
'url': 'https://digitalcredentials.github.io/community-registry/registry.json' | ||
}, | ||
{ | ||
'name': 'DCC Registry', | ||
'url': 'https://digitalcredentials.github.io/dcc-registry/registry.json' | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { createContext } from 'react'; | ||
import { RegistryClient } from '@digitalcredentials/issuer-registry-client'; | ||
import { KnownDidRegistries } from '../config'; | ||
|
||
const registries = new RegistryClient(); | ||
|
||
export const DidRegistryContext = createContext(registries); | ||
|
||
/** | ||
* Loads remote Known Issuer / Known Verifier DID registries from config. | ||
*/ | ||
export async function loadKnownDidRegistries ({ client }: { client: RegistryClient }) { | ||
await client.load({ config: KnownDidRegistries }); | ||
// now available for usage through useContext(DidRegistryContext) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.