-
Notifications
You must be signed in to change notification settings - Fork 470
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
New API endpoint to generate a Scorer via API (for Allo) #1041
New API endpoint to generate a Scorer via API (for Allo) #1041
Comments
Kyle needs to write another story for how we represent the newly created scorer in the scorer UI Should confirm contract owner (round contract) is the same as the submitted wallet address by the API request. |
The use case should be "Sybil Prevention" for all created scorers in this way. |
I created the endpoint passportxyz/passport-scorer#190 should fulfill the requirements without much security. I paired with @nutrina today and he suggested putting this on hold until he hears from @gravityblast or @thelostone-mc in regards to how they plan on using it from their side |
I started implementing sign in with ethereum, but am wondering if we are sure we want to use siwe as the method for protecting programmatically creating scorers? In the end the user could continually request a nonce, and submit a valid signed message and create as many scorers as they want? To mitigate this we could create an Account object for each submitted address and then enforce the 5 community limit. This is a bit confusing because in the end the round manager is going to use the allo api key to submit passports for scoring right? One other option would be to watch the round manager factory and only allow creation of these generic scorers if the passed address has deployed a round? |
Another idea ALLOGiven a round operator has created a round and the transaction was successful PassportGiven a whitelisted account submits a request to this new endpoint that includes an address that would like a generic scorer This could also be modified so that if allo wants a separate api key/account for each address they submit. The same validation would take place and the necessary objects would be created. The account id and api key could be returned as part of the response. This would at least limit the programmatic creation of scorers and accounts to addresses that have successfully created accounts |
Let's run this by the allo team before resuming work on this |
@schultztimothy
Also, an additional feature request: they wanted to be able to pass in a custom ID to be used for the scorer. |
This endpoint is hidden from the docs until it can be tested. Here is a sample curl to test it out. Happy to pair on using postman or help test it out
|
The allo team wants to make integrating passport into new rounds simple and easy. In an effort to streamline this process for Round Managers, we are proposing the following:
User Story:
As a Round Manager on Allo
I want to use Gitcoin's default Passport scorer
So that I can prevent Sybil attacks on my QF round
Acceptance Criteria
GIVEN I have a whitelisted API key (Allo Key)
WHEN I submit an API request to create a new scorer
THEN I return the scorer ID as the response to the API request.
Product & Design Links:
Tech Details:
Open Questions:
Notes/Assumptions:
The text was updated successfully, but these errors were encountered: