Functions: publicKeyOptionUtils

A collection of utility functions for converting between PublicKey and KeysetEndpoint

Table of contents

Functions

Functions

convertToPublicKeyOption

▸ convertToPublicKeyOption(item: PublicKey | KeysetEndpoint): PublicKeyOption

Converts a PublicKey or KeysetEndpoint object into a PublicKeyOption structure.

Parameters

NameTypeDescription

item

The item to convert

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

Last updated