Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...
    • Generate seal that is verifiable using verify_seal function.

      Arguments

      • secret_seed - Seed used to derive the secret key
      • input - VRF input data
      • aux_data - Auxiliary data for the VRF proof

      Returns

      A byte vector with the following format:

      • On success (97 bytes):
        • Byte 0: Status code 0 (RESULT_OK)
        • Bytes 1-32: Serialized VRF output (32 bytes, compressed) NOTE: not output hash!
        • Bytes 33-96: Serialized IETF VRF proof (64 bytes, compressed)
      • 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 or if serialization of the output or proof fails.

      Parameters

      • secret_seed: Uint8Array
      • input: Uint8Array
      • aux_data: Uint8Array

      Returns Uint8Array