Is it possible to perform public key encryption flow for elliptic-curve cryptography? https://en.wikipedia.org/wiki/Public-key_cryptography
I need to implement the following scenario:
- Alice generates a message.
- Alice encrypts it with Bob's Stellar's public key.
- Alice sends a message to Bob (via an insecure channel).
- Bob gets the message.
- Bob can decrypt this message only with his Stellar's private key.
I can't find a proper method inside the tweetnacl lib (https://github.com/dchest/tweetnacl-js). Could somebody can direct me in the right direction?