mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
3b3921f483
This is needed so that when they are bundled into archives, receiving nodes can still verify the messages payload using its signature. This commit introduces a new `waku_messages` table and APIs to store such messages. Waku message payload is store for any message that has a topic that matches any of the admin communities chats. Closes #2566
11 lines
266 B
SQL
11 lines
266 B
SQL
CREATE TABLE waku_messages (
|
|
sig BLOB NOT NULL,
|
|
timestamp INT NOT NULL,
|
|
topic TEXT NOT NULL,
|
|
payload BLOB NOT NULL,
|
|
padding BLOB NOT NULL,
|
|
hash TEXT PRIMARY KEY NOT NULL
|
|
);
|
|
|
|
CREATE INDEX waku_messages_timestamp_topic ON waku_messages (timestamp, topic);
|