Skip to content

Allow compilation parameters as array and fold sizes #408

Description

@ivanlele

Project

compiler

Describe the feature

Array lengths and fold/array_fold sizes should also accept compilation parameters in addition to literals.

This would let contracts configure compile-time structure sizes, such as Sparse Merkle Tree depth, multisig key count, proof batch size, or validation rounds, without changing the source.

let values: [u32; param::SIZE] = ...;
fold::<step, param::SIZE>(...);
array_fold::<step, param::SIZE>(...);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions