🔬
DMTP Docs
  • About DMTP
    • The problems DMTP solves
    • About DMTP Token
    • $DMTP Allocation
    • $DMTP Staking
    • Governance
    • DMTP Protocol
    • DMTP Product
  • How-to-use
    • Guidance
      • Linking Wallet
      • Group chats
      • Chat
  • DMTP System
    • Generation of DMTP key pairs
    • Encryption & Decryption
      • Peer to Peer
        • Pattern α : Bob and Alice have already done the initial DMTP setup.
        • Pattern β : Bob hasn't done the initial DMTP setup
      • Public Unlimited
      • Public Limited
      • Private Group
    • Message data storage
    • Cryptographic algorithm
    • Wide-compatibility
  • Builders Guides
    • 📎SDK Quick Start
    • How to get DMTP API Key
Powered by GitBook
On this page
  1. DMTP System
  2. Encryption & Decryption

Peer to Peer

PreviousEncryption & DecryptionNextPattern α : Bob and Alice have already done the initial DMTP setup.

Last updated 2 years ago

Basically, all messages exchanged via DMTP is E2EE (End-to-End Encryption) and no one includes DMTP decrypt and see the messages so that even if DMTP get hacked or our key is compromised, your messages are encrypted and safe.

We use DMTP key pair (DMTP_pubKey & DMTP_priKey) generated at section to encrypt & decrypt messages and don't access to your wallets address's key pair directly because of preventing from being your funds in danger.

Flow

P2P messages can be divided into two patterns

  • Pattern α : Bob and Alice have already done the initial DMTP setup.

  • Pattern β : Bob hasn't done the initial DMTP setup.

In pattern α, all messages can be E2EE because we can use DMTP key of each user's but In pattern β, the messages can only be viewed by DMTP until Bob init in DMTP.

I'll write down the detailed flow and diagram about these section.

initialize
Pattern α : Bob and Alice have already done the initial DMTP setup.
Pattern β : Bob hasn't done the initial DMTP setup