Open CraigOpie opened 5 months ago
There seems to be an issue with using the public signature to encrypt files. The crypto library and openssl says that the operation is not supported for this key type. However, openssl verifies that it is a proper key:
$ openssl pkey -in pubkey.pem -pubin -text -noout
Public-Key: (256 bit)
pub:
04:8a:19:a0:e3:40:0a:a5:1e:7f:24:08:a2:94:8e:
d0:8f:9f:58:4f:ec:c3:5a:44:e5:cf:a0:2e:11:58:
bc:c4:8c:bc:12:f7:7e:06:a2:b0:d0:ec:09:89:1f:
c3:92:36:13:0d:8e:44:5b:f6:ce:44:c6:a6:10:f0:
73:fc:ea:61:ea
ASN1 OID: prime256v1
NIST CURVE: P-256
I'm looking into alternative ways to accomplish the encryption. Most likely, I will be using a new set of asymmetric keys, then publishing the public key to the blockchain and signing with the users public signature to verify authenticity. Then query for the public key and encrypt the data to publish to the IPFS.
This issue is currently blocked.
As a developer, I want to develop a file upload and encryption page, So that authenticated users can securely encrypt files using their public key and store them on IPFS.
Acceptance Criteria: