Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Possible bug] Compiler generates wrong size for memcpy #469

Closed
CblPOK-git opened this issue Dec 22, 2023 · 1 comment · May be fixed by #465
Closed

[Possible bug] Compiler generates wrong size for memcpy #469

CblPOK-git opened this issue Dec 22, 2023 · 1 comment · May be fixed by #465
Assignees
Labels
bug Something isn't working

Comments

@CblPOK-git
Copy link
Contributor

CblPOK-git commented Dec 22, 2023

#include <nil/crypto3/algebra/curves/bls12.hpp>

using namespace nil::crypto3;

constexpr const std::size_t validators_amount = 5;

template<std::size_t size>
bool aggregate_verify(
    std::array<typename algebra::curves::bls12<381>::template g2_type<>::value_type, size> pubkeys
) {
    return true;
}

[[circuit]] bool verify_aggregated_signature(
    std::array<typename algebra::curves::bls12<381>::template g2_type<>::value_type, validators_amount> pubkeys
) {

    return aggregate_verify(pubkeys);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants