advanced 90 min

Encrypted Chat on XRPL

Build an encrypted messaging system using XRPL transaction memo fields. Learn public-key cryptography, Ed25519 to X25519 key conversion, and NaCl box encryption.

Overview

Build an encrypted messaging system using XRPL transaction memo fields. Learn public-key cryptography, Ed25519 to X25519 key conversion, and NaCl box encryption.

Resources

Assignments

1. Encrypt a Message

Using tweetnacl, encrypt a message with the recipient's public key and send it as a memo in an XRP transaction.

2. Decrypt Incoming Messages

Build a listener that detects encrypted memos, decrypts them with your private key, and displays the plaintext.

Prerequisites

Complete these before starting this module:

Assignments

1

Encrypt a Message

Using tweetnacl, encrypt a message with the recipient's public key and send it as a memo in an XRP transaction.

2

Decrypt Incoming Messages

Build a listener that detects encrypted memos, decrypts them with your private key, and displays the plaintext.