Bitmark Marking: NOSTR Relay

Technical Implementation Plan

Fee Gating Logic

Goal

Restrict access to the relay or on-chain marking features based on user payment (in BTMK).

Core Design Options

Option Description Tradeoffs
Token-based gating Pre-pay for a time-limited access token (e.g., JWT) Easy to revoke/manage
Address balance check Require user to sign a challenge with BTMK-holding wallet Fully decentralized
Per-use micropayments Require NIP-57 zap or LN payment per event Friction for users, harder to scale

Implementation Steps

1. Create User Identity Layer

2. Prepay/Top-up System

3. API Protection

4. Rate Limiting Fallback

5. Admin Panel / Dashboard

Testing

Simulate a relay spam bot.

Enable fee gating and confirm:

Future Enhancements