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

Open
wants to merge 1 commit into
base: master
from

Conversation

@rgerganov
Copy link
Contributor

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".
@rgerganov rgerganov force-pushed the rgerganov:file-sign branch from feb2fb8 to cd7829b Mar 23, 2020
@My1

This comment has been minimized.

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.