It would be great to handle string encryption using connex and Sync2.
The goal is to achieve something similar to sending private messages on the blockchain using public keys and decoding them on the recipient side. It can be implemented into a private chat system or for publishing private data without leaving the connex system.
It would be great to handle string encryption using connex and Sync2.
The goal is to achieve something similar to sending private messages on the blockchain using public keys and decoding them on the recipient side. It can be implemented into a private chat system or for publishing private data without leaving the connex system.
Similar to this example:
https://github.com/pubkey/eth-crypto/blob/3c26820796d6613ce0e70c47732601283ee129ea/tutorials/encrypted-message.md
I suggest to either modify the signing service with a new option (
encrypt|decrypt
) or add a new encryption service:In the end the following snippet should work:
to support multiple payloads without calling encryption/decryption for each, payload should also support a list/array of objects: