You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
There are some inconsistencies between the RFC and the main implementation in nwaku.
The KeyPair fields are called in privateKey and publicKey in the RFC, but seckey and pubkey in the implementation.
WakuMessage payload is defined as a hex-encoded data string in the RFC, but returned as an array of uint8 in the implementation.
The Private API get methods (e.g. this one) must explicitly indicate that messages that can't be decrypted with the provided key will be discarded.
The Private API must define encrypt/decrypt methods to allow applications to use multiple keys to encrypt or attempt decryption of received, encrypted messages.
Suggested solution:
Change the implementation to reflect privateKey and publicKey as the field names for KeyPair.
Change the specification to indicate that WakuMessage payload is an array of uint8 rather than a hex-encoded data string. This is currently a limitation of the implementation. Note that WakuMessage is only received in responses, while WakuRelayMessage, used in requests, do indeed contain a hex-encoded payload.
For the specs for both get_waku_v2_private_v1_asymmetric_messages and get_waku_v2_private_v1_symmetric_messages, it should be clarified that messages that can't be decrypted with the provided keys will be ignored and discarded.
Uh oh!
There was an error while loading. Please reload this page.
Problem
There are some inconsistencies between the RFC and the main implementation in nwaku.
privateKey
andpublicKey
in the RFC, butseckey
andpubkey
in the implementation.uint8
in the implementation.Suggested solution:
privateKey
andpublicKey
as the field names forKeyPair
.WakuMessage
payload is an array ofuint8
rather than a hex-encoded data string. This is currently a limitation of the implementation. Note thatWakuMessage
is only received in responses, whileWakuRelayMessage
, used in requests, do indeed contain a hex-encoded payload.cc @richard-ramos
The text was updated successfully, but these errors were encountered: