Functions: publicKeyOptionUtils
A collection of utility functions for converting between PublicKey and KeysetEndpoint
Last updated
A collection of utility functions for converting between PublicKey and KeysetEndpoint
Last updated
⸠convertToPublicKeyOption
(item
: PublicKey
|
KeysetEndpoint
): PublicKeyOption
Converts a PublicKey or KeysetEndpoint object into a PublicKeyOption structure.
Parameters
Name | Type | Description |
---|---|---|
Returns
PublicKeyOption
- A structured object containing the tag and value of the public key option
Throws
Error if input is neither a valid PublicKey nor KeysetEndpoint
item
The item to convert