Skip to content
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

feat(rln-relay): pass in index to keystore credentials #1777

Merged
merged 2 commits into from
Jun 6, 2023
Merged

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Jun 2, 2023

Description

Allows users/operators to pass in the index of credentials to use. "Credentials" represents the keystore provided by the waku_keystore module.

Changes

  • s/rlnRelayMembershipIndex/rlnRelayCredIndex/g to be more descriptive
  • Adds a new config option (--rln-relay-membership-group-index) to chat2 and wakunode2 to allow operators to
    select the credential within a an array of
    credentials in rln app

Issue

closes #1774

@rymnc rymnc marked this pull request as ready for review June 6, 2023 06:15
@@ -51,7 +51,7 @@ procSuite "WakuNode - RLN relay":
await node1.mountRlnRelay(WakuRlnConfig(rlnRelayDynamic: false,
rlnRelayPubsubTopic: rlnRelayPubSubTopic,
rlnRelayContentTopic: contentTopic,
rlnRelayMembershipIndex: some(MembershipIndex(1)),
rlnRelayCredIndex: MembershipIndex(1),
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to also rename the type MembershipIndex?

Copy link
Contributor Author

@rymnc rymnc Jun 6, 2023

Choose a reason for hiding this comment

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

This looks like it fell through the sieve, it should actually be <index>.uint instead. fixed in 956a63c

Copy link
Member

@vpavlin vpavlin left a comment

Choose a reason for hiding this comment

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

Small comment, otherwise LGTM

Copy link
Collaborator

@Ivansete-status Ivansete-status 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!
May kindly elaborate a bit more the PR description to understand better what does a index of credentials represent?

@rymnc rymnc merged commit a00aa8c into master Jun 6, 2023
16 checks passed
@rymnc rymnc deleted the index-keystore branch June 6, 2023 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore(rln-relay): allow passing in an index to the keystore
5 participants