<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Suilette on Medium]]></title>
        <description><![CDATA[Stories by Suilette on Medium]]></description>
        <link>https://medium.com/@suilette?source=rss-f9d60fc682b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3em5rM5W_Bun_pF9_PV-Sw@2x.jpeg</url>
            <title>Stories by Suilette on Medium</title>
            <link>https://medium.com/@suilette?source=rss-f9d60fc682b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:05:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suilette/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How does BLS signing work?]]></title>
            <link>https://medium.com/@suilette/how-does-bls-signing-work-c89c1b241668?source=rss-f9d60fc682b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c89c1b241668</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[suilette]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[sui]]></category>
            <dc:creator><![CDATA[Suilette]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 15:11:01 GMT</pubDate>
            <atom:updated>2024-01-04T15:11:01.503Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, we wrote a minor tweet about why we moved away from drand as a randomness solution. We decided that having our randomness based on an oracle with a mandatory requirement 30 second wait for each round of randomness didn’t truly suit casino games. Instead, we migrated to a randomness generator known as <strong>Boneh–Lynn–Shacham</strong> (BLS, <a href="https://en.wikipedia.org/wiki/BLS_digital_signature">https://en.wikipedia.org/wiki/BLS_digital_signature</a>) signing. One can easily verify the authenticity of the signature by checking our transactions that close games or open games.</p><p>We use the following algorithm to derive randomness in our games: Let A generate a private key P_a, and a public key P_b, where P_a, P_b are of the type vector&lt;u8&gt;.</p><p>We hash the UID of a game that is generated with the private key to create a bls signature, bls_sig.</p><p>We then take the hash of our bls_sig using the blake2b256 algorithm, and generate a vector&lt;u8&gt; of purely random bytes. From these bytes we can convert them to a random number used in our roulette game. Below is a code example using these functions:</p><pre>let game_id = object::id(game);<br>let game_id_bytes = object::id_to_bytes(&amp;game_id);<br>assert!(<br>    bls12381_min_pk_verify(<br>        &amp;bls_sig, &amp;game.house_pub_key, &amp;game_id_bytes,<br>    ),<br>    EInvalidBlsSignature,<br>);</pre><pre>// use the BLS to generate randomness<br>let random_bytes = blake2b256(&amp;bls_sig);<br>let result_roll = roll(random_bytes);</pre><pre>fun roll(random_bytes: vector&lt;u8&gt;): u64 {<br>      let output: u256 = 0;<br>      let bytes_length: u64 = 32;<br>      let idx: u64 = 0;<br>      while (idx &lt; bytes_length) {<br>          let current_byte = *std::vector::borrow(&amp;random_bytes, idx);<br>          output = (output &lt;&lt; 8) | (current_byte as u256) ;<br>          idx = idx + 1;<br>      };<br>      ((output % 38) as u64)<br>}</pre><p>This code is published in the package and accessible via the sui explorer:</p><p>0x07e0c6e1400054f63f866562bd719e72ca7633384c617edd79db27738ad81846</p><p>example drand:</p><p>8350ba3d48d4b90dbb335d79b99cf60b41b5c6e9e1ad9d1ba413f992fdea73ea524a9cd713d1053073c4f5d3d09135b808995b0674ddf80fa9c119c162af9d2b3a03b12f3b10c8e9ccff8b57ac5fd6361329660528fa2c875a514b938526d209</p><p>Example of a proof that doesn’t work:</p><p><a href="https://suiexplorer.com/txblock/AB619rpyRNahKx4z5srVosQ2ReWcPshJ2uaqfuTGeXHW">https://suiexplorer.com/txblock/AB619rpyRNahKx4z5srVosQ2ReWcPshJ2uaqfuTGeXHW</a></p><p>Public_key:</p><p>147,19,90,25,64,188,146,121,171,218,40,34,137,13,175,164,192,161,62,139,76,83,247,230,158,89,136,10,63,193,135,130,111,203,157,71,91,60,68,137,167,204,129,252,30,168,32,202</p><p>Let’s walk through step by step how one could validate the result:</p><p>We have a couple of important objects listed below:</p><ul><li>Roulette Game Object (<a href="https://suiexplorer.com/object/0xc9e11f6456e74b96d4cc1542ad00c0cbadd0c227a43ac9e55d4d353b651c92be">https://suiexplorer.com/object/0xc9e11f6456e74b96d4cc1542ad00c0cbadd0c227a43ac9e55d4d353b651c92be</a>)</li><li>This object holds a very important signature to verifying the BLS signature which is the public key of the object</li><li>See here the house_pub_key field of the game object.</li><li>Note that this object also returns the result of a roll as well.</li></ul><p>Now step 1 is to find the object that contains the BLS verification function which is located here (<a href="https://suiexplorer.com/object/0x0000000000000000000000000000000000000000000000000000000000000002?module=bls12381&amp;network=mainnet">https://suiexplorer.com/object/0x0000000000000000000000000000000000000000000000000000000000000002?module=bls12381&amp;network=mainnet</a>)</p><p>Then locate the last transaction used to close the game here: (<a href="https://suiexplorer.com/txblock/GCDCCzzgmZKK1RMRZe5GCeo9jSvbcKRsTg9W6zT9demW?network=mainnet">https://suiexplorer.com/txblock/GCDCCzzgmZKK1RMRZe5GCeo9jSvbcKRsTg9W6zT9demW?network=mainnet</a>)</p><p>We can find the vector&lt;u8&gt; and plug it into a typescript implementation below which shows what result gets rolled based on our randomness bls seed. Note that we get a result of 3 which was indeed our roll and the result has been validated! If you want to go even further there exists a cryptographic proof function based on the bytes and the game object itself provided in the package, but we leave this as an exercise to the reader to figure out.</p><pre>import { TransactionBlock } from &quot;@mysten/sui.js/transactions&quot;;<br>import { SuiClient, getFullnodeUrl } from &quot;@mysten/sui.js/client&quot;;</pre><pre>const GET_RESULT_ROLL = `0x07e0c6e1400054f63f866562bd719e72ca7633384c617edd79db27738ad81846::prover::fun_get_roll`;</pre><pre>/// &lt;https://suiexplorer.com/txblock/AJi1aVdUKw3ZtnPU9gB46VgxBtUtnWo2ZAsF5fF93oW6&gt;<br>const latest_bytes = [<br>  134, 166, 33, 204, 222, 39, 241, 156, 136, 84, 144, 125, 180, 173, 152, 6, 84,<br>  13, 253, 168, 97, 182, 83, 135, 19, 195, 75, 144, 180, 56, 158, 155, 87, 27,<br>  232, 247, 20, 40, 82, 74, 119, 94, 116, 46, 117, 156, 215, 17, 6, 99, 22, 164,<br>  166, 8, 168, 205, 177, 90, 173, 227, 114, 247, 208, 2, 144, 113, 18, 19, 211,<br>  169, 242, 252, 184, 246, 127, 62, 14, 44, 5, 156, 205, 40, 111, 27, 244, 62,<br>  253, 239, 118, 143, 100, 226, 22, 55, 180, 198,<br>];</pre><pre>async function check_bls() {<br>  const suiClient = new SuiClient({ url: getFullnodeUrl(&quot;mainnet&quot;) });</pre><pre>  let txb = new TransactionBlock();<br>  txb.moveCall({<br>    target: GET_RESULT_ROLL,<br>    arguments: [txb.pure(latest_bytes, &quot;vector&lt;u8&gt;&quot;)],<br>  });</pre><pre>  const response: any = await suiClient.devInspectTransactionBlock({<br>    transactionBlock: txb,<br>    sender:<br>      &quot;0xf8276ee2dcc1c6b9390deb4c7c7ed804fa6908211f8ec833d87e36cf9ca42633&quot;,<br>  });</pre><pre>  console.log(response.results![0].returnValues![0][0]);<br>}</pre><pre>async function main() {<br>  await check_bls();<br>}</pre><pre>main().catch((err) =&gt; console.log(err));</pre><p>Appendix</p><p><a href="https://docs.sui.io/guides/developer/cryptography/signing">https://docs.sui.io/guides/developer/cryptography/signing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c89c1b241668" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A New Suilette King — 18k SUI Winner]]></title>
            <link>https://medium.com/@suilette/a-new-suilette-king-18k-sui-winner-89bc46a1c0b5?source=rss-f9d60fc682b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/89bc46a1c0b5</guid>
            <category><![CDATA[suilette]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[sui]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[betting]]></category>
            <dc:creator><![CDATA[Suilette]]></dc:creator>
            <pubDate>Fri, 27 Oct 2023 19:18:52 GMT</pubDate>
            <atom:updated>2024-01-06T20:12:39.464Z</atom:updated>
            <content:encoded><![CDATA[<h3>A New Suilette King — 18k SUI Winner</h3><p>Today the team woke up to a high roller that rekted the house balance. Congrats to the new debut of suiletteking.sui on Suilette–we have decided to crown the winner of 18k SUI with a new SuiNS name. Let us celebrate the crowning of a new king, and the proven capabilities of the Sui blockchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ea0f0ILevELjNfbh" /></figure><p>In all seriousness, as a dev team, we are proud of our capabilities to stand up to such variance in our game. Unlike other games that could be in the ecosystem, Suilette has never experienced unexpected downtime. The only downtime has been for planned server updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7G7YDkPzqCi2miWa" /></figure><p>Our Promise: Regardless of the volatility that the house may experience, we take uptime incredibly seriously for our community–we want to provide our services for a true casino experience online. The crowning event of suiletteking.sui shows that our team is truly capable of taking on variance from high roller participants. We promise to our user base that we will do our best to never go down, and to always provide action. You can always play Suilette, no matter how much you win, just like at live casinos.</p><p>We believe the SUI ecosystem is the best to build on–we have seen our smart contracts handle over 1k bets in a single round, and experience thousands of Sui losses at once from our house balance. We feel incredibly safe developing with Move to ensure our contracts are performant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BNGbtC4hvuAblNkT" /></figure><p>Suilette is a project that has their users in mind. A project that stands irrespective of the market trends, be it bullish or bearish.</p><p>The best has always been the best.</p><p>memes by Investorcd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89bc46a1c0b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why $BUCK?]]></title>
            <link>https://medium.com/@suilette/gm-anon-b042aaa28f63?source=rss-f9d60fc682b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b042aaa28f63</guid>
            <category><![CDATA[buck]]></category>
            <category><![CDATA[sui]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[suilette]]></category>
            <category><![CDATA[betting]]></category>
            <dc:creator><![CDATA[Suilette]]></dc:creator>
            <pubDate>Thu, 26 Oct 2023 15:05:54 GMT</pubDate>
            <atom:updated>2023-10-26T16:14:01.970Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why $BUCK</h3><p>GM anon,</p><p>Did you wake up yesterday and see -10% on $SUI? You might ask yourself “Why the fuck did I hold this shitcoin???”</p><p>Today, I actually woke up to see another -3%, which makes the following case below even stronger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*WSDeoPK5x9L6dexnXHgMZQ@2x.jpeg" /></figure><p>You might even have played a little Suilette last night, risking 200 SUI on red, or flipped heads on desuilabs to earn 200 SUI back. BUT, anon, after you wake up to -10% you risked all that capital to only have earned 160 SUI!!! (200 SUI profit, but down 10% so (base + profit) * 10% = 40).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*vIB8Ykg-GDRub868XrKuiw@2x.jpeg" /></figure><p>As gamblers we already risk capital to pesky casino games every day, why should you be sustained to greater volatility? You should be able to win chips from the casino, and retain the value of those chips. Would you be pissed if someone you made a bet with gave you less money than expected?</p><p>This is why we are introducing $BUCK — a decentralized casino needs a decentralized stablecoin. Instead of being susceptible only to the winds and tantrums of their own emotions, our holders and users of $BUCK are secured from the volatile swings of the crypto casino.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*4Lj7so3c6F0aKHIxmiDgeA@2x.jpeg" /></figure><p>Start playing with $BUCK today on suilette.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*v3NHbqGyIX9JSnZdzxgXEQ@2x.jpeg" /></figure><p>Join us now on suilette.com and predict your games using $BUCK.</p><p>Co-authored by investor_cd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b042aaa28f63" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>