Closed MasterAwesome closed 10 months ago
@tarcieri, I've added support for fiat-constify
for the newer fiat-crypto
generated Rust code
Still interested in this, FWIW
Oh yes my b kinda forgot about this, should I go ahead and update one of the elliptic-curve crates with this codegen and ensure tests pass?
I'll create a tracking issue too for the migration of the remaining crates that depend on fiat_crypto. If I remember right, there are changes required to primeorder too for the inversion etc. How should we approach this?
If you can PoC it on a single elliptic curve crate (e.g. p521
like you were working on before) and get all of the tests passing in a PR I'd be fine with merging this.
We'll begin making breaking changes to several of the crates early next year and can take care of getting all of the other crates updated then, including primeorder
.
fiat-crypto introduced new types instead of just type aliases, this causes the generated code to no longer compile. This is a breaking change since this will no longer compile code generated by fiat-crypto version < 0.0.21
Tests:
fiat-crypto
rust crate can be compiled using rustcCodegen
Multiple output args
Before
After
Newtyped const output/input
Before
After