Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
develop
Description
This PR bumps the version of app-seed-tool to v1.7.4
v1.7.4 fixes issues aido#32 and aido#36.
While working on v1.7.4 the following was observed:
The documentation for the
cx_bn_gf2_n_mul()
syscall should probably be updated to state that the operands and result should not overlap. Maybe something similar to what is already documented for the BN bit manipulation syscalls:https://github.com/LedgerHQ/ledger-secure-sdk/blob/c6d481025144ab2a57b904e98f796f3d5c1d83fc/include/ox_bn.h#L356
Perhaps this rule should even be enforced by changing:
https://github.com/LedgerHQ/ledger-secure-sdk/blob/c6d481025144ab2a57b904e98f796f3d5c1d83fc/src/syscalls.c#L638
to something like the following:
cx_bn_cnt_bits()
syscall is misleading. The documentation suggests that the syscall returns the number of bits set in a big number:https://github.com/LedgerHQ/ledger-secure-sdk/blob/c6d481025144ab2a57b904e98f796f3d5c1d83fc/include/ox_bn.h#L495
This instead should probably state that the syscall returns the number of significant bits in a big number.
See Incorrect value returned from
cx_bn_cnt_bits
speculos#487 (comment)I am not sure if an issue needs to be raised for each of these points