Set of functions helpful for data encryption on blockchain based on public/private key. This library utilises eccjs. Suitable for both nodejs and browser.
Include [district.encryption]
in your CLJS file.
Generates and returns public/private keypair.
Encrypts content with public key.
Decrypts content with private key.
Base64 encodes string.
Base64 decodes string.
Encrypts with public key and then base64 encodes.
Base64 decodes and then decrypts with private key.