Skip to content

Commit

Permalink
fix readme example error (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran authored Jun 13, 2024
1 parent c4884f2 commit da614c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ doc := &did.Document{
}
// Add an assertionMethod
keyID, _ =: did.ParseDIDURL("did:example:123#key-1")
keyID, _ := did.ParseDIDURL("did:example:123#key-1")
keyPair, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
verificationMethod, err := did.NewVerificationMethod(*keyID, did.JsonWebKey2020, did.DID{}, keyPair.Public())
Expand Down

0 comments on commit da614c6

Please sign in to comment.