Skip to content

Commit

Permalink
owner jwk id and controller strings were mixed up
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Jul 18, 2023
1 parent b08da50 commit 01ddf6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion did/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (d DIDWeb) CreateDoc(kt crypto.KeyType, publicKey []byte) (*did.Document, e
didWebStr := string(d)
keyReference := didWebStr + "#owner"

verificationMethod, err := did.ConstructJWKVerificationMethod(didWebStr, keyReference, publicKey, kt)
verificationMethod, err := did.ConstructJWKVerificationMethod(keyReference, didWebStr, publicKey, kt)
if err != nil {
return nil, fmt.Errorf("could not construct verification method for DIDWeb %+v", d)
}
Expand Down

0 comments on commit 01ddf6c

Please sign in to comment.