Seipex Finance
DiscordDragonSwapAstroportOpenSeaPallet
  • Seipex Finance
  • Seipex Digital Assets
    • Seipex Credits (SPEX)
    • Founder's Pass NFT
  • Seipex VRF
    • Integration
      • VRF Consumer Interface
      • Request Randomness
      • Randomness Callback
      • Simplified Example
      • Proof Validation
      • Extended VRF Consumer Interface
      • Extended Randomness Callback
      • Verify Proof
      • Complete Example
      • Security Considerations
      • Gas Cost Considerations
  • Seipex API
    • Available Endpoints
  • Seipex Mercury
    • Available Endpoints
Powered by GitBook
On this page

Seipex VRF

The Seipex VRF (Verifiable Random Function) is a protocol that allows developers to generate random numbers on their smart contracts in a way that everyone can verify and are completely tamper-proof. This is especially important in blockchain applications, where trust and transparency are key.

Why do we need verifiable randomness?

For example, in games or lotteries, it’s crucial that random outcomes are genuinely random and not manipulated by anyone. In blockchain, it’s not easy to get random numbers because everything is deterministic (meaning, predictable). The VRF ensures that the numbers we generate are not only random but also provably fair—everyone can check that the randomness is legitimate.

How it works:

  • Request the random number: When your contract needs a random number, it can call a function in the Seipex VRF Consumer. This function asks for a random number and keeps track of your request.

  • Receive the Random Number: Once the random number is ready, your smart contract receives it automatically on a special interface along with a verifiable proof that it was generated fairly.

PreviousFounder's Pass NFTNextIntegration

Last updated 9 months ago