> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magicblock.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# 安全性

> Solana VRF 随机数证明如何被验证

Solana VRF 证明会通过密码学方式绑定到输入 `caller_seed` 以及 MagicBlock 的 VRF signer identity。你的 callback 会通过以下方式强制验证：

```rust theme={null}
#[account(address = ephemeral_vrf_sdk::consts::VRF_PROGRAM_IDENTITY)]
pub vrf_program_identity: Signer<'info>,
```

只有 MagicBlock 官方预言机才能触发 callback，从而防止伪造或被操纵的结果。无效证明会自动失败，其他程序也无法抢跑该请求。

MagicBlock Solana VRF 会检查诸如 `InvalidProof` 和 `Unauthorized` 等条件，因此错误签名或未经授权的调用者会在你的游戏逻辑执行之前被拒绝。VRF 程序已有公开审计，正式上线前应以该报告作为安全事实来源。

由于一切都在执行你游戏逻辑的同一个确定性 [ephemeral rollup](/cn/pages/get-started/introduction/ephemeral-rollup) 中完成，因此随机值无法被重复利用或延迟执行。

关于种子选择、callback 验证和状态管理等可操作的集成建议，请参阅[最佳实践](/cn/pages/verifiable-randomness-functions-vrfs/how-to-guide/best-practices)。

<CardGroup cols={2}>
  <Card title="安全与审计" icon="shield-check" href="/cn/pages/overview/additional-information/security-and-audits" iconType="duotone">
    阅读审计报告和安全说明。
  </Card>

  <Card title="Solana VRF" icon="dice" href="/cn/pages/verifiable-randomness-functions-vrfs/introduction/solana-vrf" iconType="duotone">
    返回 Solana VRF 概览。
  </Card>
</CardGroup>
