-
Notifications
You must be signed in to change notification settings - Fork 56
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
Westlad/identify user #1413
base: master
Are you sure you want to change the base?
Westlad/identify user #1413
Conversation
78e6c35
to
b0f09d2
Compare
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.
There is code from the PR in this one. It would be good to add some sort of documentation about the variable ANONYMOUS_USER
.
I'll add documentation of the anonymous user. This code is a branch off the PR you've mentioned, but I wanted to get that one in first, before merging this, because the other PR is a refactor whereas this adds new functionality. |
…o proxy the requests
b8fce80
to
60bc907
Compare
What does this implement/fix? Explain your changes.
This code requires a User to prove to a Proposer that they hold a whitelisted Ethereum account. It is useful for cases where a Proposer wishes to show compliance with excluding non-whitelisted accounts. It is not strictly necessary because a non-whitelisted account cannot move funds into or out of Nightfall and therefore any transactions they may make within Nightfall are ultimately futile. However, this check provides extra assurance. It is entirely voluntary because there is no on-chain enforcement of the check. Proposers may disable the check, at their own risk, by setting the environment variable
ANONYMOUS_USER
.What commands can I run to test the change?
This can be tested by running the normal test suite, whereby the check is enabled by default because ANONYMOUS_USER is not set.