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] Unknown type compilation error #564

Open
CblPOK-git opened this issue Mar 8, 2024 · 0 comments
Open

[Possible bug] Unknown type compilation error #564

CblPOK-git opened this issue Mar 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@CblPOK-git
Copy link
Contributor

` #include <nil/crypto3/hash/algorithm/hash.hpp>
#include <nil/crypto3/hash/sha2.hpp>

using namespace nil::crypto3;

[[circuit]] bool sha256_example(typename hashes::sha2<256>::block_type block0,
                                                          typename hashes::sha2<256>::block_type block1) {

    typename algebra::curves::pallas::base_field_type::value_type a = block0[0];
    typename algebra::curves::pallas::base_field_type::value_type b = block1[0];
    a = a + b;

    return a < b;

}`
@CblPOK-git CblPOK-git added the bug Something isn't working label Mar 8, 2024
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
None yet
Development

No branches or pull requests

2 participants