I'm using secp256k1; in normal scenario alice.privateKey
and bob.publicKey
(or vice versa) is used to derive the same secret
.
Is it safe to use alice.privateKey
and alice.publicKey
to derive secret
as a key for encryption for alice's personal information - where alice.publicKey
and encrypted blob is publicly available?