View Source DiodeClient.BitMessage (Diode Client v1.3.1)

BitMessage implementation used for Diode P2P cold messages.

Our storage is a bit more compact than the original BitMessage spec at: https://wiki.bitmessage.org/index.php/Encryption

  1. We're skipping "Curve Type" because we always use secp256k1
  2. We always use the compact public key representation instead of full X and Y

Summary

Functions

decrypt(bit_message, to_privkey_k)

encrypt(message, to_pubkey_k, hmac_type \\ :sha512)

point_multiply(point, scalar)