passportxyz / passport

Passport allows users to prove their identity through a secure, decentralized UI
Other
943 stars 451 forks source link

Spike: Mint Scroll Canvas Badges from Frontend #2908

Open erichfi opened 3 hours ago

erichfi commented 3 hours ago

User Story:

As an engineer, I want to investigate if we can mint Scroll Canvas badges from our frontend, So that we can ensure the minting flow works correctly before full implementation.

Acceptance Criteria

GIVEN I have one or more valid VCs, WHEN I call the mintBadge() function of the ScrollDevVerifier smart contract with the list of my VCs, THEN the corresponding Scroll badges are minted.

GIVEN I have one or more valid VCs, WHEN I call the mintBadge() function of the ScrollDevVerifier smart contract with one or more VCs, AND at least one VC is not valid for this use case (either bad signature, bad payload, provider, etc.), THEN no badge shall be minted, AND the transaction should be reverted with a proper error.

Product & Design Links:

Tech Details:

Open Questions:

Notes/Assumptions:

erichfi commented 2 hours ago

In addition to this: