UI for messaging on Ethereum blockchain.
Forked from (https://github.com/eabz/react-dapp-bolierplate).
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.
- From
self
toself
- Encrypted
{
m(essengeth)v(ersion): "v1",
t(ype): 0,
a(ddresses): ["0x...", "0x..."],
n(icks): ["John Doe", "Jane Doe"],
d(ate): 1632679547738
}
- Not Encrypted
- From
self
topeer
{
m(essengeth)v(ersion): "v1",
t(ype): 1,
m(e): "John Doe",
d(ate): 1632679547738
}
- Encrypted
- From
peer
toself
{
m(essengeth)v(ersion): "v1",
t(ype): 2,
d(ate): 1632679547738
}
- Encrypted
- From
peer
toself
{
m(essengeth)v(ersion): "v1",
t(ype): 3,
d(ate): 1632679547738
}
- Encrypted
- From
anyone
toanyone
as long as chat is established between entities
{
m(essengeth)v(ersion): "v1",
t(ype): 4,
c(ontent): ["A multi", "line message"],
d(ates): [1632679547738, 1632679549738]
}