Zondax / ledger-stacks

Apache License 2.0
17 stars 7 forks source link

Issues signing `principalCV` clarity types #119

Closed kyranjamie closed 1 year ago

kyranjamie commented 1 year ago

As mentioned on Slack, and discussed with @neithanmo, there are issues signing transactions created by popular Stacks app such as Arkadiko and Alex.

Issue demo app repo →

It seems the device is unable to parse certain principal clarity values, used as function arguments. This only happens when a principal belonging to a smart contract is used.

For example: SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.wrapped-stx-token

:link: zboto Link

neithanmo commented 1 year ago

yes, the parser is able to read principals, but somehow it does not "understand" the principal that comes as part of contract calls.. by what you shared. it seems that the principal comes with a suffix at the end, probably, that is the reason why it fails.

kyranjamie commented 1 year ago

Closed by #121