Skip to content

Solution: LP-0013 – Token Program Improvements: Authorities#94

Open
youthisguy wants to merge 5 commits into
logos-co:masterfrom
youthisguy:master
Open

Solution: LP-0013 – Token Program Improvements: Authorities#94
youthisguy wants to merge 5 commits into
logos-co:masterfrom
youthisguy:master

Conversation

@youthisguy

@youthisguy youthisguy commented Jun 16, 2026

Copy link
Copy Markdown

Solution: LP-0013 — Token Program Improvements: Mint Authority

PR: logos-blockchain/lez-programs#152


Summary

Added a mint authority model to the LEZ token program. Changes made directly in the canonical lez-programs repository.

  • mint_authority: Option<AccountId> field on TokenDefinition::Fungible
  • NewFungibleDefinitionWithAuthority instruction
  • SetAuthority instruction (rotate, or revoke by passing None)
  • Updated Mint instruction with an early authority guard
  • Fully backwards compatible

The design follows Solana's SPL Token authority model.


Mint Authority Library Extracted (RFP-001)

Authorization logic is extracted into a standalone, reusable crate — crates/lez-authority — satisfying RFP-001.

  • New Authority type with .rotate(), .revoke(), .require()
  • Typed AuthorityError enum (Unauthorized / Renounced)
  • Token program is the reference consumer; any LEZ program can depend on it directly
  • 16 dedicated unit tests; zero runtime/serialization overhead

Satisfies the "self-sufficient, agnostic library" success criterion.


Evidence


Repositories

Repo Purpose
logos-blockchain/lez-programs#152 Token program changes, lez-authority library (this PR)
youthisguy/logos-execution-zone Wallet CLI support

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown

✅ Validation passed

A reviewer will assess against the prize criteria.
ℹ️ Solution submission for LP-0013.
ℹ️ Checking repo: https://github.com/youthisguy/lez-programs


Automated check. See solution template and TERMS.

@youthisguy youthisguy closed this Jun 16, 2026
@youthisguy youthisguy reopened this Jun 16, 2026
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