Confidential referral and affiliate payouts on Solana, powered by Arcium MPC.
NullRef protects accumulated referral earnings before claim while keeping registration, conversions, and payouts verifiable on Solana.
- Solana Devnet prototype
- Full Arcium lifecycle working
- 9/9 Devnet tests passing
- Not audited
- Not production-ready
Public: referrer wallet, commission rate, conversion count, claim transaction, and final payout.
Encrypted with Arcium: accumulated earnings and commission updates before claim.
- Operator initializes and funds the treasury.
- Referrer registers.
- Arcium initializes an encrypted zero balance.
- Conversions update encrypted earnings.
- Referrer submits a claim.
- Arcium reveals the claimable amount to the program.
- The program pays the referrer and resets the encrypted balance.
init_commissionadd_commission_v2reveal_commission
- Program ID:
D53UnxKubiE1B8J3pNuPgSnbibwP37F6P5THJa1xR5td - Arcium cluster offset:
456
yarn install
arcium build
anchor build
Test
ANCHOR_PROVIDER_URL="https://api.devnet.solana.com" \
ANCHOR_WALLET="$HOME/.config/solana/id.json" \
ARCIUM_CLUSTER_OFFSET=456 \
arcium test --cluster devnet
Expected result:
9 passing
0 failing
Security
NullRef is an experimental Devnet prototype. It has not received an independent security audit and must not be used with real funds without further review.
License
MIT