Skip to content
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

Inject Types from Metadata QR #318

Closed
pmespresso opened this issue Aug 13, 2019 · 3 comments · Fixed by #791 or #793
Closed

Inject Types from Metadata QR #318

pmespresso opened this issue Aug 13, 2019 · 3 comments · Fixed by #791 or #793

Comments

@pmespresso
Copy link
Contributor

pmespresso commented Aug 13, 2019

Following this: #273

For users who don't want to ever upgrade their Signer, eventually payload will fall out of sync with latest metadata. The solution we discussed is to host a QR code with the minified metadata to inject the latest types on the fly for decoding.

Upon scanning a "add new metadata" QR code:

  • verify that the payload has been signed by a Parity key
  • the user should ideally not be asked for anything else than "be careful and double check everything".

The best would be to add the genesis hash of the network in the payload.

@pmespresso
Copy link
Contributor Author

ok so just tested this and for call only meta v8 for Kusama this will be about 32 frames so just over a minute of holding your hand steady.

@pmespresso
Copy link
Contributor Author

since we use the type registry from @polkadot/api, a better and reasonably implementable UX would be to allow registering specific types as is done in @polkadot/apps

@hanwencheng
Copy link
Contributor

A way to do that is maybe we have a similar website as https://react-native-community.github.io/upgrade-helper/ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants