-
Notifications
You must be signed in to change notification settings - Fork 3
New RFC: WAKU-APP-QAKU #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jimstir
wants to merge
8
commits into
master
Choose a base branch
from
qaku-spec
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
68e758f
Create qaku
jimstir c370dfb
Update qaku.md
jimstir 4ed8bf7
Update qaku.md
jimstir d578604
Update2
jimstir 532b907
Update qaku.md
jimstir a959364
update 3
jimstir 869d861
Fix typos
jimstir 5645b8b
Update qaku
jimstir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,157 @@ | ||
| --- | ||
| title: WAKU-APP-QAKU | ||
| name: Waku App Qaku | ||
| category: Standards Track | ||
| tags: waku | ||
| editor: | ||
| contributors: | ||
| - Jimmy Debe <[email protected]> | ||
| --- | ||
|
|
||
| ## Abstract | ||
|
|
||
| The document describes the functions of a Waku Web application Qaku. | ||
| The use of Waku protocols in the Qaku questions and | ||
| answers web application allow for a secure , trustless environment. | ||
|
|
||
| ## Background | ||
|
|
||
| Waku is a family of robust, | ||
| censorship-resistant communication protocols designed to enable privacy-focused messaging for web3 apps. | ||
| Qaku is a questions and answers Waku web application. | ||
| It allows the user to create a Q&A board, | ||
| share a link and let users post questions. | ||
| Users can upvote questions which move to the top of the list on the board. | ||
|
|
||
| ## Specification | ||
|
|
||
| The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, | ||
| “SHOULD NOT”, “RECOMMENDED”, “NOT RECOMMENDED”, “MAY”, and | ||
| “OPTIONAL” in this document are to be interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt). | ||
|
|
||
| The Q&A board is created and maintained by an owner, | ||
| who SHOULD support an accessible interface for its users. | ||
|
|
||
| ### Identity | ||
|
|
||
| - Users and an owner MUST generate a private key | ||
| - The owner MUST generate a private key to before becoming the owner of the Q&A board. | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - The owner address, derived from the public key, SHOULD be made public as the owner of Qaku. | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - A `paasword` SHOULD be used to encrypt the private key | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The public key is used to sign and verify messages. | ||
| The owner MUST be able to enable and disable questions added to the board. | ||
|
|
||
| ### Node | ||
|
|
||
| The Qaku application SHOULD connect to the default Waku `pubsub_topic`. | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| When a user accesses the Qaku app, | ||
| the user joins a new session that SHOULD create a new `content_topic`. | ||
| When the user exits the Qaku app, | ||
| the session ends but the `content_topic` remians available on the Waku network for other users to connect to. | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Qaku uses the following [10/WAKU]() protocols: | ||
|
|
||
| - the [19/WAKU2-LIGHTPUSH](https://github.com/vacp2p/rfc-index/blob/main/waku/standards/core/19/lightpush.md) to push a message type to the Waku network. | ||
| - the [12/WAKU2-FILTER]() to subscribe to Waku `content_topic` and listen to messages published to that topic. | ||
| - the [13/WAKU-STORE]() to query and load old messages from the Waku network for users. | ||
| - A new `content_topic` is created when a new Q&A board is created. | ||
| - All questions and answer are pushed to the content_topic | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Messages | ||
|
|
||
| The Waku network processes real-time message updates, which enables new questions and | ||
| answers to be acceisble quickly. | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| A conec ulti | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Messages are sent to a `content_topic` that are identified as a `message_type`. | ||
|
|
||
| The [13/WAKU-STORE]() nodes provide historical storage of the Qaku messages. | ||
|
|
||
| The following `message_type`s used in Qaku include: | ||
|
|
||
| - Question Message | ||
| - Answered Message | ||
| - Control Message | ||
| - Upvote Message | ||
| - Moderation Message | ||
| - Poll messag | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #### Question Message | ||
|
|
||
| The `QuestionMessage` type is generated by any user asking a new question on a Qaku board. | ||
|
|
||
| - | ||
|
|
||
|
|
||
| ```js | ||
| { | ||
| "QuestionMessage" : [ | ||
| "question": string, | ||
| "timestamp": number, | ||
| "author?": identity, | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "delegationInfo?": delegationInfo | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ] | ||
| } | ||
|
|
||
| ``` | ||
|
|
||
| #### Answered Message | ||
|
|
||
| The `AnswerMessage` type is generated by any sending an answer to the Qaku board. | ||
| - | ||
|
|
||
| ```js | ||
| { | ||
| "AnswerMessage" : [ | ||
| hash: string, | ||
| text: string, | ||
jimstir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| timestamp: number, | ||
| delegationInfo?: delegationInfo | ||
| ] | ||
| } | ||
|
|
||
| ``` | ||
|
|
||
| #### Control Message | ||
|
|
||
| ```js | ||
| { | ||
| "ControlMessage" : [ | ||
| title: string, | ||
| id: string, | ||
| enabled: boolean, | ||
| timestamp: number, | ||
| owner: string, | ||
| admins: string[], | ||
| moderation: boolean, | ||
| description: string, | ||
| updated: number, | ||
| startDate: number, | ||
| endDate?: number, | ||
| allowsParticipantsReplies: number, | ||
| delegationInfo?: DelegationInfo | ||
| ] | ||
| } | ||
|
|
||
| ``` | ||
| #### Upvote Message | ||
|
|
||
| ```js | ||
| { | ||
| "UpVoteMessage" : [ | ||
| questionId: string, | ||
| hash: string, | ||
| type: UpvoteType, | ||
| timestamp: number, | ||
| delegationInfo?: DelegationInfo; | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| When a new question is created, the interface SHOULD lis | ||
|
|
||
|
|
||
| ## Copyright | ||
| Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). | ||
|
|
||
| ## References | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.