Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upweb3: Signature verification throws an error if the transaction was not signed properly #11885
Labels
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
When a transaction is compiled, it creates entries in its signatures array for the public keys that it expects signatures from. If any of those signatures are missing, a call to
verifySignatureswill throw an error because it tries to pass anullsignature intonacl.sign.detached.verify.Proposed Solution
Handle this case better by throwing an understandable error message explaining that the transaction was not signed by a particular public key