We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adda745 commit 96c7cd1Copy full SHA for 96c7cd1
1 file changed
README.md
@@ -21,7 +21,9 @@ See examples in [principals_test.go](./examples/principals_test.go)
21
```go
22
principal, err := did.Parse("did:key:z6MkfBSb2hC6g3UGnqNmWfmGvPdfMorBpT2osm9bk9b4Cyqu")
23
fmt.Println("DID:", principal.DID())
24
+```
25
26
+```go
27
// generate a new ed25519 signer (it is also a principal - has a DID() method)
28
signerPrincipal, err := ed25519.Generate()
29
fmt.Println("DID:", signer.DID())
0 commit comments