@lightprotocol/stateless.js - v0.22.1-alpha.1
    Preparing search index...

    Function hashToBn254FieldSizeBe

    • /**

      • Hash the provided bytes with Keccak256 and ensure the result fits in the
      • BN254 prime field by repeatedly hashing the inputs with various "bump seeds"
      • and truncating the resulting hash to 31 bytes.

      Parameters

      • bytes: Buffer

      Returns [Buffer<ArrayBufferLike>, number] | null

      Use hashvToBn254FieldSizeBe instead.