Architecture and structure of the NullGraph Solana program
The NullGraph smart contract is a Solana program built with Anchor 0.31.1 that manages the on-chain infrastructure for Null Knowledge Assets (NKAs) and the bounty marketplace.
The program implements a decentralized bounty marketplace for null scientific results using four core account types:
Show ProtocolState (Singleton)
Global configuration storing auto-incrementing counters for NKAs and bounties, protocol fee rate, treasury address, and authority. Seeds: ["protocol_state"]
Show NullResult (Per NKA)
Stores complete scientific metadata for each submitted null result including hypothesis, methodology, outcomes, statistical data, and verification status. Seeds: ["null_result", researcher_pubkey, specimen_number_le_bytes]
Show NullBounty (Per Bounty)
Bounty metadata with escrowed USDC in a PDA-controlled vault. Tracks status (Open/Matched/Fulfilled/Closed) and matched submissions. Seeds: ["null_bounty", creator_pubkey, bounty_number_le_bytes]
Show BountySubmission (Links NKA to Bounty)
Junction account linking a researcher’s NullResult to a specific bounty. Seeds: ["bounty_submission", bounty_pda_key, null_result_pda_key]