Issuer SDK
bbsDidFromPublicKey
The bbsDidFromPublicKey
function is a synchronous method that generates a DID from a public key which can be either provided by the client or randomly generated.
Function Signature
TypeScript
Parameters
publicKey
(string): A public key randomly generated by VC SDK or provided by the client.
Returns
DID
: An object representing the DID with a method and identifier.
Examples
TypeScript