Skip to content

goith99/Nullref

Repository files navigation

NullRef

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.

Status

  • Solana Devnet prototype
  • Full Arcium lifecycle working
  • 9/9 Devnet tests passing
  • Not audited
  • Not production-ready

Privacy Model

Public: referrer wallet, commission rate, conversion count, claim transaction, and final payout.

Encrypted with Arcium: accumulated earnings and commission updates before claim.

Protocol Flow

  1. Operator initializes and funds the treasury.
  2. Referrer registers.
  3. Arcium initializes an encrypted zero balance.
  4. Conversions update encrypted earnings.
  5. Referrer submits a claim.
  6. Arcium reveals the claimable amount to the program.
  7. The program pays the referrer and resets the encrypted balance.

Core Circuits

  • init_commission
  • add_commission_v2
  • reveal_commission

Devnet

  • Program ID: D53UnxKubiE1B8J3pNuPgSnbibwP37F6P5THJa1xR5td
  • Arcium cluster offset: 456

Build

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

About

Confidential referral and affiliate payouts on Solana powered by Arcium MPC.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors