Using ECDSA key pair for ECDH
vitalyPru opened this issue · 1 comments
vitalyPru commented
The ecdh module assumes only using EphemeralSecret as private key for ECDH operation.
And the only way to create EphemeralSecret is to create random number.
I think it make sense to allow to create EphemeralSecret from ESDCA private key or directly from byte array.