Skip to content

Commit

Permalink
Added did:web for cli docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aazam-gh committed Oct 3, 2024
1 parent 4500c59 commit 30bad31
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions crates/web5_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ web5 vc -h
]
}
```

### Create a `did:jwk`

```shell
Expand Down Expand Up @@ -110,6 +111,42 @@ web5 vc -h
}
```

### Create a `did:web`
```shell
➜ web5 did create web https://blackgirlbytes.com
{
"uri": "did:web:blackgirlbytes.com",
"document": {
"id": "did:web:blackgirlbytes.com",
"@context": [
"https://www.w3.org/ns/did/v1"
],
"verificationMethod": [
{
"id": "did:web:blackgirlbytes.com#key-0",
"type": "JsonWebKey",
"controller": "did:web:blackgirlbytes.com",
"publicKeyJwk": {
"alg": "Ed25519",
"kty": "OKP",
"crv": "Ed25519",
"x": "aJjHLs_8HAg38xpOpRf4DUFkpDD-AwbvDKnNLV_CVqA"
}
}
]
},
"privateKeys": [
{
"alg": "Ed25519",
"kty": "OKP",
"crv": "Ed25519",
"d": "jjVbwCwGeOnHkQfJgnLJv8ZQfcQ9e4DunUVUjUwM0ng",
"x": "aJjHLs_8HAg38xpOpRf4DUFkpDD-AwbvDKnNLV_CVqA"
}
]
}
```

### Resolve a DID URI

```shell
Expand Down

0 comments on commit 30bad31

Please sign in to comment.