-
Notifications
You must be signed in to change notification settings - Fork 104
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
feat: migrate to starknet-types-core
Felt type
#562
Conversation
Did you run the benchmarks to check for possible regressions? Reports on those would be valuable for the types and lambdaworks teams. |
I haven't had time to do it yet, especially because the integration is not completely finished. There are two or three fixes left to do. But as soon as I have everything, I will run the suite of benchmarks between before and after to give feedback. |
Branch staled. Lemme try to squash and rebase this. |
Yes last modifications were done before your last two merges. Let me know if you need some help. |
9d9a323
to
5133c7b
Compare
Squashed and rebased. CI green now. |
I prefer to have higher level crates use |
50370e9
to
e0ed496
Compare
starknet_types_core
Felt
starknet-types-core
Felt type
starknet-types-core
Felt typestarknet-types-core
Felt type
Reviewed the diffs and they look good. I'm just gonna run some size tests and benchmark on my side before merging. |
Ran benchmark (
It looks like while performance has been improved for Notably, the |
@tcoratger Any idea on ECDSA and Poseidon perf here? Am a bit reluctant to merge this due to the perf impact. |
(Edit: see this comment for an update) I just went ahead and tested the Somehow the resulting web app cannot arrive at the correct public key based on the private key. I just tested the This is definitely a blocker for this PR. |
Just upgraded to
This is still comparing to The |
I did some debugging and as it turns out, the This bug must be fixed in |
86cee6c
to
b4a4f62
Compare
Rebased on |
b4a4f62
to
5a6b509
Compare
Tests failing due to |
The `js` feature on `getrandom` needs to be enabled for wasm builds. This was previously handled by `starknet-ff`, which is now removed.
5a6b509
to
3de89ed
Compare
3de89ed
to
2252637
Compare
Rebased on |
Latest benchmark results:
Pedersen hashing is faster; EC operations and Poseidon are slower. |
Pedersen is faster, but EC and Poseidon are slower with the new `Felt` type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should close #554.