near / near-api-js

JavaScript library to interact with NEAR Protocol via RPC API
https://near.github.io/near-api-js
MIT License
390 stars 244 forks source link

Keystore should also expose encryption/decryption #175

Closed bowenwang1996 closed 3 years ago

bowenwang1996 commented 4 years ago

Right now keystore only has message signing and signature verification but doesn't have anything related to encryption/decryption.

janedegtiareva commented 4 years ago

@bowenwang1996 is there a customer use case for this? It would be helpful in order to assign priority properly.

bowenwang1996 commented 4 years ago

@janedegtiareva I think we just asked people to use tweetnacl directly, so not very urgent.

abacabadabacaba commented 4 years ago

NEAR client libraries are for working with NEAR. Developers needing encryption/decryption should use a different library designed for that. We shouldn't use NEAR account keys for things other than signing transactions, see nearprotocol/nearcore#2833.