Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Hashing

This namespace is used to hold functions related to hashing.

Index

Variables

Functions

Variables

Const alg

alg: "SHA512" = "SHA512"

Functions

encodeData

  • encodeData(data: any): Uint8Array
  • Encodes data by JSON stringifying it and then using the TextEncoder to encode it.

    Parameters

    • data: any

    Returns Uint8Array

hashFrom

  • hashFrom(data: any): Promise<string>
  • Returns a SHA-512 hash from any given data. Used internally for the Merkle Tree.

    export

    Parameters

    • data: any

      Any data.

    Returns Promise<string>

    A promise containing the hash of the data that was passed into the function.

Generated using TypeDoc