Derives a sequence of layout IDs according to LEP-1 specification.
This function generates a deterministic sequence of layout IDs by:
The initial counter value from blockchain action parameters
The number of layout IDs to generate
A promise resolving to an array of Base58-encoded layout IDs
If rq_ids_max is zero or negative
If layoutFile or layoutSignature is empty
const layoutFile = new Uint8Array([...]);const layoutSignature = new Uint8Array([...]);const layoutIds = await generateIds(layoutFile, layoutSignature, 1000, 50);console.log('First ID:', layoutIds[0]);console.log('Last ID:', layoutIds[49]); Copy
const layoutFile = new Uint8Array([...]);const layoutSignature = new Uint8Array([...]);const layoutIds = await generateIds(layoutFile, layoutSignature, 1000, 50);console.log('First ID:', layoutIds[0]);console.log('Last ID:', layoutIds[49]);
Derives a sequence of layout IDs according to LEP-1 specification.
This function generates a deterministic sequence of layout IDs by: