Pattern α : Bob and Alice have already done the initial DMTP setup.
DMTP server verifies the signature and prove that DMTP key pair haven't been manipulated.
Alice client retrieves
Alice’s encrypted DMTP_priKey
andBob’s DMTP_pubKey
from the DBAlice decrypts
Alice’s DMTP_priKey
with her wallet.Alice generates the
combined secret
fromAlice’s DMTP_priKey
andBob’s DMTP_pubKey
5.Alice encrypts messages with
combined key (Alice & Bob)
Store the
encrypted message
in DB and IPFS. The data to be stored will look something like this.The CID of message data is stored in
Message
table in DB andCID
table in DB 【Messages Table】 ⇒ CID 【CIDs Table】 ⇒ [CID, CID, CID, CID, CID, CID]Periodically, sync all data in
CID
table to IPFS and get CID All CIDs are stored in this fileThis CID is stored in the blockchain (Polygon)
Last updated