<?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 Rohan Singla on Medium]]></title>
        <description><![CDATA[Stories by Rohan Singla on Medium]]></description>
        <link>https://medium.com/@rohansinglawork?source=rss-2b7b0ebbc138------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SKV7uwt07UAvQr9FmLNhQg.jpeg</url>
            <title>Stories by Rohan Singla on Medium</title>
            <link>https://medium.com/@rohansinglawork?source=rss-2b7b0ebbc138------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:23:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohansinglawork/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[Designing Ecommerce Product Listing (System Design)]]></title>
            <link>https://medium.com/@rohansinglawork/designing-ecommerce-product-listing-system-design-13e6fb9efdd5?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/13e6fb9efdd5</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[system-design-project]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 14:22:40 GMT</pubDate>
            <atom:updated>2026-08-20T14:22:40.925Z</atom:updated>
            <content:encoded><![CDATA[<p>So in this article i will go through designing an system design for an ecommerce product listing platform . The goal is to learn while building it i will write my notes here . For someone reading this i believe it could be useful for someone to learn and develop better thinking skills.</p><p>So first for a product listing what if there is a good amount of traffic comes to the website how do we manage that . The simplest approach would be to create multiple servers behind a loadbalancer to manage load among different servers talking to the same DB . So the archtiecture would look something like this till now .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Wiy9p-xKhY_lrVkyOiB9A.png" /></figure><p>We can have a same architecture for frontend too multiple servers beind loadbalancer . Now for a admin who creates and updates products on the site can have a separate frontend which talks to the frontend its not necessary to have it separately but having it in the same frontend can cause security issues , more complexity at scale so it would be better to keep it separate and having proper validation on the backend .</p><p>Now to scale DB a simple approach would be to have a replica basically using the replica for the reads and using the master DB for the writes however its not necessary that master DB only does the writes it can also do the reads if writes are not too heavy which in this case aren’t and admin doesn’t require a scalable server architecture as its very few people who will use it . For reads we could have an cache solution too but that won’t be wrong but this approach works fine too .We could have 2 separate DB connections doing reads in one DB and writes in master DB . So the final architecture would look something like this .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tthc-RYvqyGAXF-S7hv7Xg.png" /></figure><p>Now i will write somethings which i got in my mind .</p><p>What if one server goes down ?</p><p>LB will recognise this and distribute the load among the remaining servers until it the down server becomes healthy again . (This would be a general solution considering server doesn’t hold any cache or user sessions for that you probably want to store in something like redis)</p><p>What if the loadbalancer goes down ?</p><p>It becomes a single point of failure in that case you usually have multiple load balancers to handle.</p><p>I have tried to keep it simple in this one but will try to level up the things from here . Also a special mention to <a href="https://x.com/arpit_bhayani">https://x.com/arpit_bhayani</a> all these learnings are from him primarily .</p><p>Would love any feedback also if you feel like you have a question or suggestion will be happy to discuss together .</p><p>X — <a href="https://x.com/rohanBuilds">https://x.com/rohanBuilds</a><br>Telegram — @ Rohansingla</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13e6fb9efdd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just Experience Things…]]></title>
            <link>https://medium.com/@rohansinglawork/just-experience-things-95728299f23e?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/95728299f23e</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 18:20:29 GMT</pubDate>
            <atom:updated>2025-11-27T18:20:29.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmELgWRPAJB_EbeKPPkxZQ.png" /></figure><p>In this blog, I want to talk about something my Dad and I discussed recently.<br> For a little context — I’ve been getting into philosophy and psychology. I read quotes, ideas, and concepts that really shift my perspective. I told my Dad that these things are helping me grow.</p><p>He said something interesting:<br> <strong>“Reading is good… but remember, what you’re reading is someone else’s experience, not yours.”</strong></p><p>If you read a quote by Naval and you like it, that’s great — but that’s <em>his</em> lived truth. For it to become <em>your</em> truth, you have to verify it through your own life. Only then does it actually shape you.</p><p>To explain this better, my Dad gave me a short story:</p><h3>The Empty Chest</h3><p>There was once a guy who went to Goa for work. Before leaving, he told his girlfriend,<br> “I’ll bring something for you when I’m back.”</p><p>While in Goa, he saw a beautiful sunset at the beach. He felt peaceful, inspired, moved — and thought, <em>I wish she could feel this too.</em></p><p>So he bought a little wooden chest, wrote a note describing his experience, and sent it to her.</p><p>When his girlfriend received the gift, she was excited. She read his note, smiled, and then opened the chest.</p><p>It was completely empty.<br> She was confused.</p><p>The point of the story is simple:</p><p><strong>No matter how beautifully someone describes their experience… you can never fully feel it unless you live it yourself.</strong></p><h3>Understanding vs. Experiencing</h3><p>Books, quotes, movies — they can guide us. They can inspire us. But they’re still just words.<br> Only when you act on them, live them, test them in the real world, do they become real.</p><p>When you experience something, it becomes <strong>your</strong> fact — not just borrowed wisdom.</p><p>I hope you liked this blog. Stay tuned for more :)</p><p>Also check out my other article on philosophy:<br><a href="https://medium.com/@rohansinglawork/the-flowing-water-and-outer-eye-580de636c87a">https://medium.com/@rohansinglawork/the-flowing-water-and-outer-eye-580de636c87a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95728299f23e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Flowing Water and Outer Eye]]></title>
            <link>https://medium.com/@rohansinglawork/the-flowing-water-and-outer-eye-580de636c87a?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/580de636c87a</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[spirituality]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 09:44:34 GMT</pubDate>
            <atom:updated>2025-11-26T10:44:42.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZwbcqsB0jDjkaQjpOgNPw.png" /></figure><p>This is my first blog, and I want to share something my dad and I discussed recently a simple question that opened a philosophical doorway for me.</p><p>My dad asked:<br> <em>“There is a river flowing. You’re standing beside it, watching the water move. Now, if you place one foot in the river, what changes? Does the water change, or do your feet change?”</em></p><p>At first, I tried answering scientifically. He just smiled and told me, “You’re not thinking from the inside.”</p><p>Then he asked,<br> <em>“Okay, now put your other foot in. What changed this time?”</em></p><p>Again, I had no real answer.</p><p>When he finally explained, it clicked.<br> When my first foot entered the river, the water kept flowing it never stayed still. New water touched my foot every second. What touched me a moment ago was already gone.</p><p>By the time I put my second foot in, even <strong>I</strong> wasn’t the same person I was a moment earlier. My thoughts had changed. My inner state had shifted. And of course, the water touching the second foot wasn’t the same water that touched the first.</p><p>So what does this mean?</p><p>The river is <strong>time</strong>.<br> Your feet are <strong>your experiences and your changing mind</strong>.<br> Everything the outer eye sees the world, situations, emotions, thoughts keeps flowing. Nothing stays constant.</p><p>But the one thing that <em>doesn’t change</em> is the soul the inner witness, the part of you that stays the same through every moment, every version of yourself.</p><p>I’m not experienced in writing, but I wanted to express this small insight. I hope to share more thoughts like this in the future.</p><p>Would love to hear any perspective or feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=580de636c87a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Future: Threshold Cryptography, VRFs & Blocklock Encryption in Action]]></title>
            <link>https://medium.com/@rohansinglawork/unlocking-the-future-threshold-cryptography-vrfs-blocklock-encryption-in-action-db5c373717d3?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/db5c373717d3</guid>
            <category><![CDATA[threshold-cryptography]]></category>
            <category><![CDATA[randamu]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Sat, 09 Aug 2025 22:06:33 GMT</pubDate>
            <atom:updated>2025-08-10T14:30:48.851Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*ACehadLhT0j6vUI5LgzuoQ.png" /></figure><p>When I first stumbled upon the term <em>threshold cryptography</em>, I assumed it was just another overcomplicated buzzword from the cryptography world. It wasn’t until I started experimenting with it for a side project that I realized just how much potential it has to reshape how we build secure, trustless systems.</p><p>In this post, I’ll share my own learnings at <a href="https://x.com/RandamuInc">Randamu</a> — from the basics of threshold cryptography to the surprising ways verifiable randomness functions (VRFs) and Blocklock Encryption can be combined. This isn’t theory from a textbook; it’s a reflection of what I’ve been tinkering with lately.</p><h3>Threshold Cryptography — Security by Collaboration</h3><p>At its core, threshold cryptography flips the usual “single private key” idea on its head.<br> Instead of one person (or server) holding the full key, the key is split into <em>shares</em> across multiple participants. A minimum number-the <em>threshold</em>-must collaborate to perform any cryptographic action like signing or decrypting.</p><p><strong>💡 My takeaway from experimenting:</strong><br> This completely changes how you think about trust in a decentralized system. No single validator, admin, or oracle has the full power.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2HsBibRv0EsN698DAjLQEg.png" /></figure><p>See the above image its an image of people gathered to open a vault because there is not a single person who has the complete power to open the vault.</p><p><strong>Reference:</strong></p><ul><li><a href="https://en.wikipedia.org/wiki/Shamir%27s_secret_sharing">Shamir’s Secret Sharing Explained </a>— the math behind splitting keys into shares commonly used for MPC’s, where multiple parties collaborate to compute a function over their inputs without revealing their individual inputs to each other. This is useful in scenarios like privacy-preserving data analysis or joint computations</li><li><a href="https://github.com/randa-mu/randomness-solidity">randomness-solidity</a> — an open-source library implementing decentralized threshold randomness.</li></ul><h3>A Quick Dive into BLS Signatures</h3><p>As I dug deeper into threshold cryptography, I stumbled upon <strong>BLS (Boneh–Lynn–Shacham) signatures</strong> a fascinating piece of crypto math that’s getting a lot of attention in blockchain systems.</p><p>The cool thing about BLS signatures is that they allow <strong>signature aggregation</strong>. In simple terms, multiple signatures from different participants can be combined into a single, compact signature that still proves everyone signed.</p><p>Why does this matter?</p><ul><li><strong>Efficiency</strong> → Instead of storing/verifying a bunch of separate signatures on-chain, you only deal with one.</li><li><strong>Scalability</strong> → This is especially powerful in high-throughput chains or multi-party signing scenarios.</li><li><strong>Clean Multisig UX</strong> → Instead of each signer leaving a trace, the aggregated result looks just like a normal single signature.</li></ul><p>BLS signatures are already used in places like <strong>Ethereum 2.0 consensus</strong> and various threshold signature schemes. And if you pair them with concepts like VRFs or Blocklock encryption, you get some very elegant ways to do verifiable randomness and secure threshold signing without blowing up transaction size.</p><h3>Where VRFs Come In</h3><p>A <strong>Verifiable Random Function (VRF)</strong> is like a magic coin toss you can prove to everyone wasn’t rigged.</p><p>It works in two parts:</p><ol><li><strong>Randomness Generation</strong> → You start with a private key and some input (like a block hash or timestamp). The VRF algorithm produces a <em>random-looking output</em> that even you couldn’t have predicted before running it.</li><li><strong>Proof Creation</strong> → Alongside the output, it creates a cryptographic proof that <em>anyone</em> with your public key can verify — ensuring the randomness really came from you and wasn’t tampered with.</li></ol><p>The beauty of VRFs is that they’re <strong>both unpredictable and verifiable</strong>. This makes them perfect for:</p><ul><li>Selecting validators fairly in a blockchain network.</li><li>Randomly assigning tasks without favoritism.</li><li>Cryptographic lotteries or raffles that can’t be gamed.</li></ul><p>In essence, a VRF is <strong>randomness with receipts</strong> — you can show exactly where it came from, and no one can fake it or see it beforehand.</p><p><strong>Potential use cases of VRF’s from my notes in popular web3 domains:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*TQT2UbPk_wlMVAS1g3DUuQ.png" /></figure><p><strong>Reference:</strong></p><ul><li><a href="https://docs.chain.link/vrf">Chainlink VRF</a> — widely used in games, NFTs, and lotteries.</li><li><a href="https://github.com/randa-mu/randomness-js">randomness-js</a> — VRF logic in JavaScript.</li></ul><h3>Blocklock Encryption — Timed Secrets on the Blockchain</h3><p><strong>Blocklock encryption</strong> lets you encrypt data today and have it automatically unlock in the future, when a specific blockchain condition is met.</p><p>Think of it like a <strong>time-locked safe</strong> or a <strong>conditional vault</strong> for information:</p><ul><li>You encrypt a message, file, or key right now.</li><li>You set a condition — for example:</li><li><em>Unlock after block height 1,000,000.</em></li><li><em>Unlock if a specific transaction or contract event happens.</em></li><li>Until that condition is met, no one (not even you) can open it.</li></ul><p>This is made possible through <strong>threshold encryption</strong> combined with on-chain verification, so there’s no central party deciding when to reveal the secret.</p><p>In short, Blocklock turns the blockchain into a <strong>secure timer</strong> for your secrets — unlocking them only when the chain says it’s time.</p><p><strong>Potential use cases of Blockchain Encryption from my notes:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*-yzEqri3ho9T6hrfJsn_FA.png" /></figure><p><strong>Reference:</strong></p><ul><li><a href="https://github.com/randa-mu/blocklock-js">blocklock-js</a> — JavaScript SDK for conditional encryption.</li><li><a href="https://github.com/randa-mu/blocklock-solidity">blocklock-solidity</a> — Solidity version for smart contracts.</li></ul><h3>Why This Matters for Builders</h3><p>We’re in an era where blockchain adoption is no longer just about “can we store this on-chain?” — it’s about <strong>what we can build when trust is programmable</strong>.</p><p>Here’s how they fit together:</p><ul><li>Threshold cryptography → <strong>No single point of failure</strong></li><li>VRFs → <strong>Fairness you can prove</strong></li><li>Blocklock encryption → <strong>Secrets you can program</strong></li></ul><h3>📚 Want to Learn in More Depth?</h3><p>If you’re curious to dive deeper into each and related topics, I’ve written separate posts breaking them down:</p><ul><li><a href="https://medium.com/@rohansinglawork/introduction-to-threshold-cryptography-a769df940e25"><strong>Threshold Cryptography</strong> </a>— Intro, Key components, BLS Signatures , Applications and Resources.</li><li><a href="https://medium.com/@rohansinglawork/dcipher-the-first-generalised-threshold-network-64fb18fa9d8f"><strong>Dcipher Network</strong></a>— World’s first <strong>generalised threshold network</strong>, enabling secure, distributed cryptographic operations without relying on a single point of trust.</li><li><a href="https://medium.com/@rohansinglawork/use-cases-of-threshold-cryptography-daa45314be46"><strong>Use Cases of threshold cryptography</strong></a><strong> </strong>—Use cases of <strong>Verifiable Randomness</strong> and <strong>BlockLock</strong> (conditional encryption until a future block).</li></ul><p><strong>Final thought:</strong><br> The magic of these tools isn’t just in their math — it’s in the creative combinations. I’m just getting started, but I already see a path where fair, private, and trustless apps will feel as natural as browsing the web.</p><h3>A Use Case I Thought Of</h3><p>While exploring threshold cryptography, one potential application that stood out to me was integrating it with <strong>Gnosis Safes</strong> (now <a href="https://safe.global/">Safe</a>) or <a href="http://palmeradao.xyz/"><strong>PalmeraDAO</strong>’s </a>modular account solutions.</p><p>Instead of relying purely on a fixed multisig setup where private keys are stored individually, threshold signing could distribute key shares among participants. This means transactions could still be approved without any single party ever holding the complete private key — making the system far more resilient against both compromise and key loss.</p><h3>🙏 Credits</h3><p>Special thanks to the <a href="https://x.com/RandamuInc">Randamu </a>team for their <a href="https://www.youtube.com/@RandamuInc">threshold cryptography bootcamp</a> and open-source contributions, including</p><ul><li><a href="https://github.com/randa-mu/randomness-js">randomness-js</a> &amp; <a href="https://github.com/randa-mu/randomness-solidity">randomness-solidity</a> for decentralized verifiable randomness.</li><li><a href="https://github.com/randa-mu/blocklock-js">blocklock-js</a> &amp; <a href="https://github.com/randa-mu/blocklock-solidity">blocklock-solidity</a> for conditional encryption on-chain.</li></ul><p>Their work made it so much easier to use threshold cryptography, VRFs, and Blocklock encryption without the crazy math which can be implemented easily into your projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db5c373717d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use Cases of Threshold Cryptography]]></title>
            <link>https://medium.com/@rohansinglawork/use-cases-of-threshold-cryptography-daa45314be46?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/daa45314be46</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[project-ideas]]></category>
            <category><![CDATA[dcipher-network]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 10:21:56 GMT</pubDate>
            <atom:updated>2025-08-08T10:21:56.070Z</atom:updated>
            <content:encoded><![CDATA[<p>Threshold cryptography is transforming how we think about trust, security, and automation in decentralised systems. By distributing cryptographic operations across multiple parties, it removes single points of failure and enables new categories of applications that are fair, tamper-proof, and transparent.</p><p>This article explores two major categories of use cases: <strong>Verifiable Randomness</strong> and <strong>BlockLock</strong> (conditional encryption until a future block).</p><h3>Verifiable Randomness: Why It Matters</h3><p>In many systems, the integrity of random values is critical. Threshold cryptography can power <strong>Verifiable Random Functions (VRFs)</strong> — ensuring that randomness is:</p><ol><li><strong>Unpredictable-</strong>No one can guess the outcome in advance.</li><li><strong>Tamper-proof</strong> -No single party can alter results.</li><li><strong>Publicly verifiable</strong> -Anyone can confirm the fairness of the outcome.</li></ol><h3>Example Applications</h3><ul><li><strong>Gaming &amp; E-sports-</strong>Fair loot drops and tournament draws.</li><li><strong>Health &amp; Research-</strong>Blinded clinical trials with verifiable sample selection.</li><li><strong>Governance &amp; Civic Systems-</strong>Committee selection without manipulation.</li><li><strong>Privacy &amp; Compliance</strong> -Triggering surprise audits that can’t be predicted.</li><li><strong>NFT &amp; AI</strong> -Generating rare traits with provable fairness.</li><li><strong>DeFi</strong> -MEV resistance through random proposer selection and transaction shuffling.</li></ul><h3>BlockLock: Seal Data Until a Future Block</h3><p>BlockLock uses conditional encryption to <strong>lock information until a specific blockchain height or time</strong>, ensuring fairness and preventing premature leaks.</p><p><strong>Key properties:</strong></p><ol><li><strong>Fair timing-</strong>No access before the predetermined block.</li><li><strong>Decentralised automation</strong> -Unlock conditions enforced without intermediaries.</li><li><strong>Auditable proofs</strong> -Public verification that rules were followed.</li></ol><h3>Example Applications</h3><ul><li><strong>Creators &amp; Media</strong> — Timed releases of albums, videos, or digital art.</li><li><strong>Governance</strong> — Encrypted voting with verifiable tallies post-deadline.</li><li><strong>Privacy Tools</strong> — “Dead man’s switch” for releasing secrets at a future block.</li><li><strong>DeFi</strong> — Protecting against MEV by revealing transaction details only at inclusion time.</li><li><strong>Commerce</strong> — Sealed-bid auctions with bids revealed only after the deadline.</li><li><strong>Cross-Chain Coordination</strong> — Locking funds on one chain until a milestone is reached on another.</li></ul><h3>Key Takeaways</h3><ul><li><strong>Verifiable randomness</strong> enables unbiased, fair outcomes in competitive, financial, and governance systems.</li><li><strong>Threshold cryptography</strong> eliminates single points of failure by distributing trust.</li><li><strong>Conditional encryption</strong> such as BlockLock allows secure, automated decision-making without intermediaries.</li><li>These capabilities are already available on networks like <strong>dcipher</strong>, ready for integration into production systems.</li></ul><p>💡 <strong>Want to learn more?</strong><br> If you’re curious about <em>how threshold cryptography works</em> about dcipher network ? Checkout -&gt; <a href="https://medium.com/@rohansinglawork/dcipher-the-first-generalised-threshold-network-64fb18fa9d8f">https://medium.com/@rohansinglawork/dcipher-the-first-generalised-threshold-network-64fb18fa9d8f</a></p><p>I’ve written a detailed article covering the fundamentals.<br> Follow me for more insights on web2 , decentralised systems, and blockchain innovation , web3.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daa45314be46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dcipher: The First Generalised Threshold Network]]></title>
            <link>https://medium.com/@rohansinglawork/dcipher-the-first-generalised-threshold-network-64fb18fa9d8f?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/64fb18fa9d8f</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[dcipher-network]]></category>
            <category><![CDATA[randamu]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 08:34:05 GMT</pubDate>
            <atom:updated>2025-08-08T08:34:05.828Z</atom:updated>
            <content:encoded><![CDATA[<p>dcipher is the world’s first <strong>generalised threshold network</strong>, enabling secure, distributed cryptographic operations without relying on a single point of trust. It extends threshold cryptography beyond traditional use cases to cover signing, encryption, randomness, and more.</p><h3>The Threshold Concept (t-of-n)</h3><p>In threshold cryptography:</p><ul><li><strong>n</strong> = total participants (e.g., Alice, Bob, Carol)</li><li><strong>t</strong> = minimum participants required to perform an action</li></ul><p>Example: If <em>t = 2</em> and <em>n = 3</em>, any two members can jointly sign or decrypt a message — without any single member having the full private key.</p><h3>drand: A Proven Predecessor</h3><p>dcipher builds on experience from <strong>drand</strong>, a decentralised randomness beacon:</p><ul><li><strong>7 years uptime</strong></li><li><strong>21 mainnet nodes</strong> across <strong>11 countries</strong></li><li><strong>Zero downtime</strong></li><li><strong>30M+ rounds</strong> of randomness generated</li></ul><p><strong>Key properties:</strong></p><ul><li>Unbiased</li><li>Verifiable</li><li>Highly available</li><li>Public and free to use</li></ul><p>drand demonstrates how decentralised networks can deliver reliable, verifiable randomness and serve as a “cryptographic clock.”</p><h3>Timelock Encryption</h3><p>Timelock encryption ensures that data can only be decrypted after a specified future time (epoch).</p><p><strong>Process:</strong></p><ol><li>Encrypt a message with a public key.</li><li>Specify an epoch number as the unlock time.</li><li>Use the network’s signature at that epoch to decrypt.</li></ol><h3>Core Capabilities of Dcipher</h3><ul><li><strong>Conditional Signing-&gt;</strong>Only sign messages if predefined conditions are met.</li><li><strong>Distributed Key Generation-&gt;</strong>Keys are never stored in one place.</li><li><strong>Conditional Decryption-&gt;</strong> Unlock data based on rules, not only time.</li><li><strong>Plugin Architecture-&gt;</strong>Supports custom integrations and extensions.</li><li><strong>Committee Formation-&gt;</strong>Dynamically select participants for each operation.</li></ul><h3>Potential Use Cases</h3><ul><li>Timestamping and audit trails</li><li>Verifiable randomness for fair selection</li><li>Decentralised oracles for trust-minimised data</li><li>Fine-grained access control</li><li>Universal state machines (future vision)</li></ul><h3>Open Research Challenges to look at</h3><ul><li>Silent setup threshold encryption</li><li>Traitor tracing mechanisms</li><li>MEV prevention strategies</li><li>Zero-knowledge proofs of encryption</li></ul><h3>Looking Ahead</h3><p>Upcoming launches include:</p><ul><li>OnlySwaps</li><li>OnlySubs</li><li>dcipher mainnet</li></ul><p>dcipher aims to be the foundation for a new generation of decentralised applications that require trustless collaboration, verifiable randomness, and secure coordination.</p><p>💡 <strong>Want to dive deeper into the fundamentals?</strong><br> If you’d like to understand <em>what threshold cryptography is</em> and how it works, I have a article on it here -&gt; <a href="https://medium.com/@rohansinglawork/introduction-to-threshold-cryptography-a769df940e25">https://medium.com/@rohansinglawork/introduction-to-threshold-cryptography-a769df940e25</a></p><p>Follow me for more such content on Web2 , decentralisation, and blockchain technology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64fb18fa9d8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Introduction to Threshold Cryptography]]></title>
            <link>https://medium.com/@rohansinglawork/introduction-to-threshold-cryptography-a769df940e25?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/a769df940e25</guid>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 11:07:46 GMT</pubDate>
            <atom:updated>2025-08-06T12:37:11.958Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there! I’m currently attending the <strong>Randamu</strong> Bootcamp, and we’ve just had an amazing session on <strong>Threshold Cryptography</strong> by <a href="https://x.com/AnomalRoil">Yolan Romailler</a>. As a fellow student, let me break down what we learned short, simple, and straight to the point.</p><h3>🧠 First, what even is cryptography?</h3><p>Cryptography literally means “secret writing.” It’s all about hiding data and proving that it hasn’t been tampered with something essential in today’s digital world.</p><p>Some quick terms:</p><ul><li><strong>Plaintext</strong>: Your actual data (message/image).</li><li><strong>Ciphertext</strong>: Encrypted data.</li><li><strong>Signature</strong>: A cryptographic way to prove authenticity.</li><li><strong>Public-key cryptography</strong>: You share one key publicly, keep the other private.</li><li><strong>Threshold</strong>: A “minimum number” required to do something (like unlock a secret).</li></ul><h3>🎲 Good randomness matters a lot</h3><p>Ever used math.random()? Well, don’t it’s <em>not</em> secure. Instead, use cryptographic randomness like Go’s crypto/rand.</p><p>But even with crypto/rand, beware of <strong>modulo bias</strong>. Reducing a random byte modulo a non-power-of-2 (like 107) creates predictable patterns. Use <strong>rejection sampling</strong> or safe methods to avoid this.</p><h3>✍️ What’s a digital signature?</h3><p>Think of it like a digital stamp of authenticity. Only the private key can create a valid signature, and only the public key can verify it.</p><p>You can’t fake it. You can’t reverse it.</p><h3>🔐 Threshold Cryptography 101 Sharing Secrets the Smart Way</h3><p>Imagine you had a secret like the key to a treasure chest. Instead of giving the whole key to one person (risky!), you break it into parts and give each part to a different friend. Now, only when enough friends (say, 3 out of 5) come together can they open the chest. That’s the essence of <strong>Threshold Cryptography</strong> splitting trust across a group.</p><p>Instead of storing a private key in one place (which could be hacked or lost), threshold cryptography <strong>divides the key into pieces</strong>, and only when a certain number (threshold t) of those pieces are used together can the system perform cryptographic operations like signing or decryption.</p><h3>🔢 Key Components of Threshold Crypto</h3><p><strong>🔸 Shamir Secret Sharing (SSS)</strong><br> This is the core idea. It uses polynomial math to split a secret into n parts such that <strong>any </strong><strong>t parts are enough to recover the secret</strong>, but fewer than t reveal nothing. Think of it as defining a curve with t points with enough known points, you can reconstruct the whole thing.</p><p><strong>🔸 Verifiable Secret Sharing (VSS)</strong><br> What if the person giving out the secret shares is malicious? VSS makes sure each share is <strong>verifiable </strong>participants can check if their share is valid, protecting against tampering or bad setups.</p><p><strong>🔸 Distributed Key Generation (DKG)</strong><br> This takes it to the next level. Instead of having a single dealer splitting the secret, <strong>everyone contributes to generating the key together</strong>, and no one ever knows the full secret. It’s fully decentralized and safer for setting up group-based cryptography.</p><h3>✨ BLS Signatures Built for Threshold Magic</h3><p><strong>Boneh-Lynn-Shacham (BLS) signatures</strong> are special digital signatures that work great with threshold cryptography:</p><ul><li>✅ <strong>Short and clean</strong>: The signatures are small great for blockchains.</li><li>✅ <strong>Easy to combine</strong>: You can add partial signatures from different key shares together to get a valid full signature.</li><li>✅ <strong>No need to rebuild the full secret</strong>: The <strong>actual private key is never reconstructed or stored</strong> signing happens with individual shares, and the combined result still verifies under the shared public key.</li></ul><p>Behind the scenes, this works using something called <strong>pairings</strong>, which allow us to check that the math works out without revealing any secrets. It’s secure, efficient, and clean.</p><h3>🛡️ Applications of Threshold Crypto</h3><p>Threshold cryptography is more than theory. It powers:</p><ul><li>🗳️ Secure electronic voting</li><li>🧑‍⚖️ Sealed-bid auctions</li><li>🕵️‍♂️ Dead-man switches</li><li>🔐 Social recovery wallets</li><li>🧠 Identity-based encryption (IBE)</li></ul><h3>🧰 Want to Build with Threshold Crypto?</h3><p>the folks at Randamu have open-sourced a bunch of libraries to get you started:</p><ul><li><strong>🔮 Verifiable Randomness</strong><br> Use these to bring randomness on-chain (great for games, raffles, etc.):<br> <a href="https://github.com/randa-mu/randomness-js">randomness-js</a> | <a href="https://github.com/randa-mu/randomness-solidity">randomness-solidity</a></li><li><strong>🔐 Conditional Threshold Encryption</strong><br> Perfect for time-locked secrets or access control:<br> <a href="https://github.com/randa-mu/blocklock-js">blocklock-js</a> | <a href="https://github.com/randa-mu/blocklock-solidity">blocklock-solidity</a></li><li><strong>⚙️ Cryptographic Primitives in Go</strong><br> Everything from BLS signatures to Distributed Key Generation (DKG):<br> <a href="https://github.com/drand/kyber">drand/kyber</a></li></ul><h3>Final Thoughts</h3><p>As someone learning , it’s honestly mind-blowing to see how cryptography moves from pure math to real-world systems that affect things like elections, finance, and even social security.</p><p>This session made me appreciate the hidden layers powering decentralization and now I’m itching to build something with threshold crypto.</p><p>Let’s keep learning, keep shipping, and maybe keep signing 😉<br> ~ <em>Rohan Singla</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a769df940e25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ School of Solana Season 7 — Lecture 1 Recap: From Proof of History to Alpenglow]]></title>
            <link>https://medium.com/@rohansinglawork/school-of-solana-season-7-lecture-1-recap-from-proof-of-history-to-alpenglow-1773820ddcbb?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/1773820ddcbb</guid>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ackee]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 20:06:27 GMT</pubDate>
            <atom:updated>2025-08-06T11:45:30.418Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proof of History to Alpenglow</h3><p><em>By Rohan Singla, July 2025</em></p><p>Solana has emerged as one of the most high-performance, low-latency blockchains in the world and in <strong>School of Solana Season 7</strong>, the opening lecture sets the stage for understanding why.</p><h3>Topics Covered:</h3><ul><li>Solana architecture &amp; design principles</li><li>RPC nodes and validator roles</li><li>Proof of History (PoH)</li><li>Parallel transaction execution</li><li>Gulf Stream, Sealevel, Turbine</li><li>Alpenglow: a next-gen finality protocol</li></ul><h3>🏛️ Solana’s Layered Architecture</h3><p>Solana operates as a <strong>globally synchronized decentralized state machine</strong>. Here’s how the architecture flows:</p><ul><li><strong>Users &amp; Apps</strong> interact with <strong>RPC nodes</strong> (data providers).</li><li><strong>RPC nodes</strong> route signed transactions to <strong>validators</strong>.</li><li><strong>Validators</strong> verify, execute, and commit transactions to the ledger.</li></ul><p>This design enables separation of responsibilities: frontends, indexing services, validators, and consensus logic all function in their own lanes <strong>maximizing efficiency and scalability</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rzYXSkHlWgmw2MSbyy6NuA.png" /></figure><h3>🧠 Key Solana Innovations</h3><p>Solana’s high performance is no accident it’s powered by several novel systems:</p><h3>⏳ 1. Proof of History (PoH)</h3><p>Not a consensus algorithm, but a <strong>cryptographic timestamp</strong>.</p><ul><li>Solana creates a <strong>sequential hash chain</strong>, acting as a decentralized clock.</li><li>Validators insert transaction entries into this timeline.</li><li>Everyone can <strong>verify the order</strong> of events by replaying the chain.</li></ul><p>🧠 <strong>Why it matters</strong>: PoH enables validators to agree on “when” something happened without network-wide clock coordination allowing deterministic parallelism and drastically reducing consensus overhead.</p><h3>🌀 2. Gulf Stream</h3><p>Solana <strong>eliminates mempools</strong>.</p><ul><li>Transactions are forwarded <strong>directly to the upcoming leader</strong>.</li><li>The leader has early access to transactions, reducing block production delays.</li></ul><p>📉 <strong>Why it matters</strong>: This reduces congestion and avoids mempool front-running, enabling sub-second finality at scale.</p><h3>🧮 3. Sealevel Runtime</h3><p>A unique parallel execution engine.</p><ul><li>Every transaction must declare which accounts it <strong>reads or writes</strong>.</li><li>Solana can execute non-overlapping transactions <strong>in parallel</strong>.</li></ul><p>⚙️ <strong>Why it matters</strong>: Unlike EVM chains (Ethereum, etc.) which process transactions serially, Sealevel allows Solana to harness multi-core processors and horizontal scaling.</p><h3>🌲 4. Turbine Protocol</h3><p>Solana’s fast, scalable block propagation system.</p><ul><li>Blocks are <strong>split into shreds</strong> (data chunks).</li><li>Shreds are relayed in a <strong>tree structure </strong>each node sends to only a few others.</li></ul><p>🚀 <strong>Why it matters</strong>: This allows the network to <strong>broadcast blocks quickly and reliably</strong>, regardless of scale.</p><h3>🔥 Alpenglow: Solana’s Next Leap</h3><p>Alpenglow is an <strong>upcoming consensus and finalization upgrade</strong>. It rethinks how blocks are finalized and broadcasted.</p><h3>🧩 1. Rotor Protocol for Block Dissemination</h3><ul><li>Instead of one leader sending all shreds, <strong>each shred has a designated relay</strong> (R1, R2, etc.).</li><li>These relays disseminate blocks in a <strong>round-robin fashion</strong>, reducing leader load and network spikes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*20WcP6ICpfRBattmJwtDsA.png" /></figure><h3>🧾 2. Fast Finalization via BLS Aggregation</h3><ul><li>Validators vote <strong>off-chain</strong> using <strong>BLS signatures</strong>.</li><li>A single <strong>certificate</strong> is published on-chain to finalize blocks.</li></ul><p><strong>Three Scenarios:</strong></p><ul><li>✅ ≥ 80% Yes → <strong>Fast Finalization</strong></li><li>⚖️ ≥ 60% Yes → <strong>Finalized</strong></li><li>❌ ≥ 60% No → <strong>Skipped</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*oHlRkSQObkh_lIl81vhgdg.png" /></figure><p>💡 <strong>Why it matters</strong>: This system reduces the time to finality from ~12 seconds to <strong>~150 milliseconds</strong>, drastically lowering fees and increasing speed ideal for real-time applications like DeFi and gaming.</p><h3>⚖️ Staked Quality of Service (QoS)</h3><p>To defend against spam and ensure fairness, Solana introduced <strong>stake-weighted prioritization</strong>.</p><ul><li>Validators with more stake receive <strong>priority transaction forwarding</strong>.</li><li>This helps during congestion, ensuring network stability.</li></ul><h3>🎯 Key Takeaways</h3><p>FeatureWhy It MattersProof of HistoryEnables deterministic transaction orderingSealevel RuntimeUnlocks parallel executionGulf StreamEliminates mempool bottlenecksTurbineBroadcasts blocks efficiently at scaleAlpenglowDelivers fast finality with off-chain BLS votingStake-Weighted QoSFair congestion control</p><h3>📺 Watch the Full Lecture</h3><p>🎥 <a href="https://youtu.be/vrO6cjdPUOs">YouTube: School of Solana Season 7 Lecture 1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1773820ddcbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Things I’ve Learned from Hackathons (That Might Help You Win)]]></title>
            <link>https://medium.com/@rohansinglawork/things-ive-learned-from-hackathons-that-might-help-you-win-45936f8d10f7?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/45936f8d10f7</guid>
            <category><![CDATA[knowledge]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 10:31:47 GMT</pubDate>
            <atom:updated>2025-08-06T11:51:25.926Z</atom:updated>
            <content:encoded><![CDATA[<p>After participating and building more than 7 global hackathons , here are a few honest lessons I’ve picked up stuff I wish someone told me earlier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUH3XXqNqNXGnw2BigQjiA.png" /></figure><h3>1. 💡 The Idea &gt; Everything Else</h3><p>You don’t need to build a feature-packed app. What matters most is the <strong>clarity and strength of the use case</strong>. Spend time refining the idea why it matters, who it’s for, and how it works.<br> Avoid relying too much on AI to generate ideas. Think through the problem yourself. Judges notice originality.</p><h3>2. 🧍 You Can Win Solo</h3><p>Having a team helps, but it’s not a requirement. In many hacks i see the winners are just solo builders<br> If you’re solo, focus on what you can execute best and keep scope realistic.</p><h3>3. 🎯 Execution &gt; Features</h3><p>A clean, well-built MVP beats a bloated project full of half-working features.<br> Just make sure <strong>one core flow works end-to-end</strong> and demo it clearly.</p><h3>Bonus: 📢 Pitch it Right</h3><p>You’re not just building you’re <strong>telling a story</strong>. A short, clear demo + concise write-up goes a long way. Make sure your submission explains the problem, solution, and impact..</p><p>Hackathons are the best way to level up fast. You get to try new stacks, build fast, and connect with other builders. And sometimes, win something too :)</p><p><strong>Building something in web2 or web3 ?</strong><br> I’m always down to jam, collab, or join your next hack. Reach out anytime!</p><p><a href="https://rohanbuilds.vercel.app/">https://rohanbuilds.vercel.app/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45936f8d10f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ What Are Safe Treasuries & How Do Gnosis Safes Work?]]></title>
            <link>https://medium.com/@rohansinglawork/what-are-safe-treasuries-how-do-gnosis-safes-work-27fb371083a0?source=rss-2b7b0ebbc138------2</link>
            <guid isPermaLink="false">https://medium.com/p/27fb371083a0</guid>
            <category><![CDATA[dao]]></category>
            <category><![CDATA[safe]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Rohan Singla]]></dc:creator>
            <pubDate>Wed, 16 Jul 2025 17:36:12 GMT</pubDate>
            <atom:updated>2025-08-06T11:42:22.064Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re working on a Web3 project or DAO, securing your funds should be a top priority. That’s where <strong>Safe</strong> (formerly Gnosis Safe) comes in one of the most trusted ways to manage crypto treasuries on-chain.</p><h3>🔑 What is a Safe Treasury?</h3><p>A <strong>Safe</strong> is a smart contract wallet that enables <strong>multi-signature access</strong> to your funds. Instead of relying on a single wallet owner, you can require multiple people to approve transactions for example, 3 out of 5 team members must sign off before any funds move.</p><p>This setup removes single points of failure and protects against internal mistakes or bad actors.</p><h3>⚙️ How Does It Work?</h3><ul><li>Deploy a Safe and assign owners (team members, DAO signers, etc.)</li><li>Set a threshold say, 2 of 3 or 4 of 6 approvals required.</li><li>Only once the required number of signers approve a transaction will it be executed.</li></ul><p>You can manage ETH, ERC-20 tokens, NFTs, and even bridged assets across chains all from the same Safe.</p><h3>💡 Why It Matters</h3><p>Safes are trusted by DAOs, protocols, grant programs, and investor syndicates. They bring structure, transparency, and security to treasury management all without relying on centralized exchanges or shared keys.</p><p>Whether you’re managing a protocol treasury or a small project fund, setting up a Safe is a no-brainer.</p><p>📘 <strong>Want to learn more?</strong><br> Check out the official docs: <a href="https://docs.safe.global/">https://docs.safe.global</a></p><p>🚀 <strong>Building something in Web3?</strong><br> I’m always open to exploring ideas, collabs, or open-source work. Drop a comment or DM on any of my social let’s connect !</p><p><a href="https://rohanbuilds.vercel.app/">https://rohanbuilds.vercel.app/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27fb371083a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>