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

Add whole flow example to backend examples #128

Closed
enricobottazzi opened this issue Aug 3, 2023 · 4 comments
Closed

Add whole flow example to backend examples #128

enricobottazzi opened this issue Aug 3, 2023 · 4 comments
Assignees

Comments

@enricobottazzi
Copy link
Member

enricobottazzi commented Aug 3, 2023

It would be cool to add the whole flow to backend/examples

It should involve:

  • Message signatures to build csv file.
  • Snapshot generation
  • Proof of Address ownership generation and submission to smart contract
  • Proof of Solvency generation and submission to smart contract
  • Proof of Mst Inclusion generation
  • Proof of Mst Inclusion verification (user side)

Ideally, the example should contain as few lines of code as possible, as all these actions should be abstracted by the backend APIs. This exercise can also inform a better design of the APIs if needed.

@enricobottazzi enricobottazzi added this to the Blog Post Release milestone Aug 16, 2023
@enricobottazzi enricobottazzi moved this to Backlog in ∑ Summa Aug 31, 2023
@enricobottazzi enricobottazzi removed this from the Blog Post Release milestone Aug 31, 2023
@enricobottazzi
Copy link
Member Author

@sifnoc after #152 is merged

I guess that according to the modification we can provide in the example both

  • Proof of Mst Inclusion Verification (user side - performed locally using the Verification Key)
  • Proof of Mst Inclusion Verification (user side - performed interacting with the view function of the Summa Smart Contract)

@sifnoc
Copy link
Member

sifnoc commented Sep 11, 2023

Related Message signatures to build csv file. task, Ensure that the Ethereum addresses in the file adhere to the checksum format

@enricobottazzi
Copy link
Member Author

#152 (comment)

I think that the new example flow will just need to interact with AddressOwnership and Round objects. Therefore we can make the Snapshot struct as private.

@sifnoc
Copy link
Member

sifnoc commented Sep 15, 2023

  • Message signatures to build csv file.
  • Snapshot generation
  • Proof of Address ownership generation and submission to smart contract
  • Proof of Solvency generation and submission to smart contract
  • Proof of Mst Inclusion verification (user side - locally using given Verification Key)
  • Proof of Mst Inclusion Verification (user side - performed interacting with the view function of the Summa Smart Contract)

@sifnoc sifnoc closed this as completed Oct 30, 2023
@github-project-automation github-project-automation bot moved this from Backlog to Merged in ∑ Summa Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

No branches or pull requests

2 participants