Typeberry by Fluffy Labs - v0.9.0
    Preparing search index...

    Function batchGenerateRingVrfForValidators

    • Batch-generate ring VRF tickets for multiple validators.

      secretSeedsData is fixed-width concatenated seed data, split by secretSeedDataLen. proverKeyIndices and secret seeds must have the same count. The returned records are ordered validator-major, then input-major: validator_0/input_0, validator_0/input_1, ..., validator_1/input_0, ...

      Each record is status byte || signature (784 bytes). If the validator metadata is malformed, the function returns a single error status byte.

      Parameters

      • ringKeys: Uint8Array
      • proverKeyIndices: Uint32Array<ArrayBufferLike> | readonly number[]
      • secretSeedsData: Uint8Array
      • secretSeedDataLen: number
      • inputsData: Uint8Array
      • vrfInputDataLen: number

      Returns Uint8Array