yagizsenal / messengeth

Messaging application on Ethereum Network
messengeth.vercel.app
MIT License
0 stars 0 forks source link

messengeth

UI for messaging on Ethereum blockchain.

Forked from (https://github.com/eabz/react-dapp-bolierplate).

Protocol

This section explains the data format used within transaction data. In the actual implementation, only non-parenthesized part of the keys will be used to minimize gas fees.

Addressbook Update

{
    m(essengeth)v(ersion): "v1",
    t(ype): 0,
    a(ddresses): ["0x...", "0x..."],
    n(icks): ["John Doe", "Jane Doe"],
    d(ate): 1632679547738
}

Chat Request

{
    m(essengeth)v(ersion): "v1",
    t(ype): 1,
    m(e): "John Doe",
    d(ate): 1632679547738
}

Accept Chat Request

{
    m(essengeth)v(ersion): "v1",
    t(ype): 2,
    d(ate): 1632679547738
}

Reject Chat Request

{
    m(essengeth)v(ersion): "v1",
    t(ype): 3,
    d(ate): 1632679547738
}

Text Message

{
    m(essengeth)v(ersion): "v1",
    t(ype): 4,
    c(ontent): ["A multi", "line message"],
    d(ates): [1632679547738, 1632679549738]
}