SiaFoundation / app-sia-x

(WIP) Sia App for Ledger Nano X
MIT License
7 stars 4 forks source link

NBGL usage improvment #6

Open xchapron-ledger opened 4 months ago

xchapron-ledger commented 4 months ago

Hello @chris124567, just wanted to let you known that now there is a force_page_start parameter https://github.com/LedgerHQ/ledger-secure-sdk/blob/master/lib_nbgl/include/nbgl_content.h#L108 that can be used to do what you need to do here: https://github.com/SiaFoundation/app-sia-x/blob/master/src/calcTxnHash_nbgl.c That should allow you to use nbgl_useCaseStaticReview (with the callback: https://github.com/LedgerHQ/ledger-secure-sdk/blob/master/lib_nbgl/include/nbgl_content.h#L126) instead of nbgl_useCaseRegularReview which is not recommended.