Note Ciphertexts
Encrypting a note plaintext involves the following steps:
-
Derive Ephemeral Secret Key: Use decaf377-ka to derive an ephemeral secret key esk.
-
Derive Diversified Public Key: Generate a diversified public key from the secret key epk.
-
Shared Secret Derivation: Perform a secure Diffie-Hellman key exchange to derive the shared secret between the sender and recipient.
-
Symmetric Key Generation: Generate a symmetric ChaCha20-Poly1305 payload key from the shared secret and ephemeral public key.
-
Encryption: Encrypt with note plaintext, represented as a vector of bytes, using the ChaCha20-Poly1305 encryption algorithm.
-
Construct the encrypted note ciphertext object.
The note ciphertext is 176 bytes in length.