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

384- and 512-bit foreign fields #1913

Open
mitschabaude opened this issue Nov 20, 2024 · 0 comments
Open

384- and 512-bit foreign fields #1913

mitschabaude opened this issue Nov 20, 2024 · 0 comments

Comments

@mitschabaude
Copy link
Collaborator

mitschabaude commented Nov 20, 2024

Why

Signature schemes used for passports, by number of country:

{
  "rsa": 608,
  "brainpoolP384r1": 54,
  "secp256r1": 19,
  "secp384r1": 34,
  "brainpoolP256r1": 51,
  "brainpoolP512r1": 12,
  "secp521r1": 18
}

As we see here, there are curves from the secp*r1 and brainpool family with 384 or 512 bit base fields. These aren't currently supported in o1js, our foreign field arithmetic only allows up to 256 bits curves.

How

Anything other than leveraging dedicated custom gates is probably much too inefficient. A question might be if the existing foreign field gates could be tweaked to being combined to do multiplications in larger fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant