-
Notifications
You must be signed in to change notification settings - Fork 264
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
Reduce the size of precomputed signing table for lowmemory #323
Conversation
Can I ask what's the motivation behind this? a specific setup where this was too much memory? (i9-9980HK, turbo off, window size 4, gen prec bits 2)
(window size 2, gen prec bits 2)
|
sorry, I did a test changing
Why do you say 2048 bytes, is this line wrong? https://github.com/rust-bitcoin/rust-bitcoin/blob/df4d70a37e96e6f82c5231063635e877cb6b4f77/embedded/src/main.rs#L37
In general lower required memory enlarges the possible usable MCUs, and personally, I would like to run it on the stm32f4xx Blackpill (64k ram) |
I completely forgot that our precompute size is in blocks of 16 bytes and not in bytes(funny considering I changed that lol) |
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.
tACK
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.
ACK 505b04d
Not sure why CI is not running. Passes locally for me.
So apparently when you try to use this library inside Fortanix SGX enclave you get a SIGBUG, but with this PR + |
Reduce the size of precomputed signing table (ECMULT_GEN_PREC_BITS) for
lowmemory
featurein rust-bitcoin embedded test secp preallocate_size become
33472
from66240