Skip to content

Solution: LP-0013 — Token Program Improvements: Authorities#56

Open
bristinWild wants to merge 3 commits into
logos-co:masterfrom
bristinWild:solution/lp-0013
Open

Solution: LP-0013 — Token Program Improvements: Authorities#56
bristinWild wants to merge 3 commits into
logos-co:masterfrom
bristinWild:solution/lp-0013

Conversation

@bristinWild
Copy link
Copy Markdown

Implementation of LP-0013: mint authority model for the LEZ Token program.

Repository: https://github.com/bristinWild/logos-execution-zone (branch: main)

What's implemented:

  • lez-authority crate — agnostic AuthoritySlot library (RFP-001 cross-reference)
  • mint_authority: Option<[u8; 32]> field on TokenDefinition::Fungible
  • NewFungibleDefinitionWithAuthority instruction — create token with authority from day one
  • Mint instruction updated — authority-gated, deterministic rejection when revoked
  • SetAuthority instruction — atomic rotation and permanent revocation
  • Wallet SDK facade methods: send_set_authority, send_new_definition_with_authority
  • 2 integration tests against live sequencer
  • 50 unit tests (42 token_program + 8 authority scenarios + 7 lez-authority)
  • CI green: https://github.com/bristinWild/logos-execution-zone/actions
  • README: docs/LP-0013-README.md
  • Demo script: scripts/demo-full-flow.sh
  • Example scripts: scripts/examples/fixed_supply_token.sh, scripts/examples/variable_supply_token.sh

Pending: CU cost measurement on devnet and narrated video demo (will update solution doc).

See solutions/LP-0013.md for full details.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

✅ Validation passed

A reviewer will assess against the prize criteria.
ℹ️ Solution submission for LP-0013.
ℹ️ Checking repo: https://github.com/bristinWild/logos-execution-zone


Automated check. See solution template and TERMS.

@bristinWild
Copy link
Copy Markdown
Author

Added the Demo Video - https://www.youtube.com/watch?v=fJWbhobNIFM

@bristinWild
Copy link
Copy Markdown
Author

Note for evaluation:

This submission modifies the actual LEZ token program directly - programs/token/core/src/lib.rs, programs/token/src/mint.rs, programs/token/src/set_authority.rs, and the wallet facade - rebased onto upstream HEAD (4079b0c9). The implementation is a production integration into the existing LEZ token program codebase, following the same patterns as the rest of the token program. The lez-authority crate is a standalone reusable primitive that satisfies the RFP-001 cross-reference.

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