Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Utils

The Utils class provides a few helpful type conversion functions for working with ed25519 keys.

You can convert to and from a valid hex string to a Uint8 Array in order to easily work with the signatures sent from the coordinator.

Note that the methods are static so you do not need to initialize the class.

Hierarchy

  • Utils

Index

Methods

Static fromHexString

  • fromHexString(hexString: string): Uint8Array
  • Convert hex data encoded as a Uint8 Array to string.

    Parameters

    • hexString: string

    Returns Uint8Array

    The converted hex string.

Static toHexString

  • toHexString(bytes: Uint8Array): string
  • Convert a valid hex string to Uint8Array.

    Parameters

    • bytes: Uint8Array

    Returns string

    The converted Uint8Array.

Generated using TypeDoc