Skip to content

Commit

Permalink
fix: parse should take strings (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala authored Sep 21, 2022
1 parent bd2f3e5 commit db57d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/principal/src/principal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SIZE = 32 + PUBLIC_TAG_SIZE

/**
* Parses `did:key:` string as a VerifyingPrincipal.
* @param {API.DID} did
* @param {API.DID|string} did
* @returns {API.Principal<typeof code>}
*/
export const parse = (did) => decode(DID.parse(did))
Expand Down

0 comments on commit db57d6b

Please sign in to comment.