<?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 Ayush Saksena on Medium]]></title>
        <description><![CDATA[Stories by Ayush Saksena on Medium]]></description>
        <link>https://medium.com/@ayushsaksena?source=rss-c2467c0cdab4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*v6BA4EmnwVePYUJA</url>
            <title>Stories by Ayush Saksena on Medium</title>
            <link>https://medium.com/@ayushsaksena?source=rss-c2467c0cdab4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:33:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayushsaksena/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 I used VRF+Trust Scoring to cut Malicious Validator Selection in Decentralised Machine Learning]]></title>
            <link>https://medium.com/@ayushsaksena/how-i-used-vrf-trust-scoring-to-cut-malicious-validator-selection-in-decentralised-machine-learning-d730c595e4a0?source=rss-c2467c0cdab4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d730c595e4a0</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Ayush Saksena]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 18:51:43 GMT</pubDate>
            <atom:updated>2026-11-02T18:51:43.857Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I used VRF+Trust scoring to reduce Malicious Validator Selection in Decentralised Machine Learning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-y9b9DDQmtyb42Q7rAjDg.png" /><figcaption>Securing decentralised machine learning. (Gemini Image generated by Author.)</figcaption></figure><p>I recently worked on reducing the chances of a malicious node getting a seat in the validation committee in Decentralised Machine Learning. I tried tackling this problem by improving the pipeline of validator selection.</p><p>In DML networks, independent worker nodes train models locally and submit gradient updates. In untrusted networks, there are chances that malicious worker nodes or underperforming honest nodes can corrupt your gradients, so you need to verify the best gradients for aggregation. This verification is done by a subset of worker nodes, called <em>gradient validators.</em></p><p>Selecting random nodes as validators leaves a blindspot for accidentally taking malicious nodes into the validation committee. Let me give you an example, If 30% of the total nodes are malicious then the probability of one seat in the validation committee being awarded to malicious node is 30%. This is the baseline.</p><p>I simulated a Byzantine Fault Tolerant (BFT) validator selection architecture to help reduce those odds. In my simulation with default parameters, malicious nodes held about 3.8% of validator seats (mean of 10 runs), against 30% under random selection, a reduction of roughly 87%. The engine is made in Rust, also compiled in WASM and published as a NPM package. I also deployed a dashboard to interact with the engine.</p><blockquote>Check out the dashboard: https://vrf-simulator.vercel.app/</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ztxmiaSnM43IqZXzZWsiEg.png" /><figcaption>Dashboard looks like this.</figcaption></figure><p>Here’s how it works-</p><h4>Approach: VRF + Trust Scoring</h4><p>To beat malicious nodes, we focus on two factors here: unpredictable randomness (so that attackers cannot game the system) and accountability (so bad actors get phased out over time).</p><p>I combined VRF(Verifiable Random Function) with Dynamic Trust Scoring. Read below to understand each in detail.</p><h4>VRF(Verifiable Random Function)</h4><p>VRF emits random output along with a proof that anyone can verify. My implementation is VRF-styled, each node gives its private key and current round number and runs it through a HMAC-SHA256 function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*ZjdPByEznkOJb3QyUPny7g.png" /><figcaption>This the function used to compute VRF in the simulator’s engine.</figcaption></figure><p>This generates a pseudo-random output. Since this output relies on node’s private key, it is unpredictable to anyone else but that node.</p><p>Now that we have an unpredictable output, we need a way to select the validator committee on basis of this output. For this, we use threshold based selection. This threshold is calculated using the formula below-</p><blockquote>effective_threshold = (u64::MAX as f64)* (1.0-base_rate*trust_score)</blockquote><p>Here, the base rate is a parameter set by user in the live dashboard.</p><p>A node gains validator status if its pseudo-random output is greater than <em>effective_threshold.</em></p><p>You might have noticed the <em>effective_threshold </em>is influenced by <em>trust_score</em> of the node, thus bringing in accountability.</p><h4>Dynamic Trust Scoring</h4><p>The trust score of each node correlates with its chances of getting a seat in the validator committee. In the start, all the nodes start with same trust score of <em>1.0</em>. Honest nodes increase their trust gradually with each round while the malicious nodes gets their trust score slashed whenever they get caught.</p><p>By default, The Trust score for honest nodes increase by 0.05 per round (but can be tuned in range of 0.01–0.50). A caught malicious node loses trust by 0.2 (but can be tuned in range of 0.05–1.00). These are the defaults and can be tuned in the dashboard.</p><p>A low trust score increases the threshold and hence reducing the probability of the vrf output landing above the threshold. Thus, essentially reducing its chances to get a seat in the validator committee.</p><p>This simulator also dynamically changes the probability of a malicious node getting caught based on the number of honest nodes in the validator committee. Here’s the hardcoded values in the engine-</p><blockquote>0 honest validators: 0% catch rate</blockquote><blockquote>1 honest validator: 30% catch rate</blockquote><blockquote>2–3 honest validators: 60% catch rate</blockquote><blockquote>4+ honest validators: 90% catch rate</blockquote><p>As honest nodes accumulate trust and fill more seats, the committees contain more honest validators, which raises the catch rate. That is the entire loop; however I am not claiming it compounds indefinitely or guarantees anything.</p><h4>The Bug I found and fixed</h4><p>While making the simulator, I ran into two metric bugs that were giving incorrect results.</p><ol><li>Old code tracked “out of all the simulation rounds, in how many rounds did one or more malicious validators get selected”. However the baseline probability calculates “probability of a single seat going to a malicious node”. So, I was comparing apples to oranges. To fix this, I changed the metric to malicious seats divided by total validator seats, pooled across all rounds.</li><li>After switching the above metric, my old code was still inside a conditional if block that ran only when there was atleast one malicious validator in the committee. This meant, rounds with no malicious validators were skipped entirely. Interestingly, this bug was found while I was reviewing my code while writing this blog. The fix was simple, I removed the conditional statement.</li></ol><h4>Results</h4><p>Each run uses 8 parameters: total nodes, malicious nodes, simulation rounds, base rate, slash penalty, bonus reward, trust floor and trust ceil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-QQEX9i-STAq5XNjyt0iTA.png" /><figcaption>The Network Parameters required to run the simulation. (Gemini Image generated by Author.)</figcaption></figure><p>Note: This is just a simulation and not the actual setup.</p><p>Baseline is calculated as malicious nodes divided by total nodes, not simulated.</p><p>Here are the results for each type of configuration the dashboard supports-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2mXW39uwWPaRosEdXUxSg.png" /><figcaption>Result for Canonical/Sybil Swarm/Draconian Configurations.</figcaption></figure><h4>Limitations</h4><ol><li>FPR (False Positive Rate) is assumed to be 0, meaning honest validators are never slashed.</li><li>Catch rate’s hardcoded values are arbitrary constants.</li><li>Malicious nodes start to poison the gradient from the first round itself. They don’t wait to build trust first and then poison.</li><li>Results come from unseeded runs.</li></ol><h4>Try it</h4><blockquote>Live Dashboard: https://vrf-simulator.vercel.app/</blockquote><blockquote>Rust engine (repo): https://github.com/ayushsaksena30/vrf-bft-simulator-rust</blockquote><blockquote>Dashboard repo: https://github.com/ayushsaksena30/vrf-consensus-dashboard</blockquote><blockquote>NPM package: https://www.npmjs.com/package/vrf-bft-simulator</blockquote><p>If you have something to share, Drop a message on my LinkedIn.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d730c595e4a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond PBFT: Architecting Byzantine Fault-Tolerant Consensus for Decentralized Machine Learning]]></title>
            <link>https://medium.com/@ayushsaksena/beyond-pbft-architecting-byzantine-fault-tolerant-consensus-for-decentralized-machine-learning-bbc61a594af8?source=rss-c2467c0cdab4------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbc61a594af8</guid>
            <category><![CDATA[system]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[fault-tolerance]]></category>
            <dc:creator><![CDATA[Ayush Saksena]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 10:42:33 GMT</pubDate>
            <atom:updated>2026-09-24T10:42:33.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRojZSjfTYxT_8Bbi7h_qQ.png" /><figcaption><em>Figure 1: Securing decentralized machine learning. Image generated by Author.</em></figcaption></figure><h3>Introduction</h3><p>With the rapid growth of Machine Learning, we now stand at the intersection for the need of massive, high-quality datasets versus the growing demand for data privacy.</p><p>Decentralized Machine Learning is the emerging solution to the problem, it allows nodes to collaboratively train a model without ever exposing data. The nodes compute local gradients and share only the updates thus maintaining data privacy.</p><p>However, due to the decentralized nature of the architecture, there is another crucial problem to look for, that is the Byzantine node. In an untrusted DML network, participants can be of malicious intent. A malicious node can inject poisoned gradients, that can be of multiple types(discussed later), with the sole purpose of skewing model gradients, introduce bias or destroy the model’s convergence.</p><p>Hence, the entire DML architecture has to be Byzantine Fault Tolerant(BFT). But traditional BFT consensus algorithms fail under the constraints of DML. This article explores why and also proposes a new architecture utilizing Decentralized PKI(dPKI), Verifiable-Random Functions (VRFs) and Krum/Commit-reveal.</p><h3>Why Traditional BFT fails in DML?</h3><p>To achieve consensus in distributed databases, we had been using Practical Byzantine Fault Tolerance and Raft for very long. They assume a relatively static set of replicas agreeing on a sequential log of transactions.</p><p>If we use these algorithms directly to a DML training loop, it introduces some issues-</p><ol><li>PBFT requires O(n²) message exchanges between nodes to reach consensus. This is not feasible in an ML training loop, where thousands of gradient updates are exchanged per epoch across huge number of edge devices. This overhead massively pushes the overall computation time.</li><li>Traditional BFT relies on primary leader node to sequence operations. However, in DML setup, the leader can be easily identified, thus exposing him to possible DOS attack.</li><li>BFT ensures all honest nodes execute the exact same commands in the exact same order. But DML doesn’t require every node to process every single gradient; it requires the network to agree on a <em>robust aggregate</em> of the gradients. Forcing an all-to-all sequential log is overkill.</li></ol><h3>Proposed Custom BFT Framework for DML</h3><p>To overcome the above mentioned limitations, here’s a BFT framework tailored for high-throughput and untrusted nature of Decentralized ML. Our pipeline uses dPKI, VRFs and Krum based validation. The contributions are as follows:</p><h4>Decentralized Public Key Infrastructure (dPKI)</h4><p>Traditional PKI infrastructure relies on centralized certificate authorities to validate node identities. This represents Single Point of Failure and trust. Our architecture utilizes a dPKI layer that is supported by a distributed ledger where cryptographic keys are self-sovereign. Nodes register their public keys on-chain. This binds a node’s wallet identity to its session, enabling authenticated ECDHE key exchanges that prevent Man-in-the-Middle (MitM) attacks. Furthermore, if a node is flagged as malicious, the smart contract triggers a cryptographic eviction , invalidating its on-chain token and forcing honest nodes to rekey, cryptographically excluding the banned node from future traffic.</p><h4>VRF-Based Validator Consensus</h4><p>To prevent leader-targeted attacks, and the O(n²) message overhead, we replace PBFT’s static leader election with a Verifiable Random Functions (VRFs).</p><blockquote>A verifiable random function is a cryptographic function that takes a series of inputs, computes them, and produces a pseudorandom output, along with a proof of authenticity that can be verified by anyone.</blockquote><blockquote>via <a href="https://chain.link/education-hub/verifiable-random-function-vrf">Chainlink</a></blockquote><ol><li>If a node’s VRF output falls below a dynamic threshold relative to their trust score, they are selected as validator for that round.</li><li>The node publishes their gradient along with VRF proof.</li><li>Anyone can verify the proof using the node’s public key (from the dPKI) to confirm they are legitimately part of the validation committee.</li></ol><p>Since the validator selection is totally random, malicious factors cannot predict the validators in advance. This neutralized the DoS attacks. This also reduces the message complexity from O(n²) to O(n.k), where k is the size of randomly selected committee.</p><h4>Krum and Commit-Reveal for Gradient Validation</h4><p>Instead of trying to force all nodes to agree on a sequential log of transactions, the nodes only need to agree on which gradients are safe to aggregate.</p><ol><li>Krum is a gradient validation method that calculates the Euclidean distance between submitted gradients. It calculates the sum of distances for a node with all its neighbors. The gradient with least score is considered most trustworthy and hence safe to aggregate. Krum operates on the belief that uncoordinated Byzantine gradients will deviate from the honest cluster, thus rejecting them mathematically.</li><li>To prevent Byzantine validators from copying honest nodes’ gradients (which would mess Krum) we implement a two step protocol. Validators have to first broadcast a cryptographic hash of their gradient. Only after all the commits are revealed, do they reveal their gradient values. This enforces that no node can alter their gradient based on other’s submissions.</li></ol><h3>System Lifecycle with One Training Epoch</h3><ol><li>Nodes register their public keys via dPKI layer.</li><li>Nodes locally compute the VRF to determine the validator committee.</li><li>Selected nodes compute local gradients on their private data shard and broadcast a cryptographic hash of their gradient.</li><li>Only after all the commits are revealed do the nodes reveal their actual gradients.</li><li>The committee runs the Krum-score filter on the revealed gradients to reject poisoned or Byzantine updates.</li><li>The validated gradients are aggregated using a temperature-controlled softmax weighting, favoring models with higher validation accuracy.</li></ol><h3>Trade-offs and Future Work</h3><p>Our trust-weighted VRF approach drastically reduces communication overhead and prevents leader-targeting but it introduces cryptographic compute latency. Running VRFs and multi-round Commit-Reveal schemes on low-power edge devices can be expensive.</p><p>Also, Krum can only protect us against strong uncoordinated Byzantine attacks but a well coordinated one still pose a threat to this system. A coordinated attack where malicious nodes collude on a shared poisoned gradient that passes Krum’s distance filter remains an open problem.</p><h3>Conclusion</h3><p>As Decentralized Machine Learning expands, the traditional distributed systems must evolve. By moving beyond traditional PBFT and leveraging decentralized identity (dPKI), trust-weighted cryptographic sortition (VRFs), and statistical outlier detection (Krum), we can architect DML frameworks that are not only scalable but resilient to Byzantine adversaries.</p><p><em>I am working on a research paper with </em><a href="https://akashkesavshanmugaraj.vercel.app/"><em>Akash Kesav</em></a><em> where we dive deeper in this solution and test this theory on actual hardware.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbc61a594af8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing Reliability Trade-offs in Event-Driven Decentralized Systems]]></title>
            <link>https://medium.com/@ayushsaksena/analyzing-reliability-trade-offs-in-event-driven-decentralized-systems-3a398d603202?source=rss-c2467c0cdab4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a398d603202</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[reliability-engineering]]></category>
            <category><![CDATA[nostr]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <dc:creator><![CDATA[Ayush Saksena]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 18:52:50 GMT</pubDate>
            <atom:updated>2025-12-29T18:52:50.429Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10E4g1QjFHdiYiQHwIN0vA.png" /></figure><h3>Introduction-</h3><p>Event-driven decentralized systems are used in payment and messaging protocols, where components interact asynchronously across independently operated networks.</p><p>This blog presents an analysis of reliability trade-offs observed while integrating <a href="https://github.com/nostr-protocol/nips/blob/master/47.md">Nostr Wallet Connect</a> (NIP 47) into an event-driven decentralized payment system.</p><h3><strong>System Architecture-</strong></h3><p>The system consists of a wallet and an external service, both acting as Nostr clients, communicating through a decentralized pool of Nostr relays. User involvement is limited to an initial setup phase. The relays are external infrastructure and are operated by independent third parties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*6CW2GVTYgAqA6O5rxA1Q0A.png" /><figcaption>System Architecture Components Schematic</figcaption></figure><blockquote><strong>Wallet-</strong></blockquote><p>The wallet is implemented within the Breez SDK as a separate crate outside the SDK core. It is responsible for publishing, encrypting, decrypting and validating Nostr Wallet Connect (NIP-47) events or simply Nostr Events. Each request is signed using the wallet’s private key with Schnorr signatures on the secp256k1 curve. The wallet subscribes to events addressed to its public key.</p><blockquote><strong>Relays-</strong></blockquote><p>Relays act as message propagation nodes between Nostr clients. They store and forward events without providing delivery or ordering guarantees.</p><p><em>The system does not assume reliable event delivery from relays.</em></p><blockquote><strong>External Service-</strong></blockquote><p>The service refers to any external application acting as a Nostr client. It obtains permissioned access to wallet functionality via Nostr Wallet Connect. It requests operations such as invoice generation, balance queries and transaction history through Nostr events. The service signs these events using its own cryptographic key pair.</p><h3>Scope and Assumptions-</h3><blockquote><strong>Operational Scope-</strong></blockquote><p>The analysis focuses on the event-processing and communication layer. The scope includes Nostr event handling, validation and response publishing. User interface behavior and internal SDK business logic are treated as black-box operations.</p><blockquote><strong>Explicit Assumptions-</strong></blockquote><p>The system does not assume reliable event delivery from relays. There is no guarantee for event ordering or timing. Individual request events are processed sequentially as they arrive. Each event is validated cryptographically using public-private key pairs. The system assumes correct key management.</p><blockquote><strong>Out-of-Scope concerns-</strong></blockquote><p>Retry mechanisms for failed event processing is not implemented. Network level fault tolerance is outside scope of this layer. Relay selection, trust or reputation mechanisms are not addressed. Duplicate detection and idempotency are not imposed. Persistent queuing of failed events for later retry is not implemented.</p><h3>Reliability Trade-offs Observed-</h3><blockquote><strong>Event Processing-</strong></blockquote><p>Events are processed once, without retries on failure. Events that fail to process are logged and dropped. No retry mechanism exists. The implementation prioritizes minimal event-processing surface and avoids introducing retry based side effects. Besides, retrying at this layer would introduce duplicate execution risks.</p><p><strong>Reliability trade-offs:</strong> Improved modularity and maintainability but accepts event loss under certain failures.</p><blockquote><strong>In-Memory State with Deferred Persistence-</strong></blockquote><p>Active connections are loaded from persistent storage into memory. Budget status is updated in memory before persisting. Persistence assumes optimistic concurrency with limited retries.</p><p>In-memory access enables faster event processing. This avoids blocking the event loop on synchronous disk writes. This keeps the event-handling path lightweight.</p><p><strong>Reliability trade-offs: </strong>Process crashes can cause temporary state inconsistencies. Budget value may be lost between in-memory updates and persistence. However, system favors performance over strict durability guarantees.</p><blockquote><strong>Event Handling Without Ordering Guarantees-</strong></blockquote><p>Events are processed sequentially as they arrive. Timestamp ordering of events or de-duplication is not implemented. Arrival order depends on relay behaviour and network. Ordering guarantees are difficult to enforce in decentralized networks. This keeps the system compatible with heterogeneous relay behaviour.</p><p><strong>Reliability trade-offs: </strong>Duplicate or out-of-order events are possible. It simplifies the event pipeline.</p><blockquote><strong>Fail Fast Behavior on Critical Errors-</strong></blockquote><p>Certain failures, such as resubscription failures or inability to load active connections from persistence, cause the event loop to exit. Partial reconnection is not attempted. This prevents operating with stale or partially initialized state. It also makes failures explicit and observable.</p><p><strong>Reliability trade-offs: </strong>Reduced availability under certain failures. Improved correctness and debugging.</p><blockquote><strong>Best-Effort Response Broadcasting-</strong></blockquote><p>Response events are sent on a best-effort basis. Buffer overflows or send failures are silently dropped due to fixed broadcast channel buffer of 100 events. No retry or event sent confirmation logic exists. It prevents backpressure from blocking event loop. Keeps response publishing decoupled from event processing. Aligns with Nostr’s delivery model.</p><p><strong>Reliability trade-offs: </strong>Response events may be dropped under high load. System prioritizes liveness over guaranteed delivery.</p><h3>Future work-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*VIOLqFYOOrIjAzoWFtbcwg.png" /></figure><blockquote><strong>Retry and Idempotency at Higher Layers-</strong></blockquote><p>Retry mechanisms can be introduced above the event-processing layer. Idempotency keys or request identifiers could prevent duplicate execution. These solutions preserve simplicity of the core while enabling stronger guarantees.</p><blockquote><strong>Persistent Queuing for Critical Events-</strong></blockquote><p>Failed events can be persisted and retried asynchronously. This would ensure durability without blocking event loop.</p><blockquote><strong>Improved State Synchronization-</strong></blockquote><p>Explicit synchronization mechanisms could reduce in-memory and persistent state divergence. Periodic reconciliation or checkpointing can be explored. These approaches will trade performance for stronger consistency.</p><blockquote><strong>Relay Selection and Trust Models-</strong></blockquote><p>Relay reputation or selection strategies could improve delivery reliability. This would introduce additional assumptions and operational complexity.</p><h3>Conclusion-</h3><p>This blog analyzed the reliability trade-offs involved in integrating Nostr Wallet Connect into an event-driven decentralized payment system. Rather than optimizing for strong guarantees at every layer, the system focuses on simplicity, modularity and predictable behavior under partial failures.</p><p>I would like to thank <a href="https://medium.com/u/c46d391def50">Roy Sheinfeld</a>, my mentor, Antonio and entire Breez team for their guidance and support during the Nostr Wallet Connect integration. This blog represents my own understanding and interpretation of the system.</p><h3>References-</h3><p>The analysis presented in this blog is based on real-world integration of Nostr Wallet Connect with Breez SDK.</p><p>The following pull requests provide implementation context for the discussed architecture and trade-offs-</p><ul><li><a href="https://github.com/breez/breez-sdk-liquid/pull/920">Integration of NWC Module in SDK by ayushsaksena30 · Pull Request #920 · breez/breez-sdk-liquid</a></li><li><a href="https://github.com/breez/notify/pull/21">Added NOTIFICATION_NWC_EVENT by ayushsaksena30 · Pull Request #21 · breez/notify</a></li><li><a href="https://github.com/breez/breez-lnurl/pull/27">Add NWC support for offline notifications by hydra-yse · Pull Request #27 · breez/breez-lnurl</a></li></ul><blockquote>This article discusses publicly available implementation details and does not represent an official security review or design document.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a398d603202" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Summer of Bitcoin 2025 Experience with Breez]]></title>
            <link>https://medium.com/@ayushsaksena/my-summer-of-bitcoin-2025-experience-093f9985777f?source=rss-c2467c0cdab4------2</link>
            <guid isPermaLink="false">https://medium.com/p/093f9985777f</guid>
            <category><![CDATA[summer-of-bitcoin]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[breez]]></category>
            <dc:creator><![CDATA[Ayush Saksena]]></dc:creator>
            <pubDate>Wed, 02 Jul 2025 07:13:31 GMT</pubDate>
            <atom:updated>2025-07-02T07:13:31.571Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJfZiLj8ylzGWznlAJRQnQ.gif" /></figure><p>Hello Everyone, I am Ayush Saksena, I will walk you through my incredible experience at <a href="http://summerofbitcoin.org/2025-accepted-projects">Summer of Bitcoin 2025</a> where I worked for <a href="http://breez.technology/">Breez</a>.</p><h3><strong>My Background Includes —</strong></h3><p>I am Sophomore at Indian Institute of Information Technology, Design and Manufacturing Jabalpur, India. I have background in AI/ML and Application Development with some projects at hand and an award at a National level Competition. I had recently developed interest in Blockchain and was planning to make projects. Then I was introduced to <a href="https://www.linkedin.com/company/summer-of-bitcoin/">Summer of Bitcoin</a> in a session by our college seniors. It made me think, what’s better to learn than by cracking a Globally Recognized Program ?</p><p>So, sit comfortably in the passenger seat as I drive you across the next 5 months which were not easy to say the least.</p><h3><strong>Summer of Bitcoin 2025 Timeline —</strong></h3><p>It is a multiple stage process, bear with me, this will take significant time and rigorous testing before you even become eligible to apply to the Organizations.</p><ul><li><strong>Application Period —</strong></li></ul><p>This was a sort of initial shortlisting round where you were required to fill a form with your basic details like Github, LinkedIn and a Paragraph about why you want to join this program?</p><p>This was open for 15 days after which your selection for Learning Bootcamp was notified via Email.</p><p><strong>What I learnt ?</strong></p><p>It helped me pen down my goal and expectations from this program before it even began which is a great approach in daily life too.</p><figure><img alt="Invitation Mail to Summer of Bitcoin 2025 Learning Bootcamp." src="https://cdn-images-1.medium.com/max/1024/1*9t8T5c9Y9WkJ52oRnteUfg.png" /><figcaption>Invitation Mail</figcaption></figure><ul><li><strong>Learning Bootcamp —</strong></li></ul><p>This was a four-week intense Program where I was given an assignment which I had to pass before the end of every week. Only after the success of previous assignment, was the new assignment given.</p><p>This was honestly the most difficult part of the process because of the timing. It clashed with my Semester examinations so I was giving my Examination in afternoon, working on the assignment entire evening and pulling all nighter to study for the examination next day.</p><p><a href="https://www.linkedin.com/in/adi-shankara-608610216/">Adi</a>, Summer of Bitcoin Organizer, noticed this and made the 4th test optional. Huge thanks to him !!</p><p><strong>What I learnt ?</strong></p><p>I learnt Grit. I was able to push myself to the extreme and it made me realize my potential and how much I can achieve just by using my time wisely. I also learnt lot about how Bitcoin works and Blockchain in general.</p><figure><img alt="Advancement mail to write Proposal." src="https://cdn-images-1.medium.com/max/1024/1*iJMWZt-2D5PIPg_3eAePVA.png" /><figcaption>Advancement to Proposal Round</figcaption></figure><p><strong>Proposal Round —</strong></p><p>After completing all the tests in the bootcamp, I became eligible to apply to the Organizations. We were asked to lock 3 organizations to which we will give our proposal.</p><p>I read all the projects and chose <a href="https://www.summerofbitcoin.org/orgs-details/breez/r/rec1fkYxPN8pxteHq"><strong>Breez</strong></a>, <a href="https://www.summerofbitcoin.org/orgs-details/galoy/r/recMhe9qMXcLdEQeg"><strong>Galoy</strong></a> and <a href="https://www.summerofbitcoin.org/orgs-details/lnd/r/rec9K42Y6shmbvXfZ"><strong>LND</strong></a> in order of the projects I liked. Simultaneously, at this time, we were having quizzes, viva and lab exams. So I was not able to make PR on any of these, which is recommended to get to know the orgs better.</p><p>I looked at all 3 orgs and their codebase and finalized <a href="http://summerofbitcoin.org/orgs-details/breez/r/rec1fkYxPN8pxteHq"><strong>Breez</strong></a>. Due to time constraints, I decided to go all in in one org only. I wrote detailed proposal after researching about <a href="http://summerofbitcoin.org/orgs-details/breez/r/rec1fkYxPN8pxteHq"><strong>Breez</strong></a>.</p><p>You can see my Proposal here — <a href="https://docs.google.com/document/d/1z3ZCnE2K9pW1I3mOf45EUCYoM6osa6gCN0cAvcCIYe0/edit?usp=sharing">https://docs.google.com/document/d/1z3ZCnE2K9pW1I3mOf45EUCYoM6osa6gCN0cAvcCIYe0/edit?usp=sharing</a></p><p><strong>What I learnt ?</strong></p><p>I learnt to present my solution in detailed way with the help of flowcharts and demo code. It was first time writing a proposal. I got to know lot about <a href="http://summerofbitcoin.org/orgs-details/breez/r/rec1fkYxPN8pxteHq"><strong>Breez</strong></a>.</p><ul><li><strong>Proposal Review Period —</strong></li></ul><p>I kept my fingers crossed during this period which lasted a week. I almost forgot about it as my End Semester Exams came up during this period so I had to focus entirely on them to pass the Semester.</p><ul><li><strong>Result —</strong></li></ul><p>My Examinations ended on 5th May, 2025. That evening I went to watch movie with my friends and then suddenly the mail came, ‘<em>Summer of Bitcoin: Congratulations!’</em> and I wasn’t able to process it for few moments. Then it hit me, I made it. Finally this rigorous testing paid off.</p><p>I am grateful to my parents, <a href="https://medium.com/u/cfc201e168f3">BitByte-TPC IIIT Jabalpur</a> and my friends for being constant source of encouragement.</p><p>I thought it was the best but little did I know it was yet to come.</p><figure><img alt="Proposal Acceptance Mail" src="https://cdn-images-1.medium.com/max/1024/1*EOtWLB2W3cwxjlrM116rUA.png" /><figcaption>Proposal Acceptance Mail</figcaption></figure><h3><strong>About Breez (My Organization) —</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*Y-Dn-K1iHItqxpEb.png" /></figure><p>The Breez SDK provides developers with an end-to-end solution for integrating self-custodial Lightning payments into their apps and services, eliminating the need for third parties and simplifying the complexities of Bitcoin and Lightning.</p><ul><li>My Project —</li></ul><p>Add Nostr Wallet Connect (NWC) Protocol as Modular, Optional component in Breez SDK. This will enable seamless interface for sending and receiving payments. Along with documentation and demo website implementation. In easier words, current system is scan to pay, I am tasked to provide users with connection string that they can enter anywhere and payment will be done, thus saving the hassle of the user to enter details manually.</p><p>My work so far -</p><ul><li><a href="https://github.com/breez/breez-sdk-liquid/pull/920">Integration of NWC Module in SDK by ayushsaksena30 · Pull Request #920 · breez/breez-sdk-liquid</a></li><li><a href="https://github.com/breez/breez-sdk-liquid-docs/pull/112">Added Nostr Wallet Connect Implementation Documentation by ayushsaksena30 · Pull Request #112 · breez/breez-sdk-liquid-docs</a></li><li><a href="https://github.com/ayushsaksena30/nwc_implementation_breez">GitHub - ayushsaksena30/nwc_implementation_breez</a></li></ul><ul><li>Culture —</li></ul><p>I got the opportunity to talk to <strong>Roy Sheinfeld</strong>, <strong>Breez Co-Founder and CEO</strong>. He was very encouraging and introduced me to the super cool project mentor, <a href="https://nosta.me/npub162s058cnjmawtzynnej2r9v5mn4gez90rsrl2zw8pc0qcsrh83eq3emsh2"><strong>Antonio</strong></a>. Throughout the project, <a href="http://linkedin.com/in/hydra-yse">Antonio</a> has helped me grow in numerous ways, he helped me understand complicated concepts while making sure I learn from this experience. Guiding me and be available round the clock to handle all my doubts, even the most basic ones while Providing me the correct resources to study from are just some of the many things he helped me with. He made me feel comfortable with doing mistakes and learning from that experience. He never pressured me about any of the deadlines and still our work stayed ahead of decided timeline.</p><p>I am very grateful to be under his guidance. He represents the Org’s overall <strong>Positive Environment of Growth along with Learning</strong>. Working for <a href="http://breez.technology/">Breez</a> is the best part in my whole experience. I am very grateful to Summer of Bitcoin for providing me this opportunity and everyone who helped me make the chain of right decisions to land here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TtizUlLkanFpDbJcH-LoSw.jpeg" /></figure><p><strong>Important Links —</strong></p><ol><li><a href="https://guide.summerofbitcoin.org/the-proposal-round/writing-a-winning-project-proposal">https://guide.summerofbitcoin.org/the-proposal-round/writing-a-winning-project-proposal</a></li><li><a href="http://summerofbitcoin.org/">http://summerofbitcoin.org/</a></li><li><a href="https://github.com/kallerosenbaum/grokkingbitcoin">https://github.com/kallerosenbaum/grokkingbitcoin</a></li><li><a href="http://breez.technology/">http://breez.technology</a></li><li><a href="https://sdk-doc-liquid.breez.technology/">https://sdk-doc-liquid.breez.technology/</a></li></ol><p>That’s all I have for now. See you in the next one !</p><p>Ayush Saksena</p><p><a href="http://linkedin.com/in/ayush-saksena/">LinkedIn</a>, <a href="http://github.com/ayushsaksena30">Github</a>, <a href="http://asaksena100@gmail.com/">Mail</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=093f9985777f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>