<?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 Advaita Saha on Medium]]></title>
        <description><![CDATA[Stories by Advaita Saha on Medium]]></description>
        <link>https://medium.com/@advaitasaha?source=rss-165b58b2bf3c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wPbFaRu81mCqjX2owcbp7g.png</url>
            <title>Stories by Advaita Saha on Medium</title>
            <link>https://medium.com/@advaitasaha?source=rss-165b58b2bf3c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:09:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@advaitasaha/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[Ethereum Protocol Fellowship : Final Presentation Cohort 4 -  Verkle Tries in Nim]]></title>
            <link>https://advaitasaha.medium.com/ethereum-protocol-fellowship-final-presentation-cohort-4-verkle-tries-in-nim-e7e97f036b71?source=rss-165b58b2bf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7e97f036b71</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[verkle]]></category>
            <dc:creator><![CDATA[Advaita Saha]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 14:15:21 GMT</pubDate>
            <atom:updated>2024-06-19T14:15:21.163Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ethereum Protocol Fellowship : Final Presentation Cohort 4 - Verkle Tries in Nim</h3><p>The <strong>EPF Cohort 4</strong> has come to an end, and it’s time to reflect on the journey and the lessons learned. This post will provide a brief <strong>overview</strong> of the work done during the <strong>cohort</strong> and the <strong>lessons</strong> learned along the way. This update will also include an idea of how much we expected to complete during the <strong>cohort</strong> and how much we actually <strong>accomplished</strong>.</p><p>So first let’s have a <strong>brief</strong> view of what the <strong>project</strong> was, and what we exactly <strong>wanted</strong> to acheive during the <strong>cohort</strong>. Find all the <strong>resources</strong> related to the project below : -</p><ul><li><a href="https://github.com/eth-protocol-fellows/cohort-four/blob/master/projects/verkle-tree-nim.md">Project Proposal</a></li><li><a href="https://www.youtube.com/watch?v=e6X48fhxb_M">Project Presentation Video</a></li><li><a href="https://docs.google.com/presentation/d/18mhDMpnoffM6MnJsj47egiZjBippqL4WizflmSdIKzI/edit?usp=sharing">Project Presentation Slides</a></li><li><strong>Reference Implementations </strong><br> - <a href="https://github.com/ethereum/go-verkle"><em>Go Verkle</em></a><br> - <a href="https://github.com/crate-crypto/verkle-trie-ref"><em>Verkle Trie Reference ( Python)</em></a></li><li><strong>Project Repository </strong><br>- <a href="https://github.com/mratsim/constantine"><em>Constantine</em></a><br>- <a href="https://github.com/status-im/nim-eth-verkle"><em>Nim-Eth-Verkle</em></a></li></ul><p>If you go through above the above <strong>links</strong> then you can find that the project was divided into 3 parts initailly :</p><ul><li><em>Curve Primitives — Banderwagon</em></li><li><em>Pedersen Commitments &amp; IPA</em></li><li><em>Verkle Trie Structure</em></li></ul><p>Now as we explore more and had a deeper understanding of what we need to do, we realised that <strong>spiliting</strong> or adding anohter phase would be the best idea for the project to be completed in the given time frame. So we added another phase to the project :</p><ul><li><em>Curve Primitives — Banderwagon</em></li><li><em>Pedersen Commitments &amp; IPA</em></li><li><em>Multiproof system</em></li><li><em>Verkle Trie Structure</em></li></ul><h3>Presentation at Devconnect Istanbul</h3><p><a href="https://streameth.org/devconnect/watch?session=65b8f8d1a5b2d09b88ec12f2">Verkle in Nim</a></p><h3>Curve Primitives — Banderwagon</h3><p>When we look into curve primitives in details we can see that a lot of primitives were missing. We were using the <strong>constantine</strong> library as out math base, but it turned out a lot of primitves were missing that we expected. The following things were implemented and added to the <strong>constantine</strong> library :</p><ul><li>Implementing the <strong>Twisted Edwards</strong>, projective &amp; affine <strong>coordinates</strong> representation for the curves</li><li>Implementing the <strong>interoperatibility</strong> between projective and affine coordinates, and adding <em>hex</em> support to it</li><li>Adding the <strong>Bandersnatch</strong> curve</li><li>Making the <strong>Banderwagon</strong> scheme as a curve over the <strong>Bandersnatch</strong> curve</li><li>Adding a <strong>pre-compute</strong> of <em>primeMinusOneOverTwo</em> for the <strong>Banderwagon</strong> curve</li><li>Making the <strong>serialization</strong> &amp; <strong>deserialization</strong> of the <strong>Banderwagon</strong> curve points</li><li>The transformation of <strong>Banderwagon</strong> curve points to <strong>Scalar Field</strong> Fr𝐹𝑟 curve points</li><li>Adding <strong>montgomery batchInversion</strong> for all elements</li><li>Making all the <strong>serialization</strong> operation for <strong>batch</strong> operations</li></ul><h3>PRs Status</h3><ul><li><a href="https://github.com/mratsim/constantine/pull/261">https://github.com/mratsim/constantine/pull/261 ( Merged )</a></li><li><a href="https://github.com/mratsim/constantine/pull/271">https://github.com/mratsim/constantine/pull/271 ( Merged )</a></li><li><a href="https://github.com/mratsim/constantine/pull/278">https://github.com/mratsim/constantine/pull/278 ( Merged )</a></li><li><a href="https://github.com/mratsim/constantine/pull/283">https://github.com/mratsim/constantine/pull/283 ( Merged )</a></li></ul><h3>Pedersen Commitments &amp; IPA</h3><p>For this <strong>@agnish</strong> was working on it. This part comprises of writing the <strong>Pedersen commitments</strong> and then using the <strong>Inner Product Arguments(IPA)</strong> writing the <strong>Multiproof</strong> system for <strong>aggregating</strong> the proofs up the <strong>trie</strong>. The following things were implemented and added to the <strong>constantine</strong> library :</p><ul><li>Transcript generation using <strong>Fiat Shamir heurestic</strong></li><li><strong>Barycentric</strong> form using <strong>precompute</strong> optimisation over domain</li><li>Common util funs for ipa</li><li>IPA functions for <strong>prover</strong></li><li>IPA functions for <strong>verifier</strong></li><li>Functions for <strong>creating</strong> multiproofs</li><li>Functions for <strong>checking</strong> multiproofs</li><li>Random element <strong>generator</strong> for Pedersen</li><li>Functions for <strong>Pedersen</strong> Commitments</li></ul><h3>PRs Status</h3><ul><li><a href="https://github.com/mratsim/constantine/pull/276">https://github.com/mratsim/constantine/pull/276 ( WIP )</a></li></ul><h3>Verkle Trie Structure</h3><p>This was getting handled by <strong>@danille</strong> from the Nimbus team along with <strong>@naman</strong>. This included implementing the trie structure with mock functions of the cryptographic primitives that were to be implemented in the previous phases. The following things were implemented and added to the <strong>constantine</strong> library.</p><h3>Self Thoughts</h3><p>We could have done the project timeline estimation a bit better, and tried less to parralize the work. I personally think that there have been more effort to parallalize the work, which is not needed and created a lot of unwanted codebase which now needs to be cleaned and refactored by us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7e97f036b71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EPF Week 0 Update : Pre-Work]]></title>
            <link>https://advaitasaha.medium.com/epf-week-0-update-pre-work-4d012ae133dc?source=rss-165b58b2bf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d012ae133dc</guid>
            <category><![CDATA[epf]]></category>
            <category><![CDATA[protocol-development]]></category>
            <category><![CDATA[ethereum-core]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[fellowship]]></category>
            <dc:creator><![CDATA[Advaita Saha]]></dc:creator>
            <pubDate>Fri, 04 Aug 2023 12:29:53 GMT</pubDate>
            <atom:updated>2023-08-04T12:29:53.321Z</atom:updated>
            <content:encoded><![CDATA[<h3>EPF Week 0 Update : Pre-Work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jiaEk_u_pxhVey8gftNQdQ.jpeg" /></figure><p>Hello everyone, I got accepted for the <strong>Ethereum Protocol Fellowship</strong> for the <em>cohort 4</em>. I will be posting weekly updates about my progress in the fellowship. This is the zero/pre week of the fellowship and I will be posting my weekly updates, regulary over here.<br> I plan to work in the fellowship full-time. The kick-off meeting is scheduled at Jul 13th, 2023, 15:00 UTC</p><h3>Getting to know the EPF program</h3><p>I explored the cohort-4 <a href="https://github.com/eth-protocol-fellows/cohort-four">repo</a>, and got to know about the program details and how everything will be going forward. I also got to know about the mentors and the other fellows who will be working along with me in the program. Looking forward to the kickc-off meeting for further details.</p><p>I also started to explore the listed project ideas I can work one. And after exploring a bit I spent my time looking more into the following ideas:</p><ul><li>API for calculating ETH supply by Tim Beiko</li><li>ERC-4337 Tooling support</li><li>Verkle tree other stuff from the Nimbus team by Zahary</li><li>JSON-RPC improvements by Lightclient team</li></ul><p>Well still I haven’t finalized what I will work on, but I am spending my time on researching on these specific topics and learning more about them and core protocol implementations.</p><h3>Leanring &amp; Research</h3><p>I spent my time learning about the go-ethereum implementation. The life of transaction inside the go-ethereum implementation. I was constantly going the ethereum yellowpaper along side with it.</p><ol><li><a href="https://www.youtube.com/watch?v=e84V1MxRlYs">Yellow Paper Walk-through</a></li><li><a href="https://ethereum.github.io/yellowpaper/paper.pdf">Ethereum Yellow Paper</a> ( the cheat-sheet really helped )</li><li><a href="https://github.com/benjaminion/YellowPaper_CheatSheet/blob/master/YPCheatSheet.pdf">Ethereum Yellow Paper Cheat Sheet</a></li><li><a href="https://www.youtube.com/watch?v=c4N79UXZqSc">The life of a transaction in go-ethereum</a></li><li><a href="https://goethereumbook.org/en/">Go Ethereum Book</a></li></ol><p>Further I am very much interested in Verkle trees and zero-knowledge proofs. I did find some verkle tree projects, which I will be exploring further. And see if I can find something i the zero-knowledge proof space.</p><p>I also found the <strong>bloom filter</strong> quite interesting. Bloom filters in Ethereum are probabilistic data structures used for efficient membership checks in large datasets. They provide a compact representation of a set of elements, allowing for fast and space-efficient checks of whether an element is a member of the set. Bloom filters in Ethereum are commonly used to optimize certain operations, such as verifying account or contract existence, without needing to access the complete dataset.<br> I will be exploring this more, as I could not find much resources on this, so still working on it.</p><p>Also I am learning <strong>Nim</strong> programming language, as I might be working on the Nimbus implementation. I am learning it from the <a href="https://www.advaita.work/assets/books/nim-in-action.pdf">Nim in Action</a> book. I am also exploring the <a href="https://nim-lang.org/documentation.html">Nim documentation</a> and the <a href="https://nim-by-example.github.io/">Nim by Example</a> book.<br> And for the rust refresher I am referenceing the book <a href="https://www.advaita.work/assets/books/Rust-Servers-Services-and-Apps.pdf">Rust Servers, Services, and Apps</a></p><h3>Further Plans for this week</h3><ul><li>Have a deep dive into the different Verkle Tree implementions.</li><li>Learn Nim and explore the Nimbus implementation.</li><li>Explore the go-ethereum implementation further.</li><li>I have used rust before, still will take a kind of refreser project on it for a day.</li><li>Explore chalenges in calculating ETH supply.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d012ae133dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git & Github : Basic to Advanced]]></title>
            <link>https://advaitasaha.medium.com/git-github-basic-to-advanced-3a7f7813e750?source=rss-165b58b2bf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a7f7813e750</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[open-source-contribution]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Advaita Saha]]></dc:creator>
            <pubDate>Mon, 01 Nov 2021 09:53:40 GMT</pubDate>
            <atom:updated>2021-11-01T11:25:31.516Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Git &amp; Github : Basic to Advanced</strong></h3><p>This will be a guide to learning Git and using Github. From using local git repo, to hosting your code in github.</p><h3>What is Git ?</h3><p>Git is a mature, actively maintained open source project originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel. A staggering number of software projects rely on Git for version control, including commercial projects as well as open source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*Vbbgb1GWEFgbuO4vbaqcxg.jpeg" /></figure><p>It is used for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows.</p><h3>What is GitHub ?</h3><p>GitHub is a for-profit company that offers a cloud-based Git repository hosting service. Essentially, it makes it a lot easier for individuals and teams to use Git for version control and collaboration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z3qawOu9FUj5hoX40bOWXQ.png" /></figure><p>GitHub’s interface is user-friendly enough so even novice coders can take advantage of Git. Without GitHub, using Git generally requires a bit more technical savvy and use of the command line.</p><p>Now you might be wondering what is the difference between Git &amp; Github right. Well that is tackled right below, keep reading.</p><h3>Git v/s GitHub ? What is the difference ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*0fXNgtN1WYOaFMoURevYpQ.jpeg" /></figure><p>So, taken all together: Git vs. GitHub… what’s the difference? Simply put, Git is a version control system that lets you manage and keep track of your source code history. GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-source projects that use Git, then GitHub is designed to help you better manage them.</p><p>After all, in the world of programming, naming conventions aren’t always intuitive. That’s why it’s worth recognizing the connections and the differences in the similarly named <em>Git</em> and <em>GitHub</em>. Both Git and GitHub give programmers valuable version-control functionality so that they can build ongoing coding projects without being afraid of messing everything up. GitHub just takes things a little bit further than Git, offering more functionality and resources, as well as a place online to store and collaborate on projects.</p><p>And that’s essentially it. Simple, right? Well much of theory for now, lets get to the hands-on experience.</p><h3>Installation and Setup</h3><p>First install the Git Software from <a href="https://git-scm.com/downloads">https://git-scm.com/downloads</a>. Download the respective file suitable for you machine Windows/MacOS/Linux. After download just go through the the installation procedure and voila!!! you have successfully installed Git on your system.</p><p>Wait! We also have to make an account on Github to access their service. Head on to <a href="https://github.com/">https://github.com</a> and create an account, it’s really simple and well guide. After the account creation, you are now ready to do a deep dive. Who’s up for an adventure !!!</p><p>Defining ourselves to Git, open up a terminal (if in linux/macOS) or Command Prompt (if in windows) and type the following :</p><pre>git config --global user.email &quot;&lt;your_email&gt;@example.com&quot;<br>git config --global user.name &quot;&lt;your_password&gt;</pre><h3>Creating &amp; Working with a repo from Scratch</h3><ul><li>Create a directory to contain the project. Suppose this and let us name it learn-git</li><li>Go into the new directory. From the terminal(for linux/macOS)/CMD(for windows) use this command cd learn-git</li><li>Let us create a file hello-world.txt inside the learn-git folder for our better understanding.</li><li>And now finally initialise git for tracking out files in the project, for that we make sure we are inside the project directory learn-git and we type the command git init . Voila !!! you have successfully initialised git in your project.</li><li>Now we have to tell git, which files you want to track and bring to the staging area, now you might be confused what is the staging area, we will get back to that in a moment. Now lets add the file hello-world.txt to git. For that type the command git add hello-world.txt . You can also you add multiple files together using git add .</li><li>Now we need to commit to finalise everything. For that a commit message is always used which helps us understand at a later stage what we changed in that specific commit. So let’s run the command git commit -m &quot;initial commit&quot; And yesssss!!! we are done .</li></ul><p>We have created a git repo and commited code to locally, we still havent hosted to code to a remote repository, over GitHub. For that follow the following simple steps.</p><ul><li>Go to <a href="https://github.com/">github</a>.</li><li>Log in to your account.</li><li>Click the <a href="https://github.com/new">new repository</a> button in the top-right. Name the repo learn-git .You’ll have an option there to initialize with some files, just uncheck all of them.</li><li>Click the “Create repository” button.</li></ul><p>Now, follow the second set of instructions, “Push an existing repository…”</p><pre>git remote add origin https://github.com/&lt;your_username&gt;/learn-git<br>git push -u origin master</pre><p>And you have successfully pushed your code to GitHub and now is publicly accessible to everyone(But they can’t edit your hosted code).</p><h3>Understanding how git manages stages</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogHlBWY-Bn24FfsQcpeSiw.png" /></figure><p>Now you know what happened when you did git add and git commit . A more clear understanding is also required to dive deeper, no worry, all is there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3VMPVm3XEvOp0BEO_57hA.png" /></figure><p>Here you get a much clearer explanation of whats happened when you ran all those commands.</p><h3>Lets talk about Branching</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eEYmh3IaRX6Fotb0bKldHg.png" /></figure><p>When you create a repository with content on GitHub.com, GitHub creates the repository with a single branch. This first branch in the repository is the <strong>default branch</strong>. The default branch is the branch that GitHub displays when anyone visits your repository.</p><p>When you’re working on a project, you’re going to have a bunch of different features or ideas in progress at any given time — some of which are ready to go, and others which are not. Branching exists to help you manage this workflow.</p><p>When you create a branch in your project, you’re creating an environment where you can try out new ideas. Changes you make on a branch don’t affect the master branch, so you&#39;re free to experiment and commit changes, safe in the knowledge that your branch won&#39;t be merged until it&#39;s ready to be reviewed by someone you&#39;re collaborating with.</p><p>To create a branch run the following commands</p><pre>git switch -c &quot;beta2.0&quot;</pre><p>This command creates a branch beat2.0 and automatically you switch to that branch. To revert back to the master branch type git switch master and you will be back in the master branch, changes in the beta2.0 branch wont affect the code in the master branch. Ain’t that something like magic !!!!</p><p>To see what branches are in your project and which branch you are in type the command git branch .It shows all the available branch in your project and also marks the branch that you are in</p><p>To get a more detailed info you status of you project just type the following command.</p><pre>git status</pre><p>The git status command <strong>displays the state of the working directory and the staging area</strong>. It lets you see which changes have been staged, which haven’t, and which files aren’t being tracked by Git. Status output does not show you any information regarding the committed project history.</p><h3>Conclusion</h3><p>And there you go !!!. You have successfully learnt all the intricasies of git and GitHub, but still left with understanding and doing open source contribution. Will followup with a detailed blog for that soon.</p><p>Till happy gitting !!!!! And follow me over my github profile <a href="https://github.com/advaita-saha">https://github.com/advaita-saha</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a7f7813e750" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>