-
Notifications
You must be signed in to change notification settings - Fork 18
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
tx with params fails to sign #173
Comments
sorry didnt explain properly, its complete, the string is the hex encoded cbor buffer |
Hi @hugomrdias , thanks for letting us know that. We'll shortly be investigating this and get back to you with some any updates. Thanks! |
Hey @hugomrdias, I was actually testing the tx blob, and I noticed the params are encoded as byte string, which is correct. However, what it is found in the inside it is just the hex value for an ascii string, which we think it is not correct. Params are byte string encoded at tx level, but inside we expect a cbor encoded array, map or byte string. This works (byte string encoded value inside params) 8A00550191519A1DE64C30BE61381AC8168AA411770D0984550178B407E26C1825B937B85D8E506F492BEFF267F81905A24200011A001776A74400019C634400019845004C4B68656C6C6F20776F726C64
4B68656C6C6F20776F726C64
This works (array encoded value inside params) 8A00550191519A1DE64C30BE61381AC8168AA411770D0984550178B407E26C1825B937B85D8E506F492BEFF267F81905A24200011A001776A74400019C634400019845004D814B68656C6C6F20776F726C64
814B68656C6C6F20776F726C64
This does NOT work (your tx blob) 8a00550191519a1de64c30be61381ac8168aa411770d0984550178b407e26c1825b937b85d8e506f492beff267f81905a24200011a001776a74400019c634400019845004b68656c6c6f20776f726c64
You can see it here ledger-filecoin/app/src/parser_impl.c Lines 272 to 287 in 9e19349
|
@hugomrdias can you please check whether this solve your issue or not? If it does so, let me know and I can close the issue! Thanks |
AFAIK params can be anything base64pad string or bytes when in cbor. |
This tx has a base64('hello world') in the params and throw "Data is invalid Unexpected data type"
🔗 zboto Link
The text was updated successfully, but these errors were encountered: