question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calling addSignature errors out

See original GitHub issue

Error message

REGISTRY: [Error: Cannot map Enum JSON, unable to find '010ae36681df50970a22ce55defe0775b3772bf05b08e6106954b42b5717ef082200a5445357ec345f7ec50151c4c41fb6fc432bef0461a19f5bc0efb1dc1c0f8c' in ed25519, sr25519, ecdsa]

Context

Currently packing the tx signing payload into a QR code and using parity signer to sign the transaction. Parity signer is able to recognize the QR payload and deliver back a signature which looks like the following. And I’m using the data field.

However getting constantly the error msg. It would be helpful that anyone could provide me any direction to dig further.

{
   "bounds":{
      "origin":{
         "x":"25.452043",
         "y":"37.084819"
      },
      "size":{
         "height":"133.498951",
         "width":"135.724164"
      }
   },
   "data":"017acb926608839c110332f59c3761ce6caa01785b4ccca2691a3677555229066ad8f7d501995b3e1ea3b40978b0f163a08cdb13326e8a64f08d32a88fc9c5a989",
   "rawData":"482303137616362393236363038383339633131303333326635396333373631636536636161303137383562346363636132363931613336373735353532323930363661643866376435303139393562336531656133623430393738623066313633613038636462313333323665386136346630386433326138386663396335613938390ec11ec11ec11ec11ec11ec11ec11ec11ec11ec11ec11",
   "target":3929,
   "type":"org.iso.QRCode"
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:33 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jacogrcommented, Dec 8, 2020

The API registry is the one actually decorated with the signedExtensions and all recent types. So the way to access a registry -

  • on the api itself (these actually get swapped depending on specVersion)
  • on any type (hence using tx.registry in my sample) - this is the latest registry used to create the type

You should really never create these standalone - the apps UI does, but that is just due to historic reasons, there are still a couple of low-impact areas left where it was not done properly. (It comes from the age before isolated types, so it used to have everything global - so it still have some warts and holes)

1reaction
jacogrcommented, Dec 7, 2020

Since you are on RN, this thread may be of use - https://github.com/polkadot-js/apps/issues/2906 (discrepancies between what the signer expects and what is easy to generate and read in that environment)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Messages do not include default email signature - Outlook
This article describes why Outlook autosignatures are not added when new email messages are created from a program other than Outlook.
Read more >
How to troubleshoot issues with signatures not added to ...
This article describes the most common reasons why signatures created via CodeTwo Email Signatures for Office 365 are not added to messages ...
Read more >
How to solve problems with email signatures in Office 365?
If it is a global Office 365 email signature, go through the settings in Exchange Admin Center and make sure you append the...
Read more >
Error: Cannot invoke an expression whose type lacks a call ...
The function that it returns has a call signature, but you told Typescript to completely ignore that by adding : any in its...
Read more >
Signatures in Microsoft Outlook Are Not Working - YouTube
We demonstrate how to fix your Microsoft Outlook signatures if they are not working. Symptom: When you try to insert a signature in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found