Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LockHashUtils

Hash utilities for SecretLock hashing

Hierarchy

  • LockHashUtils

Index

Constructors

constructor

Methods

Static Hash

  • Perform hash for SecretLock with proficed hash algorithm

    Parameters

    • hashAlgorithm: LockHashAlgorithm

      Hash algorithm

    • input: Uint8Array

      buffer to be hashed

    Returns string

    Hash in hexidecimal format

Static Op_Hash_160

  • Op_Hash_160(input: Uint8Array): string
  • Perform ripemd160 hash

    Parameters

    • input: Uint8Array

      buffer to be hashed

    Returns string

    Hash in hexidecimal format

Static Op_Hash_256

  • Op_Hash_256(input: Uint8Array): string
  • Perform SHA256 hash

    Parameters

    • input: Uint8Array

      buffer to be hashed

    Returns string

    Hash in hexidecimal format

Static Op_Sha3_256

  • Op_Sha3_256(input: Uint8Array): string
  • Perform SHA3_256 hash

    Parameters

    • input: Uint8Array

      buffer to be hashed

    Returns string

    Hash in hexidecimal format

Generated using TypeDoc