Function deriveSFromPassword

Derives s from a password using sha3_256. You might want to repeatedly hash the password or apply a key derivation function (e.g., PBKDF2, Argon2, or scrypt) to strengthen it and ensure more uniform distribution over the scalar field. This is particularly important if the password space is weak.

  • Parameters

    • password: string

      The password to derive s from.

    Returns Uint8Array

    The derived s value.