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

RPC sign and verify messages with a space #64

Merged
merged 3 commits into from
Jan 26, 2025

Conversation

buffrr
Copy link
Member

@buffrr buffrr commented Jan 26, 2025

This PR adds two RPC commands, walletsignmessage and verifymessage enabling signing and verification of arbitrary binary messages. These commands prefix messages with Spaces signed message: \n magic bytes before signing and verification.

For space-cli, two commands signmessage and verifymessage are introduced, allowing signing and verification of plain text messages e.g.

space-cli signmessage @bitcoin "hello world"

and to verify:

space-cli verifymessage @bitcoin "hello world" --signature <signature>

@buffrr buffrr merged commit 2d6620d into spacesprotocol:main Jan 26, 2025
1 check passed
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.

1 participant