Skip to content

Regression: trusted setup panics #304

@marmistrz

Description

@marmistrz

This is a regression introduced in #302.
The following code

        let secrets_len = 15;
        let (s1, s2, s3) = generate_trusted_setup(secrets_len, [0; 32]);

panics due to

thread 'commitment::tests::test_prove' panicked at /home/marcin/.cargo/git/checkouts/rust-kzg-f9d605f513aae74b/21670cd/blst/src/utils.rs:34:66:
called `Result::unwrap()` on an `Err` value: "Supplied list is longer than the available max width"```

You likely need to use the ceiling of the log, because the tests succeeds with secrets_len = 16

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