-
Notifications
You must be signed in to change notification settings - Fork 10
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
Ledger | App Error: | 28417 apdu sign verify error #66
Comments
Hey @murisi, one question regarding what we talked before, are you using the first N random values on the builder ? |
I am trying to debug this on zemu, using the info from your debug file |
@murisi I have one question requerdinf the process you followed:
|
Yes, I believe so. The nth spend description should be using the nth |
I believe the problem might be in the computation of the cv values for converts. We didn't have transactions example with converts until now, and I can see the computed cv is invalid. |
Hi @chcmedeiros . I believe that I've followed the above process. See: https://github.com/anoma/namada/blob/5a3b3c7af8276df74a457bb48edfcc0afb1894f5/crates/apps_lib/src/client/tx.rs#L934-L1067 . Breaking it down:
Yes exactly, the error happens on step 2. The hardware wallet displays the entire MASP transaction along with "approve" and "reject" buttons. Pressing the "approve" button causes the CLI to display, "Ledger | App Error: | 28417 apdu sign verify error". |
Hi @chcmedeiros . Also, I've integrated the |
My bad we did not need the blob! I will fix that input parameters. |
@murisi need your input here on the cv computation for the converts. We should use the generator and value rigth ? |
@chcmedeiros I think it should be computed as
Thanks! |
Hey @murisi are you able to test using the fixes branch ? |
Hi @chcmedeiros , thanks for looking into this. I've ran the test using the fixes branch, but the |
@murisi The only check on the check spends that is not covered by zemu is the rk computation, but I have the computation being validated in cpp tests with some of your test vectors. Can this be a difference in the ask ? |
We can try and remove the rk verification to check if indeed the issue is there. The cv comparison is similar to the converts and outputs, and at least in zemu it is working without problem. |
@chcmedeiros Apologies, the remaining problem was on my side. In order to be able to test the Ledger app with For context on the extended key issue, see the integration with the hardware wallet's key generation here: https://github.com/anoma/namada/blob/a3227fe8214c3d82f3ec15c42b1a11617ebd6dbf/crates/apps_lib/src/client/tx.rs#L848-L940 . |
Whenever I try to sign MASP transactions on Ledger app v0.0.28 I get the following error after pressing selecting/pressing "Approve" on the hardware wallet:
Ledger | App Error: | 28417 apdu sign verify error
. I assume the error emanates from the vicinity ofcrypto_check_masp
. Some notes:m/32'/877'/0'
(from the mnemonicequip will roof matter pink blind book anxiety banner elbow sun young
).0x03bc4834ed00000080fe5f31e2d3bd521177e96903bafaeea1ff38afbfc87bc92ffd8bafa9f8f939c707bc9208dcd6e622a6aacab839c23c26404cd362a33a6fb5f9e9871b65652e09a1a8f2975e2d21edeac47b57f70ade8fff6ede55049d5be4a1c95dcbec47ed0c90790db1d8232c742fa3c4437e958276951958bb2392c9debd325f306582daa6ad0a2591b6c6ad459fa2d181005eeef982e378b807eb109275ae89f288f86697
.0x03bc4834ed00000080fe5f31e2d3bd521177e96903bafaeea1ff38afbfc87bc92ffd8bafa9f8f939c7031b9d3d838fb0343ac264aeb78ba909e5a731cd7a3b4d601af55bfde40e2b6df0c1485f8201ab1675c00d1201cb18f0eea8c9e92d26189fc9738544c2e4143d90790db1d8232c742fa3c4437e958276951958bb2392c9debd325f306582daa6ad0a2591b6c6ad459fa2d181005eeef982e378b807eb109275ae89f288f86697
.SpendBuildParams
is used in the construction of the nth spend description. Analogously, the same thing is true for the convert descriptions and output descriptions.namadac
before it knows the exact constitution of theTransaction
.See attached some logs of the calls I'm making. Am I doing something wrong?
apdu_sign_verify_error.txt
The text was updated successfully, but these errors were encountered: