Zondax / ledger-kusama

Kusama app for Ledger Nano S and X
Apache License 2.0
50 stars 19 forks source link

Error signing session.setKeys in polkadot JS. #207

Closed redref closed 3 months ago

redref commented 5 months ago

Hello,

Detected an issue with Kusama session.setKeys call.

Error JS side :

signAndSend: error: Error: Unexpected buffer end
    at p (modu.c5e227c622fddc08.js:1:116341)
    at async modu.c5e227c622fddc08.js:1:116509
    at async f.withApp (modu.c5e227c622fddc08.js:1:117640)
    at async v.signPayload (comm.88d5168f95c4b7c1.js:4084:3227)
    at async r.__internal__signViaSigner (modu.c5e227c622fddc08.js:1:82835)
    at async modu.c5e227c622fddc08.js:1:81560

My understanding is that this issue is linked to drop of imonline key in the extrinsinc call. Encoded call data :

0x0800e585211a218d0b20391ac3ab0755b2ffc04c9741d8c2cfac60c684def5b97afe3288136a0c4c56024d46384f2f5c9af6953baa9400cde4fc37399def5f5bfe18929e7b260e78d2e8a73007276b3d63779fe63b85f6cb89ed3244d7cf9f0fd64a164a03a0a6d89f1d33adad99c6e202a8be1a90d808a47287e710016cb2d8fd4d74d0cd7991c467099ae6b7b928738a7eb4846107cd70d254bc3a752e2f688a430295b27db5741a46dcad757f4cdac782b1b13929bfdeed2313ecf7aac7c464b04800

Payload :

callindex
0800
grandpa
e585211a218d0b20391ac3ab0755b2ffc04c9741d8c2cfac60c684def5b97afe
babe
3288136a0c4c56024d46384f2f5c9af6953baa9400cde4fc37399def5f5bfe18
paravalidator
929e7b260e78d2e8a73007276b3d63779fe63b85f6cb89ed3244d7cf9f0fd64a
paraassignment
164a03a0a6d89f1d33adad99c6e202a8be1a90d808a47287e710016cb2d8fd4d
authoritydiscovery
74d0cd7991c467099ae6b7b928738a7eb4846107cd70d254bc3a752e2f688a43
beefy
0295b27db5741a46dcad757f4cdac782b1b13929bfdeed2313ecf7aac7c464b048
proof
00

I guess an update is needed in key reading methods here

Thanks for any tip.

:link: zboto Link