Function commitmentHash

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

    Returns

    Commitment hash

    Parameters

    • name: `${string}.chain`

      Name to be registered

    • salt: number = ...

      Random salt

    Returns Commitment

Generated using TypeDoc