solokeys / solo1-cli

Solo 1 library and CLI in Python
https://pypi.org/project/solo-python
Apache License 2.0
183 stars 69 forks source link

PoC: Add new command for signing a file #67

Closed rgerganov closed 4 years ago

rgerganov commented 4 years ago

It has the following syntax: solo key sign-file

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".

My1 commented 4 years ago

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