Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...
    • Compute VRF output hash from a secret seed and input data.

      This function derives a deterministic VRF output hash without generating a proof. Unlike generate_seal, this produces only the output hash, not a verifiable signature.

      Arguments

      • secret_seed - Seed used to derive the secret key
      • input - VRF input data to be hashed

      Returns

      A byte vector with the following format:

      • On success (33 bytes):
        • Byte 0: Status code 0 (RESULT_OK)
        • Bytes 1-32: VRF output hash (32 bytes)
      • On error (1 byte):
        • Byte 0: Status code 1 (RESULT_ERR)

      Returns an error if the input cannot be converted to a valid VRF input point.

      Parameters

      • secret_seed: Uint8Array
      • input: Uint8Array

      Returns Uint8Array