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

Create an example project that demonstrates the functionality of Mint / Grant / Burn #195

Open
a1ttech opened this issue Jan 16, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@a1ttech
Copy link
Contributor

a1ttech commented Jan 16, 2024

The Mint / Grant / Burn function allows you to mint a PKP and atomically assign it to a set of Lit Actions. When you use M/G/B, a signature will only be returned when the logic you've declared in your Lit Action returns 'true'.

Suppose you have a Lit Action that will check if a number is prime, and if it is, sign that number. If it is not prime, the Lit Action will abort. If you were able to mint a PKP, assign it to that Lit Action, and then burn the PKP in a single atomic transaction, then it would be provable that the PKP was not used to sign anything before it was approved to use the Lit Action. In this case, you could trust that any numbers signed with that PKP are indeed prime, without needing to check them yourself. This creates a powerful way to prove the output of any JS code by checking that 1) the signature is valid, 2) the lit action code is correct, and 3) that the PKP was minted using this Mint/Grant/Burn pattern.

Create an example for the developer docs that demonstrates how this functionality can be used.

@a1ttech a1ttech added the good first issue Good for newcomers label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant