-
Notifications
You must be signed in to change notification settings - Fork 53
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
test(rln-relay): rpc handler to support waku rln relay #1852
Conversation
should we modify the rpc endpoint
would also require changing the spec |
Would this introduce unnecessary level of complexity? As in if the node has RLN membership info configured and RLN relay enabled, always attach the proof, otherwise, do not Is there particular reason/need for not sending proof when RLN is enabled on the node? |
I think it's to maintain slight backwards compatibility
…On Mon, Aug 7, 2023, 20:38 Vaclav Pavlin ***@***.***> wrote:
Would this introduce unnecessary level of complexity? As in if the node
has RLN membership info configured and RLN relay enabled, always attach the
proof, otherwise, do not
Is there particular reason/need for not sending proof when RLN is enabled
on the node?
—
Reply to this email directly, view it on GitHub
<#1852 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKNQ6FDSFRENCTEW2NJRTKLXUEAIRANCNFSM6AAAAAA2LKV2J4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@vpavlin yeap agree with the complexity here. The main reason for adding this complexity would be to have always the same input, same output. Without the But well, as an advocate of simplicity im actually leaning towards your suggestion. Same api call but proof is attached or not depending on how the node is configured. |
Unless there's some hidden complexity, my suggestion would be to leave the API untouched and simply attach proof based on whether node is RLN-configured/compiled or not. |
I agree with @vpavlin's suggestion. |
@rymnc Seems we have quorum. Mind rebasing and implementing the changes? Ideally we can have it for the REST api but I'm fine with leaving it for another PR. Thanks! |
d9c759a
to
a284b28
Compare
a284b28
to
fc7dcea
Compare
You can find the image built from this PR at
|
let success = node.wakuRlnRelay.appendRLNProof(message, | ||
float64(getTime().toUnix())) | ||
if not success: | ||
raise newException(ValueError, "Failed to append RLN proof to message") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the appendRLNProof
print out any more specific error log? This seems to be too ambiguous for users to know what is going on:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, we're working on it on the zerokit side where we return an error enum atleast so the error code is known
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just one comment/question
post_waku_v2_relay_v1_message
so that when rln is enabled in the node the proof is included automatically in the message that is published.