Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Asymmetric Encryption #691

Closed
kevinjanada opened this issue Apr 5, 2021 · 5 comments
Closed

Feature Request: Asymmetric Encryption #691

kevinjanada opened this issue Apr 5, 2021 · 5 comments
Labels

Comments

@kevinjanada
Copy link

There are some use cases where asymmetric encryption is needed, where the public key is used to encrypt a message, and private key is used to decrypt that message.
Currently this is not possible because there is no API in that lets us use the private key of an account.

Is this something that is possible to be implemented?
I don't mind having a try at this myself if it is.

@jacogr
Copy link
Member

jacogr commented Apr 5, 2021

There is no exposed asymmetric encryption/decryption in sr25519. See polkadot-js/common#633

@kevinjanada
Copy link
Author

I see..
Just an idea, but would it make sense to have a separate set of keypairs (call it encryption keypairs)?
If so, i think the keypairs can be in ed25519 and therefore use naclSeal & naclOpen for encrypt/decrypt

@jacogr
Copy link
Member

jacogr commented May 29, 2021

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

@polkadot-js-bot
Copy link

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jul 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants