Array of derived layout IDs (typically 50 for LEP-1)
Cryptographic signature over the layout data (Base64-encoded bytes)
The constructed index file object
// Typical LEP-1 workflow
const layoutIds = await generateIds(layoutFile, layoutSignature, rq_ids_ic, rq_ids_max);
// Sign the layout (done by wallet via ADR-036 signArbitrary)
const layoutBytes = canonicalJsonBytes(layout);
const signature = await wallet.signArbitrary(chainId, signerAddress, layoutBytes);
const signatureBytes = fromBase64(signature.signature);
// Build the index file
const indexFile = buildIndexFile(layoutIds, signatureBytes);
Constructs the index file for a LEP-1 Cascade upload.
The index file contains metadata about the RaptorQ layout and includes a cryptographic signature to ensure data integrity. It must be serialized using canonical JSON when computing signatures or transmitting to the chain.