-
Notifications
You must be signed in to change notification settings - Fork 52
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
bug: get_waku_v2_relay_v1_messages
return an array has payload instead of expected hex string
#1139
Comments
Odd, the crypto API returns hex:
|
@richard-ramos I have witnessed the same behaviour on go-waku |
@fryorcraken in go-waku I added this behavior to match nwaku's. Otherwise Go would have encoded the byte array as base64 (which is what it's used in REST API) |
Upon some investigation,
|
@fryorcraken @richard-ramos is it worth getting a fix in nwaku (and parity in the other clients)? Although the JSON-RPC API is going to be deprecated, we have to maintain it while still being used. |
IMHO, it'd be cleaner but now that I deal with it, I am not fussed: @dao any thoughts on the matter as you use the JSON RPC API? |
I vote for consistency - easy enough for us to make this change once |
@rymnc this is not priority. Given your involvement with RLN, should we unassign you here and move this item to a backlog? |
Unassigned, although I would suggest to leave it in |
As @richard-ramos commented above, the efficient way to serialize the messages' payload is to use base64 encoding. I am assigning this issue to me, as I think it is feasible to fix this as part of v0.15.0. |
Problem
get_waku_v2_relay_v1_messages
returns an array of decimal number in payload instead of the expected hex string defined in https://rfc.vac.dev/spec/16/#get_waku_v2_relay_v1_messagesImpact
Minor defect, just unexpected as an implementer.
To reproduce
Ensure the node receives some messages over relay
JSON RPC call:
The text was updated successfully, but these errors were encountered: