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

Add signing and verification of arbitrary messages #1290

Closed
ianjdarrow opened this issue Feb 25, 2020 · 2 comments
Closed

Add signing and verification of arbitrary messages #1290

ianjdarrow opened this issue Feb 25, 2020 · 2 comments
Assignees

Comments

@ianjdarrow
Copy link

ianjdarrow commented Feb 25, 2020

To facilitate certain types of off-chain communications, it's useful to be able to verify that a message came from someone who controls a particular address. One way to do this (proposed by @whyrusleeping in response to some questions) is to implement two new commands:

lotus wallet sign --from=<addr> <message> should produce a valid signature over <message> signed by <addr>'s private key.
lotus wallet verify --from=<addr> --sig=<signature> <message> should verify whether the provided signature is valid over the given message and address.

arajasek added a commit that referenced this issue Feb 25, 2020
- The command takes an (optional) address and a message (in hex) and prints out a signature of the msg
arajasek added a commit that referenced this issue Feb 25, 2020
- The command takes an address, message, and signature, and returns true if the sig is valid
arajasek added a commit that referenced this issue Feb 25, 2020
- The command takes an (optional) address and a message (in hex) and prints out a signature of the msg
arajasek added a commit that referenced this issue Feb 25, 2020
- The command takes an address, message, and signature, and returns true if the sig is valid
arajasek added a commit that referenced this issue Feb 26, 2020
- The command takes an address, message, and signature, and returns true if the sig is valid
@arajasek arajasek self-assigned this Feb 26, 2020
arajasek added a commit that referenced this issue Feb 27, 2020
- The command takes an (optional) address and a message (in hex) and prints out a signature of the msg
arajasek added a commit that referenced this issue Feb 27, 2020
- The command takes an address, message, and signature, and returns true if the sig is valid
arajasek added a commit that referenced this issue Feb 28, 2020
- The command takes an address and a message (in hex) and prints out a signature of the msg
arajasek added a commit that referenced this issue Feb 28, 2020
- The command takes an address, message, and signature, and returns true if the sig is valid
magik6k added a commit that referenced this issue Mar 1, 2020
Re: #1290: Add sign and verify CLI commands
@arajasek
Copy link
Contributor

arajasek commented Mar 2, 2020

Done in #1292

@arajasek arajasek closed this as completed Mar 2, 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

No branches or pull requests

3 participants
@arajasek @ianjdarrow and others