<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Developers Forum for XinFin XDC Network: DeRand</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by DeRand (@derand_dev).</description>
    <link>https://www.xdc.dev/derand_dev</link>
    <image>
      <url>https://www.xdc.dev/images/e95jFT9LPkDjmkwzipQHa-ChZIZSY63VntAXoGDJ2oY/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS8z/MTA5L2FkMDYzYmNh/LTBhODktNDJhNC1i/NzRmLWE0ZmViYTc5/Y2I2ZS5qcGc</url>
      <title>Developers Forum for XinFin XDC Network: DeRand</title>
      <link>https://www.xdc.dev/derand_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/derand_dev"/>
    <language>en</language>
    <item>
      <title>[Informative] DeRand VRF Protocol is Live on XDC</title>
      <dc:creator>DeRand</dc:creator>
      <pubDate>Fri, 31 May 2024 09:43:51 +0000</pubDate>
      <link>https://www.xdc.dev/derand_dev/derand-vrf-protocol-is-live-on-xdc-3e07</link>
      <guid>https://www.xdc.dev/derand_dev/derand-vrf-protocol-is-live-on-xdc-3e07</guid>
      <description>&lt;p&gt;The DeRand VRF protocol is now live on XDC. You can find the Coordinator address here:&lt;br&gt;
&lt;a href="https://xdcscan.io/address/0x24092A71ae67b6773F6ecdc56a9E153e5C57D2E7#transactions"&gt;Coordinator Address on XDC Scan.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DeRand leverages the Muon decentralized TSS network to provide verifiable random numbers on any EVM and non-EVM blockchain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DeRand in a Nutshell&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DeRand is a decentralized, chain-agnostic and verifiable random number generator (RNG). It leverages Pion’s (by Muon) decentralized Threshold Signature Scheme to generate verifiable random numbers for smart contracts on any blockchain. Pion/Muon is a stateless and chain-independent oracle network that “enables dApps to decentralize the off-chain components”.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Muon/Pion?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Pion is the Muon ecosystem’s Canary and first mainnet. It is a chain-independent and stateless DON (Decentralized Oracle Network) that enables dApps to make their off-chain components decentralized. By incorporating Pion (by Muon), the manner in which decentralized applications store, process, and access data will be fundamentally transformed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Use It&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DeRand contracts are fully compatible with Chainlink's VRF. Developers can utilize Chainlink VRF contracts and simply replace the Coordinator address with DeRand's Coordinator address.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here is an Example&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.sol";

contract DeRandConsumerExample is VRFConsumerBaseV2 {
    // state vars
    /**
     * DeRand protocol is compatible with Chainlink VRF
     * Consumer contracts.
     * The only difference is the Coordinator address,
     * which is specific to each network.
     *
     * DeRand's Coordinator XDC Contract Adress:
     * xdc24092A71ae67b6773F6ecdc56a9E153e5C57D2E7
     */
    constructor() VRFConsumerBaseV2(xdc24092A71ae67b6773F6ecdc56a9E153e5C57D2E7) {
        COORDINATOR = VRFCoordinatorV2Interface(
            0x24092A71ae67b6773F6ecdc56a9E153e5C57D2E7
        );
    }

    // rest of the code ...
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/derand-protocol/derand-contracts/blob/main/contracts/examples/DeRandConsumerExample.sol"&gt;Full example on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More details&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="//derand.dev"&gt;DeRand Website&lt;/a&gt;, &lt;a href="https://pion.muon.net/"&gt;PION Website&lt;/a&gt;, &lt;a href="//muon.net"&gt;Muon Website&lt;/a&gt;, &lt;a href="https://github.com/derand-protocol"&gt;DeRand Github&lt;/a&gt;, &lt;a href="https://discord.gg/CzpVExVca8"&gt;DeRand Discord&lt;/a&gt;&lt;/p&gt;

</description>
      <category>xdc</category>
      <category>vrf</category>
      <category>derand</category>
    </item>
  </channel>
</rss>
