Skip to content

Const arithmetic in array type positions #2

@micahscopes

Description

@micahscopes

The Groth16 verifier wants a verification key parameterized by number of public inputs:

pub struct VerifyingKey<const N: usize> {
    pub ic: [G1Point; N + 1],
}

Currently `N + 1` in the array type position doesn't compile. This blocks const-generic verifiers that work across different circuit sizes.

Metadata

Metadata

Assignees

No one assigned

    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