mirror of https://github.com/vacp2p/rfc.git
58 lines
1001 B
Markdown
58 lines
1001 B
Markdown
|
---
|
||
|
title: Waku
|
||
|
version: 2.0.0-alpha4
|
||
|
status: Raw
|
||
|
authors: Oskar Thorén <oskar@status.im>
|
||
|
---
|
||
|
|
||
|
# Table of Contents
|
||
|
|
||
|
TODO
|
||
|
|
||
|
# Abstract
|
||
|
|
||
|
TODO
|
||
|
|
||
|
### Historical message support
|
||
|
|
||
|
**Protocol identifier***: `/vac/waku/store/2.0.0-alpha5`
|
||
|
|
||
|
See `WakuStore` spec.
|
||
|
|
||
|
TODO To be elaborated on
|
||
|
|
||
|
#### Protobuf
|
||
|
|
||
|
```protobuf
|
||
|
message HistoryQuery {
|
||
|
string uuid = 1;
|
||
|
repeated string topics = 2;
|
||
|
}
|
||
|
|
||
|
message HistoryResponse {
|
||
|
string uuid = 1;
|
||
|
repeated WakuMessage messages = 2;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
##### HistoryQuery
|
||
|
|
||
|
RPC call to query historical messages.
|
||
|
|
||
|
The `uuid` field MUST indicate current request UUID, it is used to identify the corresponding response.
|
||
|
|
||
|
The `topics` field MUST indicate the list of topics to query.
|
||
|
|
||
|
##### HistoryResponse
|
||
|
|
||
|
RPC call to respond to a HistoryQuery call.
|
||
|
|
||
|
The `uuid` field MUST indicate which query is being responded to.
|
||
|
|
||
|
The `messages` field MUST contain the messages found.
|
||
|
|
||
|
# Copyright
|
||
|
|
||
|
Copyright and related rights waived via
|
||
|
[CC0](https://creativecommons.org/publicdomain/zero/1.0/).
|