Solution: LP-0013 - Token Program Improvements: Authorities#125
Open
bristinWild wants to merge 9 commits into
Open
Solution: LP-0013 - Token Program Improvements: Authorities#125bristinWild wants to merge 9 commits into
bristinWild wants to merge 9 commits into
Conversation
added 5 commits
May 27, 2026 15:04
- Add lez-authority crate: agnostic AuthoritySlot library (RFP-001) - Add mint_authority field to TokenDefinition::Fungible - Add NewFungibleDefinitionWithAuthority instruction - Add SetAuthority instruction (rotation + permanent revocation) - Update Mint to enforce authority guard - Wire new instructions into guest binary - Add 8 authority unit tests (53 total passing) - Add LP-0013 README, IDL, demo script, and example scripts
added 4 commits
May 27, 2026 18:25
Author
|
Hi @fryorcraken, workflow approval needed for CI to run on this PR when you get a chance. Thanks! |
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.
Implements LP-0013: mint authority model for the LEZ token program.
What's implemented
lez-authority/— standalone agnosticAuthoritySlotlibrary (RFP-001)mint_authority: Option<[u8; 32]>field onTokenDefinition::FungibleNewFungibleDefinitionWithAuthorityinstructionSetAuthorityinstruction — atomic rotation and permanent revocationMintupdated — authority-gated, deterministic rejection when revokedartifacts/token-idl.jsonregenerated viaidl-gendocs/LP-0013-README.md— architecture, CLI usage, CU costs, program IDscripts/demo-full-flow.sh— end-to-end demo with RISC0_DEV_MODE=0scripts/examples/— fixed supply + variable supply examples##Demo video
Link - https://youtu.be/4E7lBgdNwb4
Original submission
logos-co/lambda-prize#56 (as requested by @fryorcraken)