Solution: LP-0013 — Token Program Improvements: Authorities#57
Open
Tranquil-Flow wants to merge 2 commits into
Open
Solution: LP-0013 — Token Program Improvements: Authorities#57Tranquil-Flow wants to merge 2 commits into
Tranquil-Flow wants to merge 2 commits into
Conversation
✅ Validation passedA reviewer will assess against the prize criteria. Automated check. See solution template and TERMS. |
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation of LP-0013: mint authority lifecycle for the LEZ Token program, with a proven on-chain semantic deployment under
RISC0_DEV_MODE=0.Repository: https://github.com/Tranquil-Flow/lp0013-token-suite (public, MIT + Apache-2.0)
Narrated demo video: https://youtu.be/3hQd2G8O-UM
What's implemented:
admin-authority-core— runtime-agnostic authority state, authorization checks, rotation, and revocation (RFP-001 reusable primitive)mint-core/mint-program— token state transitions and instruction-level harnessmint-sdk— evaluator-facing Rust client API (create/mint/rotate/revoke/query)mint-cli— offline demo CLIspel-spike/admin_authority_guest.rs) deployed to the live local LEZ sequencerspel generate-idloutput checked in alongsideOn-chain evidence (
RISC0_DEV_MODE=0):create_mint+mint_to(100)+set_mint_authority(None)+ post-revokemint_torejection)set_mint_authorityrejected on chain atProgram error 2008: authority has been revoked— the canonicalrequire_authoritypanic from the guest body, observed live on the sequencercreate_mint8.38 ms,mint_to7.58 ms,set_mint_authority(rotate/revoke shares one code path) 6.76 ms; rejected post-revoke operations ~50% less (4.21–4.43 ms) — deterministic-rejection visible in the CU profiledocs/LEZ_PROOF_LOG.md; CU breakdown indocs/BENCHMARKS.mdSee
solutions/LP-0013.mdfor the full spec compliance map and architecture notes.