Issue: REI-42 Assignee: Chan A Task: Review Cobo's tokenization offering to see if it meets ALEX's requirements for Solana Token-2022 with Transfer Fee extension.
- MPC wallet infrastructure for secure key management
- Token deployment via their WaaS DevAPI
- Solana Token-2022 support with Transfer Fee extension
- Web UI for token management (coming ~2 weeks after API)
Program ID: TESQvsR4TmYxiroPPQgZpVRoSFG8pru4fsYr67iv6kf
Deployed Tokens:
| Network | Mint | Symbol | Transfer Fee |
|---|---|---|---|
| DevNet | 2Z41NAkarnW3VKA5EYk3YM58CgXDvpdyw5isEDbNW8mR |
TTT02 | 0.2% |
| MainNet | TESgesqMiVxUG38tuJmLkDSQoebKmBn2FhZkYNBr8hu |
TESS | 0.2% |
Token-2022 Extensions Used:
- Transfer Fee Extension (0.2% / 20 basis points, max 1,000 tokens)
- Metadata Pointer Extension
- Transfer Hook (for custom fee logic)
Key On-Chain Instructions:
initialize_mint_with_transfer_fee- Create Token-2022 mint with extensionsinitialize_program_config- Set up fee manager PDAwithdraw_to_fee_manager- Harvest and withdraw feesadd_whitelisted_address- Per-address fee configurationupdate_transfer_fee- Modify fee rates
Program ID: HiA4mhg5viZhiPHsJg2rEo2B5L2TNnNkwDi6AzCT9eD4
Fee Distribution Tiers:
- Level 1 (direct referrer): 30% of fees
- Level 2 (referrer's referrer): 3% of fees
- Level 3 (referrer's referrer's referrer): 2% of fees
- Protocol: 65%
Current Approach: Browser Wallets + File-Based Keys
| Purpose | Current Method |
|---|---|
| User transactions | Phantom/Solflare browser wallets |
| Token Authority | Team-held wallet (9UHfCynABPyvSeqZfD3E6A3DPt1xfechkRa1xDm6ZRvY) |
| Fee Withdrawal | Keypair file (.keypairs/deployer-keypair.json) |
| Production secrets | Gopass-managed |
No MPC/Institutional Key Management Currently
Architecture:
Token Transfer (0.2% fee)
↓
Token-2022 withholds fee in recipient account
↓
Event Listener → logs attribution to Redis
↓
Harvest Worker (every ~60s)
└─ harvest_withheld_tokens_to_mint() → consolidate fees to mint
↓
Distribution Worker (every ~120s)
├─ Fetch sender's referral chain (SenderFeeConfig PDA)
├─ Calculate splits: Tier1(30%), Tier2(3%), Tier3(2%), Protocol(65%)
└─ withdraw_withheld_tokens_from_mint() → send to referrers
Backend Components:
fee-distribution-worker.ts- Orchestrates harvest + distribution- Withdraw Authority Keypair - Signs fee withdrawal transactions
- Redis Queue - Stores pending attributions
- WebSocket Event Listener - Captures transfer events
Key Issue: Backend worker currently loads private keys from file to sign transactions.
Before (Current):
Admin → Browser Wallet → Solana RPC → Token Program
Backend → Local Keypair → Solana RPC → Fee Distribution
After (With Cobo):
Admin → Tessera Backend → Cobo WaaS API → MPC Signing → Solana RPC
Backend → Cobo WaaS API → MPC Signing → Solana RPC
| Layer | Current | With Cobo |
|---|---|---|
| Token Authority | Team wallet | Cobo MPC wallet |
| Fee Manager | Deployer keypair | Cobo MPC wallet |
| Backend Withdrawal Signing | Local keypair file | Cobo WaaS API |
| Referral Distribution | Local keypair | Cobo API |
| Policy Controls | None | Cobo policy engine |
- ✅ Token-2022 program (already deployed)
- ✅ Transfer fee extension logic
- ✅ User-facing wallet connections (Phantom/Solflare)
- ✅ Fee collection via program PDA
- ✅ Referral system integration
- ✅ Redis queue for attribution tracking
- Authority Transfer - Existing token authorities transferred to Cobo MPC wallets
- Backend Integration - New service to call Cobo WaaS API for signing
- Approval Workflows - Define policies (e.g., multi-sig for large withdrawals)
All fee withdrawals go through Cobo MPC signing.
Distribution Worker (backend)
↓
Cobo WaaS API (sign withdrawal tx)
↓
MPC Signing (threshold signatures)
↓
Solana RPC
Pros:
- No private keys on backend servers
- Full audit trail
- Policy controls for all operations
Cons:
- Added latency (~1-3s per MPC signature)
- API dependency for fee distribution
- Cost per transaction signature
- Rate limit considerations (many small transactions)
Routine operations use permissionless flow; large/sensitive operations require Cobo.
Below Threshold (permissionless) Above Threshold (authority required)
↓ ↓
Program PDA signs Backend → Cobo API → MPC sign
↓ ↓
Solana RPC Solana RPC
Implementation:
- Set
withdrawal_thresholdin FeeManagerConfig - Routine distributions stay fast
- Large withdrawals require Cobo MPC approval
- Does Cobo support Token-2022 extensions natively? (Transfer Fee, Metadata Pointer)
- Can Cobo act as a Solana program authority? (for fee config, mint authority)
- Does Cobo support Solana versioned transactions (v0 with lookup tables)?
- What's the latency for MPC signing? (impacts fee distribution UX)
- What are the rate limits on signing API? (worker processes many transactions)
- Is there webhook support for async signing notifications?
- What's the cost per signature?
- Can existing token authorities be migrated to Cobo wallets?
- What's the key recovery mechanism?
- How does multi-party approval work for policy enforcement?
Cobo's offering aligns well with ALEX's needs if they support Token-2022 extensions. The main value propositions:
- Security - MPC key management eliminates single points of failure
- Compliance - Audit trails and policy controls
- Operations - No private keys on backend servers
Suggested Integration Approach:
- Start with Option B (Hybrid) - Use Cobo for sensitive operations while keeping routine fee distribution fast
- Migrate token authorities to Cobo MPC wallets
- Build backend Cobo service module for signing
- Define policies for different operation types
Main Development Work:
- Backend service for Cobo WaaS API integration
- Transaction assembly (build unsigned, send to Cobo)
- Error handling for API failures
- Configuration management for Cobo credentials
/src/lib/solana/config.ts- Program IDs, RPC endpoints/src/lib/solana/on-chain-client.ts- Solana client, PDA derivation/src/lib/idl/tessera_token.json- Token program IDL/src/generated/tessera-token/types.ts- Generated types/src/features/admin/- Admin hooks for token operations
/contract/programs/tessera-token/- Token program source/contract/programs/referral-system/- Referral program source/contract/scripts/automation/fee-distribution-worker.ts- Fee distribution worker
Research compiled for REI-42 on 2026-01-24