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

PoC: Add new command for signing a file #67

Merged
merged 1 commit into from Jun 18, 2020
Merged

Conversation

rgerganov
Copy link
Contributor

@rgerganov rgerganov commented Mar 19, 2020

It has the following syntax:
solo key sign-file <cred_id>

It computes SHA256 hash of the specified file and then signs the hash
with the key that corresponds to the given credentialId. The result is
DER encoded ECDSA signature which is saved to ".sig".

It has the following syntax:
solo key sign-file <cred_id> <filename>

It computes SHA256 hash of the specified file and then signs the hash
with the key that corresponds to the given credentialId. The result is
DER encoded ECDSA signature which is saved to "<filename>.sig".
@My1
Copy link
Contributor

@My1 My1 commented Mar 26, 2020

maybe add an extra command in here for literally just passing 32 bytes (in hex, base64 or whatever) and pass these to the sign function
as the command in the fw is already equipped to precisely do that

@nickray nickray merged commit 73ab517 into solokeys:master Jun 18, 2020
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.

None yet

3 participants