Function commitmentHash

  • Generate the commitment hash by hashing the salt and name, base 58 encoding the result and prepending 'cm_'

    Parameters

    • name: `${string}.chain`

      Name to be registered

    • salt: number = ...

      Random number

    Returns Commitment

    Commitment hash

Generated using TypeDoc