User Verification System
Objective
Logic
Mathematical Model
Let B(u) = NFT balance of user u
Then: Verified(u) ⇔ B(u) ≥ 1Anchor Code
pub fn verify_user(ctx: Context<VerifyUser>) -> Result<()> {
let nft_account = &ctx.accounts.nft_account;
require!(nft_account.amount >= 1, CustomError::NotVerified);
Ok(())
}
Security Notes
Last updated