Skip to content

Commit

Permalink
🎨 lint
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed May 2, 2023
1 parent 0110436 commit 02d4c81
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions DIDMethods.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# DID methods in ACA-Py
# DID Methods in ACA-Py

Decentralized Identifiers, or DIDs, are URIs that point to documents that describe cryptographic primitives and protocols used in decentralized identity management.
DIDs include methods that describe where and how documents can be retrieved.
DID methods support specific types of keys and may or may not require the holder to specify the DID itself.
Expand All @@ -8,11 +9,12 @@ ACA-Py provides a `DIDMethods` registry holding all the DID methods supported fo
> :warning: Askar and InMemory are the only wallets supporting this registry.
## Registering a DID method

By default, ACA-Py supports `did:key` and `did:sov`.
Plugins can register DID additional methods to make them available to holders.
Plugins can register DID additional methods to make them available to holders.
Here's a snippet adding support for `did:web` to the registry from a plugin `setup` method.

```python=
```python
WEB = DIDMethod(
name="web",
key_types=[ED25519, BLS12381G2],
Expand All @@ -30,7 +32,7 @@ async def setup(context: InjectionContext):
`POST /wallet/did/create` can be provided with parameters for any registered DID method. Here's a follow-up to the
`did:web` method example:

```json=
```json
{
"method": "web",
"options": {
Expand Down

0 comments on commit 02d4c81

Please sign in to comment.