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

Error when trying to sign using a watch-only wallet #1360

Merged
merged 1 commit into from Dec 14, 2020

Conversation

jagerman
Copy link
Member

The cli wallet was correctly refusing to sign, but the RPC wallet (and
wallet2 internally) allowed it and would sign with the all-0s address,
which of course is invalid and fails to verify. This now throws if
attempting to do so to get an error returned to the rpc endpoint.

Other minor changes here:

  • make wallet2::verify static (verification doesn't depend on the wallet
    instance at all).
  • Add documentation for wallet2 sign/verify
  • Slight DRY of wallet2::sign

The cli wallet was correctly refusing to sign, but the RPC wallet (and
wallet2 internally) allowed it and would sign with the all-0s address,
which of course is invalid and fails to verify.  This now throws if
attempting to do so to get an error returned to the rpc endpoint.

Other minor changes here:
- make wallet2::verify static (verification doesn't depend on the wallet
  instance at all).
- Add documentation for wallet2 sign/verify
- Slight DRY of wallet2::sign
@jagerman jagerman merged commit 4befe3f into oxen-io:dev Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant