ETL to QE, Update 75, UTXO Tokenized RBAC on NOSTR
Date: 2025-05-07
NIP-DD20
- TOKEN Create
- KIND 42100
- title
- ticker
- mk(mint key) - pubkey
- mk(mint key) - pubkey
- KIND 42100
- TOKEN Token Mint
- KIND 42200
- td(OG Mint Key) - event_id
- tr(Previous Event) - event_id - NONCE
- ta pubkey VALUE
- KIND 42200
- Token UTXO split
- KIND 42300
- td(OG Mint Key) - event_id
- tr(Previous Event UTXO) - event_id
- ta pubkey VALUE
- ta pubkey VALUE
- ADDITIONAL METADATA
- KIND 42300
- TOKEN UTXO Merge
- KIND 42400
- td(OG Mint Key) - event_id
- tr(Previous Event UTXO) - event_id
- tr(Previous Event UTXO) - event_id
- ta pubkey VALUE
- KIND 42400
Unit Tests
- Library
- LIST TOKENS
- GENERATE DAG OF TRANSACTIONS
- CALCULATE CALCULATE BALANCES
- CALCULATE BALANCE FOR SPECIFIC USER
Lessons Learned
- Spent like 30 minutes troubleshooting my unit tests against the nostr-relay pip implementation only to realize that my encoding script doesn't work with that relay therefore I will need
- The merging and splitting of UTXO's is done via a Binary merging and splitting operation to make things simpler.