LogoLogo
  • Welcome
  • XRPL Basics
    • Getting Started
    • Payments
    • Reading and subscribing to Transactions
    • Writing and reading memos
    • Non Fungible Tokens
    • PathFinding
    • Escrow
    • Price Oracles
    • Tickets
    • Multi-Signature
  • Token Issuance and Liquidity
    • Creating Accounts
    • Issuing Tokens
    • Creating an AMM Pool
  • Cyphered Chat on XRPL
    • Set up
    • Set up Keys
    • Cypher the message
    • Set up the memo & send the tx
    • Get the message and decypher it
  • EVM Sidechain
    • Connecting Metamask
    • Bridging Assets
    • Remix
    • Banking App
    • Banking Contract Key Concepts
  • Tools
    • Xaman Setup
    • Metamask Setup
Powered by GitBook
On this page
Export as PDF
  1. Cyphered Chat on XRPL

Set up Keys

PreviousSet upNextCypher the message

Last updated 4 months ago

First, we need to get the public key of the person we want to chat with. To do so, we can go on the block explorer and look at the transactions the address has sent. From there, by looking at the raw transaction data, we can find their public key. Once we have their public key, we can use it to encrypt messages that only they can decrypt.

Then we need to set up our wallet to cypher the message and send the tx

import {Wallet} from "xrpl"

const receiverPubKey = "the public key from the explorer here"
const myWallet = Wallet.fromSeed("your seed here")