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

FR: signing/verifying a message #1969

Open
Maxnflaxl opened this issue May 7, 2024 · 0 comments
Open

FR: signing/verifying a message #1969

Maxnflaxl opened this issue May 7, 2024 · 0 comments
Assignees

Comments

@Maxnflaxl
Copy link
Member

Maxnflaxl commented May 7, 2024

Feature title:

Signing/verifying a message

Technical implementation:

@valdok

Describe the solution you'd like

sign a message with CLI:
./beam-wallet sign_message --address=<address> --message=<message>
? If the --address argument is missing, use default address.
? If the --message argument is missing, only want to prove ownership of an address.
=> returns signature

verify a message with CLI:
./beam-wallet verify_message --address=<address> --message=<message> --signature=<signature>
=> successful: Good signature from <address>
=> fail: Invalid signature from <address>

sign a message with wallet-api:

-->

{
    "jsonrpc":"2.0", 
    "id": <TBD>,
    "method":"sign_message",
    "params":
    {
        "address" : "",
        "message" : "",
    }
}

<--

{
    "jsonrpc":"2.0", 
    "id": <TBD>,
    "result":
    {
        "signature" : ""
    }
}

verify a message with wallet-api:

-->

{
    "jsonrpc":"2.0", 
    "id": <TBD>,
    "method":"verify_message",
    "params":
    {
        "address" : "",
        "message" : "",
        "signature": ""
    }
}

<--

{
    "jsonrpc":"2.0", 
    "id": <TBD>,
    "result":
    {
        "signature" : ""
    }
}

Additional context
BeamMW/beam-ui#1066
https://github.com/BeamMW/beam/wiki/Beam-wallet-protocol-API-v7.3
https://beam.mw/docs/cli

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

No branches or pull requests

2 participants