Function hashStrToField

  • Hashes a string to a field element via poseidon

    Parameters

    • str: string
    • maxSizeBytes: number

    Returns bigint

    bigint result of the hash