Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace utils

Index

Functions

  • binaryToByte(bin: string): number
  • bytesToBinary(bytes: any[]): string
  • deriveChecksumBits(entropyBuffer: string | Buffer): string
  • lpad(str: string | any[], padString: string, length: number): string | any[]
  • Parameters

    • str: string | any[]
    • padString: string
    • length: number

    Returns string | any[]

  • randomBytes(n: number): Promise<Buffer>
  • sha256(buffer: string | Buffer): Buffer
  • verify(signature: Uint8Array, message: string | Uint8Array, publicKey: Uint8Array): Promise<boolean>
  • Parameters

    • signature: Uint8Array
    • message: string | Uint8Array
    • publicKey: Uint8Array

    Returns Promise<boolean>

Generated using TypeDoc