polkadot-js / ui

Re-usable browser libraries and React UI components used inside the polkadot.{js} family of Polkadot and Substrate applications. Full documentation & examples available
https://polkadot.js.org/ui/
Apache License 2.0
121 stars 75 forks source link

react-qr UOS payload vs. message #180

Closed pmespresso closed 5 years ago

pmespresso commented 5 years ago

according to @maciejhirsz : https://github.com/maciejhirsz/uos#substrate-payload,

Currently react-qr supports a setting a utf8 encoded message but not an actual payload per se.

jacogr commented 5 years ago

Ok, so the QR is completely independent of that, that is up to the user and it not part of this at all. The way it works -

jacogr commented 5 years ago

As an aside, the above description is wrong for extrinsic v3. (payload has genesisHash as well)

pmespresso commented 5 years ago

ahh okay, thank you for the super quick response

jacogr commented 5 years ago

So there may very well be some tweaks required - however, the QR really doesn't care about the data passed, it can be anything. (If we try and build in tx logic here, we are setting ourselves up for failures - whatever it gets in must already be encoded, @polkadot/types handles all that and really tracks the extrinsic formats)

However... there may be that we are missing an additional flag based on a type that the caller passes in and we don't have yet. (For those, PRs required, not close to passing the stuff yet, so cannot really comment if everything is 100%)

polkadot-js-bot commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.