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

Expose default params and create message id counter in createProof if not present #104

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

mhchia
Copy link
Member

@mhchia mhchia commented Sep 18, 2023

What is done?

  • Expose API getDefaultRLNParams and getDefaultWithdrawParams: allows devs to download default params before initiating RLN instance. It can save bandwidth and loading time when there are multiple RLN instances instantiated with default params since by default they will download the same files multiple times.
  • If createProof while a message id counter is not set (possible when restarting an app), set a new MemoryMessageIDCounter and emit a warning that user will risk being slashed if it's still the same epoch and user has sent messages before.

@mhchia mhchia merged commit cec08c8 into main Sep 18, 2023
1 of 3 checks passed
@mhchia mhchia deleted the feat/expose-default-params-and-change-message-id-counter branch September 18, 2023 08:45
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.

1 participant