Skip to content

Solution: LP-0013 - Token Program Improvements: Authorities#125

Open
bristinWild wants to merge 9 commits into
logos-blockchain:mainfrom
bristinWild:solution/lp-0013-authorities
Open

Solution: LP-0013 - Token Program Improvements: Authorities#125
bristinWild wants to merge 9 commits into
logos-blockchain:mainfrom
bristinWild:solution/lp-0013-authorities

Conversation

@bristinWild
Copy link
Copy Markdown

@bristinWild bristinWild commented May 27, 2026

Implements LP-0013: mint authority model for the LEZ token program.

What's implemented

  • lez-authority/ — standalone agnostic AuthoritySlot library (RFP-001)
  • mint_authority: Option<[u8; 32]> field on TokenDefinition::Fungible
  • NewFungibleDefinitionWithAuthority instruction
  • SetAuthority instruction — atomic rotation and permanent revocation
  • Mint updated — authority-gated, deterministic rejection when revoked
  • Guest binary wired with all new instructions
  • artifacts/token-idl.json regenerated via idl-gen
  • 2 E2E integration tests for authority lifecycle
  • 119 unit tests passing across all programs
  • docs/LP-0013-README.md — architecture, CLI usage, CU costs, program ID
  • scripts/demo-full-flow.sh — end-to-end demo with RISC0_DEV_MODE=0
  • scripts/examples/ — fixed supply + variable supply examples

##Demo video

Link - https://youtu.be/4E7lBgdNwb4

Original submission

logos-co/lambda-prize#56 (as requested by @fryorcraken)

bristinWild 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
@bristinWild bristinWild marked this pull request as ready for review May 28, 2026 07:59
@bristinWild
Copy link
Copy Markdown
Author

Hi @fryorcraken, workflow approval needed for CI to run on this PR when you get a chance. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant