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

Support as conversions for field types in compiler #46

Open
aleasims opened this issue Sep 1, 2023 · 0 comments
Open

Support as conversions for field types in compiler #46

aleasims opened this issue Sep 1, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@aleasims
Copy link
Contributor

aleasims commented Sep 1, 2023

You must be able to convert unsigned integers to fields:

123u64 as __zkllvm_field_bls12381_base

Probably since we can handle negative field literals, we could also handle signed integer conversions:

-456i64 as __zkllvm_field_bls12381_base

This will allow to complete implementation of Into trait for field types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant