Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

36/WAKU2-BINDINGS-API #501

Merged
merged 21 commits into from
May 17, 2022
Merged

36/WAKU2-BINDINGS-API #501

merged 21 commits into from
May 17, 2022

Conversation

D4nte
Copy link
Contributor

@D4nte D4nte commented Mar 22, 2022

Helps with waku-org/nwaku#904

TODO:

  • Tidy up the subscription API (subscription id was removed)
  • Clarify JsonMessage type with new publish/publish enc APIs

Will do light push, store, filter in a separate PR. Let's get this PR merged with relay once todo items above are done.

content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
@D4nte
Copy link
Contributor Author

D4nte commented Mar 23, 2022

Is the subscription id a number or string? I saw both in the spec I think.

Changes I have done:

  • Define types JsonMessage, etc
  • Use proper camelCase: Id
  • rename topic to pubsubTopic to avoid possible confusion.
  • Examples for all Returns
  • Remove go in function name.
  • Use title anchors to cross-reference methods
  • Rename waku_encode_data to waku_encode_payload.

@richard-ramos
Copy link
Member

Is the subscription id a number or string?

It's a UUID. Should we use an int instead?

@D4nte
Copy link
Contributor Author

D4nte commented Mar 24, 2022

Comments looks good. Will action changes tomorrow.

@jm-clius
Copy link
Contributor

jm-clius commented Apr 4, 2022

Note that /35 is already taken: https://rfc.vac.dev/spec/35/

@oskarth
Copy link
Contributor

oskarth commented Apr 6, 2022

What's the state of this?

content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/36/README.md Outdated Show resolved Hide resolved
@D4nte D4nte self-assigned this Apr 13, 2022
@D4nte
Copy link
Contributor Author

D4nte commented Apr 13, 2022

What's the state of this?

Updated. Some comments are unresolved and need further discussion.

@D4nte D4nte marked this pull request as ready for review April 13, 2022 12:19
@richard-ramos
Copy link
Member

Current state of c-bindings in go-waku can be seen here: https://gist.github.com/richard-ramos/abb1540f7fa1b5b7fb21d28a5c00e183

@D4nte D4nte changed the title 35/WAKU2-BINDINGS-API 36/WAKU2-BINDINGS-API May 12, 2022
@D4nte
Copy link
Contributor Author

D4nte commented May 13, 2022

I believe this is ready.

@richard-ramos @jm-clius if you would be kind enough to do a last pass and approve we can then merge.

Copy link
Contributor

@jm-clius jm-clius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for this.

Only comment is to find and replace "nim-waku" with "nwaku" :P

@D4nte D4nte merged commit 3ed40ff into master May 17, 2022
@D4nte D4nte deleted the c-bindings branch May 17, 2022 08:18
kaiserd added a commit that referenced this pull request Jul 16, 2022
* master:
  RFC16: add version call (#505)
  fix(noise): update RFC to implementation (#508)
  fixup: 37/WAKU2-NOISE fix images paths (#506)
  New RFC: 37/WAKU2-NOISE-SESSIONS (#504)
  36/WAKU2-BINDINGS-API (#501)
  docs(16/WAKU2-RPC): add ENR to waku info (#502)
  Adding 35/WAKU2-NOISE to menu (#500)
  add RFC33 to index (#499)
  feat: 32/RLN raw spec
  New RFC: 35/WAKU2-NOISE (#496)
  Update on the rln registration figure to match the current spec (#497)
  33/WAKU-DISCV5: Add first raw version (#487)
  Add pubsubTopic field to index (#492)
  Fix markdown links (#493)
  Categorize 22 & 31 (#490)
  Changed PB Timestamp index to 10 (#491)
  13/14/16/21: Change in timestamp format (#483)
  add: RFC31 copyright statement (#489)
  17/WAKU-RLN-RELAY: Revise spec for its draft version (#484)
kaiserd added a commit that referenced this pull request Jul 25, 2022
* master:
  RFC16: add version call (#505)
  fix(noise): update RFC to implementation (#508)
  fixup: 37/WAKU2-NOISE fix images paths (#506)
  New RFC: 37/WAKU2-NOISE-SESSIONS (#504)
  36/WAKU2-BINDINGS-API (#501)
  docs(16/WAKU2-RPC): add ENR to waku info (#502)
  Adding 35/WAKU2-NOISE to menu (#500)
  add RFC33 to index (#499)
  feat: 32/RLN raw spec
  New RFC: 35/WAKU2-NOISE (#496)
  Update on the rln registration figure to match the current spec (#497)
  33/WAKU-DISCV5: Add first raw version (#487)
  Add pubsubTopic field to index (#492)
  Fix markdown links (#493)
  Categorize 22 & 31 (#490)
  Changed PB Timestamp index to 10 (#491)
  13/14/16/21: Change in timestamp format (#483)
  add: RFC31 copyright statement (#489)
  17/WAKU-RLN-RELAY: Revise spec for its draft version (#484)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants