Skip to content

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

Closed
edenbd1 wants to merge 2 commits into
logos-co:masterfrom
edenbd1:solution/lp-0013-edenbd1
Closed

Solution: LP-0013 — Token Program Improvements: Authorities#63
edenbd1 wants to merge 2 commits into
logos-co:masterfrom
edenbd1:solution/lp-0013-edenbd1

Conversation

@edenbd1
Copy link
Copy Markdown

@edenbd1 edenbd1 commented May 24, 2026

Solution: LP-0013 — Token program authorities

Submitted by: edenbd1

Summary

This solution adds a rotatable mint authority model to the LEZ Token program, implemented as four additive instruction variants on top of the existing token surface. Built around lez-approval — a new agnostic single-admin approval crate fulfilling RFP-001.

Repository

What's implemented

  • lez-approval crate — RFP-001 agnostic approval library (Authority, ApprovalError, gate/rotate/revoke)
  • NewFungibleDefinitionWithAuthority — create token with mint authority
  • MintWithAuthority — authority-gated minting with Unauthorized/Renounced panic errors
  • RotateAuthority — atomic authority rotation
  • RevokeAuthority — permanent terminal revocation
  • Wallet SDK facade + CLI subcommands
  • Two example integrations (fixed-supply, variable-supply)
  • Hand-authored canonical IDL (artifacts/token.idl.json)
  • 57 unit tests (13 lez-approval + 44 token_program) + 5 integration test cases
  • demo.sh — end-to-end lifecycle demo against standalone LEZ sequencer
  • Architecture docs (docs/LP-0013-AUTHORITY.md)

Design highlights

  • Additive, not breaking: New FungibleWithAuthority variant of TokenDefinition — existing Fungible definitions and all original instructions untouched
  • Terminal revocation: Authority::renounced() is a permanent sentinel (None) that cannot be reversed — provably enforced by the RISC0 guest
  • Reusable RFP-001 library: lez-approval depends only on nssa_core::account::AccountId, usable by any LEZ program

Pending: Narrated video walkthrough and CU cycle cost measurement.

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

Terms & Conditions

By submitting this solution, I confirm that I have read and agree to the Terms & Conditions.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 24, 2026

✅ Validation passed

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


Automated check. See solution template and TERMS.

@edenbd1 edenbd1 closed this May 24, 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