<?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 Ananyaa Gupta on Medium]]></title>
        <description><![CDATA[Stories by Ananyaa Gupta on Medium]]></description>
        <link>https://medium.com/@ananyaagupta?source=rss-552d0bd11cb7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jGZJPvQ5b5-y3gWZHbQocA.jpeg</url>
            <title>Stories by Ananyaa Gupta on Medium</title>
            <link>https://medium.com/@ananyaagupta?source=rss-552d0bd11cb7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:33:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ananyaagupta/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[Building Unprompted: Because ChatGPT Can’t Speak for You]]></title>
            <link>https://medium.com/@ananyaagupta/building-unprompted-because-chatgpt-cant-speak-for-you-ac5089036c04?source=rss-552d0bd11cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac5089036c04</guid>
            <category><![CDATA[critical-thinking]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[public-speaking]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ananyaa Gupta]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 00:39:06 GMT</pubDate>
            <atom:updated>2026-09-11T00:39:06.893Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxooztG6lSFSx2PaaBiEJQ.png" /></figure><p>AI can write your email. Build your presentation. Structure your argument. Even tell you what to say in an interview.</p><p>But there’s one slightly uncomfortable question:</p><p><strong>If AI keeps thinking <em>with</em> us, do we get worse at thinking without it?</strong></p><p>That question became <a href="https://unprompted-speakeasy.web.app/"><strong>Unprompted</strong> </a>— a product designed to use AI not to replace thinking, but to train it.</p><p>The idea is simple:</p><p><strong>Get a prompt. Think on your own. Speak for one minute. Get coached by AI. Try again.</strong></p><p>Think Duolingo, but instead of learning Spanish, you’re learning how to turn the mess inside your head into something another human can actually understand.</p><h3>The problem wasn’t speaking. It was thinking out loud.</h3><p>We’ve all had that moment.</p><p>You know exactly what you mean. Then someone asks you to explain it and suddenly your perfectly reasonable thought becomes:</p><p><em>“So basically… I mean… the thing is… wait…”</em></p><p>There are plenty of tools that help with public speaking. They count filler words, measure pace and tell you whether you sound confident.</p><p>Useful — but incomplete.</p><p>You can confidently deliver a terrible argument.</p><p>The harder problem sits underneath delivery:</p><p><strong>Can you find your point, structure it, support it and make someone care?</strong></p><p>That became the product thesis behind Unprompted.</p><p>Not another AI speaking assistant.</p><p>A <strong>gym for articulation</strong>.</p><h3>The core product decision: AI doesn’t get to go first</h3><p>This constraint shaped almost everything.</p><p>Most AI products begin with:</p><p><strong>“What can AI do for the user?”</strong></p><p>For Unprompted, I wanted to reverse that:</p><p><strong>“What should the user still have to do themselves?”</strong></p><p>So Unprompted deliberately doesn’t help during the most important part.</p><p>You might get:</p><blockquote><strong><em>Pitch a subscription service for houseplants.</em></strong></blockquote><p>Or:</p><blockquote><strong><em>Convince someone that Mondays are actually underrated.</em></strong></blockquote><p>Or:</p><blockquote><strong><em>Explain blockchain to your grandmother without saying “decentralised.”</em></strong></blockquote><p>Or:</p><blockquote><strong><em>Your company wants to replace all meetings with emails. Take a side.</em></strong></blockquote><p>Or:</p><blockquote><strong><em>Pitch a pen that works underwater.</em></strong></blockquote><p>Or:</p><blockquote><strong><em>Tell a story about a tiny mistake that caused a surprisingly big problem.</em></strong></blockquote><p>You get a little time to think.</p><p>Then you’re on your own.</p><p>No generated talking points. No AI outline. No suggested opening sentence.</p><p>You prepare, hit record and speak.</p><p>Only <strong>after</strong> you’ve produced the thought does AI enter the loop.</p><p><strong>Prompt → Prepare → Speak → Evaluate → Improve</strong></p><p>That friction is intentional.</p><p>If the product structured the answer before you spoke, it might help you perform better — while quietly defeating the entire purpose of the product.</p><h3>One skill isn’t actually one skill</h3><p>“Communicate better” is far too vague to train.</p><p>So I broke articulation into different mental muscles.</p><p><strong>Pitch It</strong> trains persuasion, problem framing and benefit-led communication.</p><p><em>“Pitch noise-cancelling headphones for dogs.”</em></p><p><strong>Take a Side</strong> trains reasoning, evidence and counterarguments.</p><p><em>“Should companies have a four-day work week?”</em></p><p><strong>Explain It</strong> trains simplification and logical sequencing.</p><p><em>“Explain the internet to a six-year-old.”</em></p><p><strong>Story It</strong> trains narrative structure, relevance and memorable communication.</p><p><em>“Tell a story about a time Plan B turned out better than Plan A.”</em></p><p>The prompts are intentionally a little playful.</p><p>Pitching headphones for dogs is less intimidating than pitching your startup to investors.</p><p>But underneath, you’re practising the same questions:</p><p><strong>Who is this for? What problem am I solving? Why should they care? How do I make my point stick?</strong></p><p>The silliness lowers the stakes.</p><p>The skill transfers.</p><h3>Scoring needed to teach, not just judge</h3><p>An early product question was: what does a score of <strong>73</strong> actually tell someone?</p><p>Not much.</p><p>So instead of treating evaluation as a leaderboard, Unprompted breaks the response down across <strong>clarity, structure, reasoning, persuasion and audience awareness, and originality</strong>.</p><p>But even that wasn’t enough.</p><p>A useful coach shouldn’t just say:</p><p><em>“Your structure was weak.”</em></p><p>It should tell you <strong>where it broke and what to do differently next time.</strong></p><p>That led to two feedback modes.</p><h3>Teach Me</h3><p>The constructive coach.</p><p>It identifies what was missing and suggests a framework for rebuilding the response.</p><p>A pitch might become:</p><p><strong>Problem → Solution → Benefit → Call to action</strong></p><p>An argument:</p><p><strong>Claim → Reason → Evidence → Counterargument → Conclusion</strong></p><p>An explanation:</p><p><strong>Context → Explanation → Example → Summary</strong></p><p>A story:</p><p><strong>Setup → Conflict → Turning point → Resolution</strong></p><p>The point isn’t to give users another script to memorise.</p><p>It’s to expose the invisible structures strong communicators use naturally.</p><h3>Roast Me</h3><p>Sometimes polite feedback is remarkably easy to ignore.</p><p>So there’s also <strong>Roast Me</strong>.</p><p>Say you were asked to pitch a subscription service that sends people a mystery snack every week.</p><p>You spend 45 seconds explaining the different snacks, packaging and delivery.</p><p>Roast Me might tell you:</p><blockquote>You gave me a snack catalogue, not a reason to subscribe. Who desperately needs weekly mystery crisps in their life — and why?</blockquote><p>Or maybe you’re arguing for a four-day work week:</p><blockquote>You said employees would be happier three different ways. Happiness is nice. Where’s the argument that your CEO should care about?</blockquote><p>Or explaining the internet:</p><blockquote>You replaced one complicated concept with five other complicated concepts. Your six-year-old has left the chat.</blockquote><p>Direct, but useful.</p><p>The product principle was simple:</p><p><strong>Criticism should sting just enough to be memorable, but always leave you knowing what to fix.</strong></p><h3>Building trust mattered more than adding features</h3><p>Some of the most interesting product decisions came from things that initially looked like technical edge cases.</p><p>Take transcription.</p><p>Speech recognition isn’t perfect.</p><p>If the system misheard what you said and then criticised <em>you</em> for the mistake, the entire evaluation would feel unfair.</p><p>So users review and correct their transcript before it is scored.</p><p>Another issue appeared with very short or empty answers.</p><p>An AI evaluator can produce surprisingly reasonable-sounding feedback even when there isn’t enough evidence to justify it.</p><p>That’s terrible for a learning product.</p><p>So empty responses score zero, and extremely short responses are capped.</p><p>The lesson was bigger than scoring:</p><p><strong>AI feedback only works when users trust that the system earned the right to give it.</strong></p><p>Fallback prompts, result validation, transcript correction and predictable scoring aren’t glamorous features.</p><p>But they are product features.</p><h3>Under the hood: how I built it</h3><p>Once the learning loop was clear, the technology had one job:</p><p><strong>Get out of the way of it.</strong></p><p>The MVP is a web application built with <strong>Next.js, JavaScript and CSS</strong>, with Firebase handling most of the backend infrastructure.</p><h3>The core flow</h3><p>When a user starts a challenge:</p><p><strong>1. Gemini generates the challenge</strong></p><p>Each mode has its own generation instructions.</p><p>Pitch It, for example, asks for short, concrete products rather than elaborate fictional scenarios.</p><p>There’s also a curated fallback pool. If AI generation fails, the workout shouldn’t.</p><p><strong>2. The browser becomes the recording studio</strong></p><p>Camera and microphone access happen directly in the browser.</p><p>During preparation, the camera stays visible. Once the timer starts, browser speech recognition turns the spoken response into a live transcript.</p><p>No separate recording application. No upload workflow.</p><p>The goal was to make starting a challenge feel almost instantaneous.</p><p><strong>3. The user gets the final say on the transcript</strong></p><p>Before anything goes to the evaluator, users can correct speech-recognition mistakes.</p><p>That small UX step matters technically and philosophically: <strong>the AI should evaluate what the user actually said, not what another AI thought they said.</strong></p><p><strong>4. Gemini becomes the evaluator</strong></p><p>The reviewed transcript, original challenge and challenge mode are sent through <strong>Firebase AI Logic with Gemini</strong>.</p><p>But I don’t simply ask:</p><p><em>“How good was this answer?”</em></p><p>The evaluation request specifies the scoring dimensions, evidence requirements, score limits, expected structured output, strengths, weaknesses, Teach Me guidance, Roast Me feedback, suggested framework and next exercise.</p><p>The returned result is then validated before being shown or saved.</p><p>If the AI response is unavailable or malformed, fallback logic prevents the experience from simply breaking.</p><p><strong>5. Firestore remembers the workout</strong></p><p>Each completed attempt can store the prompt, transcript, category scores, overall score, strengths, improvement areas, feedback and completion time.</p><p>That means the architecture already supports something important for the next version:</p><p><strong>progress over time.</strong></p><p>Instead of simply telling someone <em>“you scored 74 today,”</em> Unprompted can eventually tell them:</p><p><em>“Your clarity has improved across your last eight attempts, but you consistently make claims without supporting examples.”</em></p><p>That’s much closer to coaching.</p><h3>The stack</h3><p>The MVP uses:</p><ul><li><strong>Next.js</strong> for the web application</li><li><strong>JavaScript + CSS</strong> for product logic and interface design</li><li><strong>Firebase Authentication</strong> for Google Sign-In</li><li><strong>Cloud Firestore</strong> for attempts, scores, feedback and usage counters</li><li><strong>Firebase AI Logic + Gemini</strong> for challenge generation and structured evaluation</li><li><strong>Firebase App Check + reCAPTCHA Enterprise</strong> for request verification and abuse protection</li><li><strong>Browser camera, microphone and speech-recognition APIs</strong> for the speaking experience</li><li><strong>Firebase Hosting</strong> for deployment</li></ul><p>The application is exported as a static website.</p><p>Rather than exposing a private Gemini API key directly in the browser, AI access runs through Firebase AI Logic.</p><p>Authentication and Firestore security rules ensure users can access only their own results.</p><p>Usage counters are updated through Firestore transactions, with limits on prompt generation and evaluation to control accidental overuse and AI costs.</p><p>App Check adds another layer by helping Firebase distinguish requests from the actual application from unauthorised scripts.</p><p>It’s not an enormous architecture.</p><p>That’s intentional.</p><p><strong>The MVP architecture is optimised for validating the learning loop, not demonstrating how many cloud services I know.</strong></p><h3>Privacy was also a product decision</h3><p>Camera + microphone + AI is exactly the kind of combination that should make a product builder slightly paranoid.</p><p>So the MVP follows a simple principle:</p><p><strong>Don’t collect something just because you technically can.</strong></p><p>Camera and microphone access require explicit browser permission.</p><p>Raw video isn’t permanently stored in the current flow.</p><p>Only the transcript and evaluation data needed for the experience are stored.</p><p>Users can access only their own Firestore records.</p><p>And the product doesn’t pretend that having the camera on magically proves someone didn’t use another device.</p><p>That’s another product lesson I’ve taken from building with AI:</p><p><strong>Technical possibility isn’t the same thing as product necessity.</strong></p><h3>What I deliberately didn’t build</h3><p>The temptation with an MVP is to prove how much you can build.</p><p>I found the harder exercise was deciding what <strong>not</strong> to build.</p><p>No leaderboards.</p><p>No elaborate anti-cheating system.</p><p>No gesture-analysis score pretending to know whether someone is confident.</p><p>No giant social layer.</p><p>No AI writing the answer before you speak.</p><p>The question for every feature became:</p><p><strong>Does this make the user better at forming and articulating their own thoughts?</strong></p><p>If not, it could wait.</p><h3>What building Unprompted taught me</h3><p>The biggest lesson wasn’t technical.</p><p>It was that building AI products sometimes means deliberately deciding <strong>where AI should stop</strong>.</p><p>The easiest version of Unprompted would probably be an AI copilot that helps you construct a brilliant response in real time.</p><p>It would also undermine the skill it’s supposed to develop.</p><p>So the product does something slightly unusual:</p><p><strong>The human struggles first.</strong></p><p>Then AI helps.</p><p>Future versions can track progress, identify recurring weaknesses, create personalised drills and expand into interview and presentation practice.</p><p>But the core loop shouldn’t change.</p><p><strong>Think. Speak. Get feedback. Get better.</strong></p><p>AI can generate the polished answer for you.</p><p>Unprompted is built around the belief that sometimes, it shouldn’t.</p><p><strong>Because ChatGPT can’t speak for you.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac5089036c04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Solidity with Voting Contracts]]></title>
            <link>https://medium.com/@ananyaagupta/learning-solidity-with-voting-contracts-af59e6bde383?source=rss-552d0bd11cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/af59e6bde383</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[voting]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[polygon]]></category>
            <dc:creator><![CDATA[Ananyaa Gupta]]></dc:creator>
            <pubDate>Wed, 24 May 2023 17:21:51 GMT</pubDate>
            <atom:updated>2023-05-24T17:21:51.465Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*AD2YDLGpQHh-XtMnZ0krEQ.png" /></figure><h3>Introduction</h3><p>Decentralized decision-making is at the core of blockchain technology, and voting contracts written in Solidity enable transparent and inclusive governance. In this blog post, we’ll explore a simple yet powerful example of a voting contract in Solidity. We’ll dissect the code line by line to understand its functionality and learn how to deploy it on the Remix IDE with Polygon integration.</p><h3>Setup</h3><p>Our first contract is a basic Solidity Voting smart contract that can be written in <a href="https://remix.ethereum.org/">Remix</a> IDE . Under the Contracts folder create a new file named Voting.sol( first letter is capital) as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*grw586qgThzpkjkSPFYTeQ.png" /></figure><p>This will be our code for our first contract that we will write in Voting.sol</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ED-KnHYyicX-tHBkGgzrsQ.png" /></figure><p>You can access the code from <a href="https://github.com/Ananyaagupta/The-Quest/blob/main/Templates-voting/Votiong.sol">here</a>.<br>Now lets understand the code line by line from here:</p><ol><li>We start with the <strong>SPDX-License-Identifier</strong>, which indicates that the contract is licensed under the MIT license.</li></ol><blockquote>The inclusion of a code license at the beginning of the code is not technically necessary for the functioning of the smart contract. However, it is considered a best practice in software development to clearly state the license under which the code is distributed for Legal Compliance,Openness and Collaboration,Community Trust etc.</blockquote><p>2. The <strong>pragma solidity ^0.8.0</strong>; statement specifies that the contract should be compiled with a Solidity version greater than or equal to 0.8.0.</p><blockquote>Solidity is an evolving language, and different versions may introduce new features, bug fixes, or changes to the syntax. By mentioning the Solidity version, developers ensure that the code is compiled using a compatible compiler. This helps prevent any potential issues or conflicts.</blockquote><p>3. In the line ‘<strong>contract Voting {</strong>’<strong> </strong>, we create a new contract called “Voting” . (Remember to write all the code from here on enclosed between Voting{ } )</p><blockquote>In Solidity, the code inside the curly braces {} of a contract defines the contract&#39;s scope and encapsulates its functions, variables, and other declarations. This section is where you define the behavior, state, and functionality of the contract.</blockquote><p>4. The next 3 lines assign and store the respective values:</p><p>string public <strong>question</strong> = “Who is cooler?”; // The question being voted upon string public <strong>optionA</strong> = “Superman”; // Option A for voting <br>string public <strong>optionB</strong> = “Spiderman”; // Option B for voting</p><blockquote>In Solidity, the <strong>string</strong> data type represents a sequence of characters, allowing us to store textual information. In the voting contract, <strong>question</strong>, <strong>optionA</strong>, and <strong>optionB</strong> are strings that hold the voting question and available options.</blockquote><blockquote>The keyword <strong>public</strong> is used to declare these variables as public state variables. It creates automatic getter functions that enable external entities to access the current values of these variables. By making them public, we ensure transparency and make it easier to retrieve the question and options for voting.</blockquote><p>5. The next 2 lines are used to keep the count of votes for respective candidates.</p><p>uint public <strong>optionAVotes</strong>; // Counter for votes for Option A <br>uint public <strong>optionBVotes</strong>; // Counter for votes for Option B</p><blockquote>The<strong> </strong><strong>uint</strong> data type represents unsigned integers, which are non-negative whole numbers. These variables are used to store the vote counts for Option A and Option B.</blockquote><p>6. The next two lines provide two functions, <strong>voteForOptionA</strong>() and <strong>voteForOptionB</strong>(), which allow users to cast their votes for Option A and Option B, respectively.</p><p>function <strong>voteForOptionA()</strong> public { <br>optionAVotes++; // Increment the vote count for Option A<br> }</p><p>function <strong>voteForOptionB()</strong> public { <br>optionBVotes++; // Increment the vote count for Option B<br> }</p><blockquote>voteForOptionX(): This function enables users to vote for Option X. When called, it increments the optionXVotes counter by one. Each time a user calls this function, the vote count for Option X increases by one, reflecting the growing support for that particular option. (Where X= A or B)</blockquote><p>Now once we are done writing the contract in the the Remix IDE as seen above we will deploy and run it:</p><h3>Compiling</h3><p>Next we will go to Solidity Complier that can be found on the left sidebar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*DNIOtNXiC0VzCBy90G-P0g.png" /></figure><blockquote>Note: As we can see here the compiler version here is 0.8.18+ which is more than 0.8.0 as mentioned in our code. Thus our code should successfully compile if there are no other errors.</blockquote><p>Click on the Blue Compile Voting.sol button. Once compiled the icon will change as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*tlwES-Jj8ju2UAmL9Xjlkw.png" /></figure><h3>Deploying</h3><p>We will be deploying our smart contract on Polygon Mumbai testnet using Metamask wallet. If you do not have Metamask wallet follow this tutorial to download and setup your wallet: <a href="https://www.coincarp.com/chainlist/mumbai/">Tutorial</a></p><p>Make sure you are logged in your Metamask account and your network is set to Polygon Mumbai.<br>Also make sure you have the necessary testnet funds. you can request token from the <a href="https://faucet.polygon.technology/">Polygon Mumbai Faucet</a>.</p><p>Now go to Deploy and run section of the sidebar. Here change the Environment to Injected Provider-Metamask as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*pY1vmARetkpW16R1VGMaew.png" /></figure><p>And click on Deploy your Metamask will ask you for confirmation and show you the calculated gas fees to deploy your contract. Note that this is testnet matic thus we will not be spending any real money in this transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*XgTh8QLBymKJ72iJqJco9A.png" /></figure><p>After you click on confirm you will see in your console output that your contract has been deployed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VM6Zl8FonZwJNjqIqFG6hA.png" /></figure><h3>Results</h3><p>Once you scroll down on the left sidebar you will see your deployed contract as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*jG8JzG3-RLsErztQW-mrWg.png" /></figure><p>Here we can see all the functions and data types we created in our contract and interact with them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*tV-A46tqlV6TQ9ozQTGBmA.png" /></figure><p>By clicking on <strong>VoteForOptionX</strong> we trigger the function which increases the vote counter for the respective candidate.</p><blockquote>While voting we are required to identify by signing the contract using our Metamask and confirming our identity.</blockquote><p>As we remember <strong>optionXvotes</strong> are the counters that hold the counter values. Or the number of votes casted to the candidate X.</p><blockquote>You can see that optionAVotes have a count value of 2, where as optionBVotes are 0. I clearly don’t have a favourite XD</blockquote><p>The rest 3 fields are<strong> optionA, optionB</strong> and <strong>question</strong> that hold the respective strings we have assigned to them as we can see.</p><p>And voila we have deployed a Voting smart contract on Polygon Mumbai now. Kudos on that. 👏</p><h4>Now let’s look into how we can make this contract better. As you could see I voted for Superman twice. But that’s not very fair. In an election one person should only be allowed one Vote. So lets modify our contract!</h4><h3>Birth of FairVoting.sol</h3><p>Lets write a smart contract that only allows one vote per person:<br>Now head back to the files explorer and create a new file called Fairvoting.sol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*YJvjM_m5VlwLwLAVVf_i7A.png" /></figure><p>You can find the code for the same <a href="https://github.com/Ananyaagupta/The-Quest/blob/main/Templates-voting/Fairvoting.sol">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h6ZcKX3-_1MXxqbm8cTOWw.png" /></figure><p>But how are we ensuring that one user is voting only once here? Lets take a look at the code:<br>The first addition we have made is at line 10. We have added mappings here but what is mapping?</p><blockquote><strong>Mappings</strong> in Solidity are key-value <strong>data structures</strong> that allow you to associate a value with a unique key. They are similar to dictionaries or hash maps in other programming languages. In mappings, the key is of one data type, and the corresponding value can be of any data type.</blockquote><ol><li>mapping(address =&gt; bool) public <strong>hasVoted</strong>: This mapping associates each user&#39;s Ethereum address (<strong>address</strong>) with a boolean value (<strong>bool</strong>). The purpose of this mapping is to track whether a user has voted (hasVoted).</li></ol><blockquote>As we know string data type consists of text, similarly bool consists of Boolean values that is: True or False.</blockquote><p>2. mapping(address =&gt; string) public <strong>userVotes</strong>: This mapping associates each user&#39;s Ethereum address (address) with a string value (string). It is used to store the option chosen by each user (userVotes).</p><p>As we can see here we have created two mappings called <strong>hasVoted</strong> and <strong>userVotes</strong> here. both of these mappings are public data structures. Let’s see how we use them.</p><p>Our next additions are in the functions voteForOptionX( )</p><p>3. <strong>require(!hasVoted[msg.sender], “You have already voted.”);<br></strong> is a require statement used in the Fairvoting contract. Let’s break down its meaning and functionality:</p><blockquote>When a user interacts with a smart contract in Ethereum, the transaction includes a special variable called <strong>msg.sender</strong>. This variable represents the Ethereum address of the account that initiated the transaction. In the case of the Fairvoting contract, msg.sender refers to the address of the user who is calling the voteForOptionA() or voteForOptionB() function.</blockquote><p><strong>!hasVoted[msg.sender]</strong>: This expression checks the value stored in the hasVoted mapping for the Ethereum address (msg.sender) . The ! operator negates the value, so !hasVoted[msg.sender] evaluates to true if the user has not voted .</p><blockquote>In Solidity, <strong>require</strong> is a control structure used to enforce conditions in a smart contract. If the condition specified in the require statement evaluates to false, the error message is printed halting the execution of further code<br>The synatx is: require(condition, error message);</blockquote><h4>Thus to summarise: <strong>require(!hasVoted[msg.sender], “You have already voted.”);</strong></h4><p><strong>1.msg.sender </strong>is the wallet address of the person who calls that function.</p><p><strong>2. hasVoted</strong> is our mapping that stores true for the people who <strong>have</strong> already voted.<br>3. <strong>!hasVoted</strong> return negation of hasVoted ( meaning True become False and vise versa)<br>Thus making the return Value of <strong>False</strong> for the people who <strong>HAVE </strong>voted<strong>!<br>4. require</strong>(<strong>False</strong>, error message); returns error message and halts the further execution of the code.</p><p><strong>Thus, </strong>if a user has already voted they get an error message saying <strong>“You have already voted.”</strong></p><h4>Our Next and last additions are:</h4><p>hasVoted[msg.sender] = true; // adds the key pair address-true to hasvoted<br>userVotes[msg.sender] = optionX; //records the user address with the Vote they are making.</p><blockquote>If require statement does not fail, meaning the address has not Voted before this, The code execution is not halted and we get to this part! now obviosuly this is a new user so we map them as voted, increase the vote counter ( same way as Voting.sol) and map their Vote to the option they are Voting for!</blockquote><p><strong>4. hasVoted[msg.sender] = true; </strong>This is how we add values to our mappings to note who has voted which is later checked by require().</p><blockquote>Syntax used to add values to mapping: mappingName[key] = value;</blockquote><p>And thats it! You have succesfully written a contract that only let’s unique addresses Vote.Compile and deploy it in same manner as we did for Voting.</p><p>You should have an output like given below once deployed. Interact with it to see for yourself how hardly 3–4 lines of code solved such a big Voting problem for us!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*UrSeHTuyCAuWzYeE_YfJ8A.png" /></figure><p>Notice that we are referring to “addresses” voting and not “persons” as a person may have multiple addresses and can vote with each of them. What could be a solution to stop that and make the Voting even more Fair?</p><p>As you can see we aren’t really using our userVotes mapping to do anything right now. We are just storing their Vote preferences. so here is a task for you. Why dont you edit your code such that a Voter can vote for each options only once? Give it a try!</p><p>Fell free to ping me on <a href="https://twitter.com/Momosdo">Twitter</a> incase you run into any issues. Would be happy to help!</p><h3>Resources you can use to speed your learning</h3><p><a href="https://github.com/Ananyaagupta/The-Quest/tree/main/Templates-voting">Repo of all the voting Contracts with commented version.</a><br><a href="https://www.youtube.com/watch?v=I4C5RkiNAYQ">Polygon Mumbai 🤝Metamask</a><br><a href="https://www.youtube.com/watch?v=ipwxYa-F1uY">Solidity</a><br><a href="https://www.youtube.com/watch?v=Bye7awjzZ_g">Remix IDE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af59e6bde383" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Openbook- A deepdive]]></title>
            <link>https://medium.com/@ananyaagupta/openbook-a-deepdive-24f26308c440?source=rss-552d0bd11cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/24f26308c440</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Ananyaa Gupta]]></dc:creator>
            <pubDate>Sun, 15 Jan 2023 18:19:24 GMT</pubDate>
            <atom:updated>2023-01-15T18:19:24.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Ml9Y8Xy9AuQ0vU06.jpg" /></figure><p>OpenBook is a decentralized exchange built on the Solana blockchain that aims to provide a transparent, secure, and community-driven trading experience for users. It is a fork of Serum v3, one of Solana’s core DeFi infrastructures with a Central Limit Order Book (CLOB) mechanism that ensures optimal order matching on decentralized exchanges.</p><p>How it is currently vs how it is differentiated in web3</p><p>OpenBook is a recent development in the Solana DeFi ecosystem, launched on November 14, 2022 as a response to the security breaches and contagion caused by the collapse of FTX. It is differentiated by being a community-driven fork of Serum’s V3 program, which allows for collective governance and decision-making rather than having a single entity ruling over the infrastructure and security of the platform.</p><p>Deep dive on the topic</p><p>The security breach on FTX led to a possibility of the Serum program update key being compromised, putting the smart contract and all the protocols that ran on top of it at risk. To safeguard this integral part of Solana DeFi, developers and leaders from prominent protocols joined hands to deploy OpenBook, a community-driven fork of Serum’s V3 program.</p><p>Several projects played crucial roles in the deployment and integration of OpenBook into Solana’s DeFi ecosystem, including Raydium, Solape, Jupiter Aggregator, Switchboard, OpenSerum and Mango Markets. They shared liquidity, included OpenBook in their SDK/APIs, allowed price data and developed extensive dashboards to cover the various markets utilizing OpenBook.</p><p>Future Roadmap</p><p>The future roadmap for OpenBook includes increasing adoption and liquidity, as well as partnerships and collaborations with other projects in the Solana ecosystem. Additionally, the team behind the project is planning to implement staking functionalities for its native token, allowing users to earn rewards for holding the token and participating in the governance of the platform.</p><p>Critiques</p><p>As the OpenBook program is a recent development, it is difficult to provide critiques at this time. However, it is important to note that the success of the program will depend on its ability to attract users and build a strong community, as well as its ability to secure its infrastructure and protect users from potential security breaches.</p><p>Suggestions</p><p>In order to ensure the success of the OpenBook program, it is important for the team to focus on building a strong community, through effective communication and engagement with the community, as well as by providing opportunities for community members to contribute to the development and governance of the platform. Additionally, it is important for the team to focus on securing the infrastructure and protecting users from potential security breaches.</p><p>OpenBook, being a decentralized exchange built on the Solana blockchain, faces competition from other decentralized exchanges on the Solana ecosystem such as Serum and SushiSwap.</p><p>One of the main pros of OpenBook is that it is a fork of Serum v3, which is a battle-tested and successful DEX on the Solana blockchain. This means that OpenBook has access to a proven codebase and can leverage the learnings and improvements made by the Serum team. Additionally, as a DAO, it allows for more community-driven and decentralized governance which is a desired feature for many people.</p><p>On the other hand, one of the cons of OpenBook is that it is a relatively new project and has not yet launched, thus adoption and liquidity are not yet known. Additionally, as a new DEX, it will have to work on attracting users and liquidity providers to the platform which is a common challenge for new DEXs.</p><p>Another relative con is that OpenBook is competing in a crowded market with many other DEXs on Solana and other blockchain networks, many of which have already established user bases and liquidity. This means that it will have to work hard to differentiate itself and attract users.</p><p>In summary, OpenBook has some advantages such as a proven codebase, being a DAO and being built on Solana blockchain which is known for its high performance. However, it also faces some challenges such as being a new project, lack of adoption and liquidity, and fierce competition.</p><p>OpenBook, as a decentralized exchange (DEX) built on the Solana blockchain, has several key features that set it apart from other DEXs.</p><h3>Key features</h3><ol><li><strong>Community-driven governance</strong>: As a DAO (decentralized autonomous organization), OpenBook allows all members to contribute equally to its development and governance. This means that the community has more control over the direction of the project and its future developments.</li><li><strong>High-performance trading</strong>: OpenBook leverages the fast and inexpensive transactions provided by the Solana blockchain, which enables fast and low-cost trades for users.</li><li><strong>Decentralized order book:</strong> OpenBook uses a decentralized order book that ensures the transparency and security of trades. This means that users can trust that their trades are being executed fairly and that their assets are safe.</li><li><strong>Liquidity provision</strong>: OpenBook allows users to provide liquidity to the platform and earn rewards for doing so. This helps to ensure that there is always enough liquidity on the platform to enable fast and efficient trades.</li><li><strong>Token Listing: </strong>OpenBook allows the community to vote on which tokens they want to see listed on the exchange.</li><li><strong>Compliance</strong>: OpenBook has implemented AML/KYC to comply with regulations and protect users</li><li><strong>Multi-language support</strong>: OpenBook’s user interface will support multiple languages to cater to a wider audience.</li><li><strong>Token swap:</strong> OpenBook allows users to swap tokens on the platform quickly and easily</li><li><strong>Staking</strong>: OpenBook will have staking functionalities for its native token, allowing users to earn rewards for holding the token and participating in the governance of the platform.</li></ol><p>These features aim to make OpenBook a transparent, secure, and community-driven DEX that can enable fair and decentralized trading on the Solana blockchain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24f26308c440" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperspace Deep Dive]]></title>
            <link>https://medium.com/@ananyaagupta/hyperspace-deep-dive-bcd78d9e6acc?source=rss-552d0bd11cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcd78d9e6acc</guid>
            <dc:creator><![CDATA[Ananyaa Gupta]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 18:21:47 GMT</pubDate>
            <atom:updated>2023-01-07T13:01:26.406Z</atom:updated>
            <content:encoded><![CDATA[<h3>NFTs</h3><p>Unless you have been living under a rock you must have heard about “NFTs” they have been all over the internet for a while now. The NFT boom of 2021 continuing to 2022 taught us that NFTs are here to stay. But what are NFTs exactly?</p><blockquote>NFT stands for Non fungible tokens. Each NFT has a digital signature that makes it impossible for NFTs to be exchanged for or be equal to one another thus, making them non-fungible.</blockquote><p>As NFTs are essentially smart contracts they need to be deployed on a Blockchain first. NFTs can be deployed and traded on various Blockchain networks such as Ethereum, Solana, Tezos, Flow etc. All these chains have their pros and cons. Find a detailed comparison <a href="https://nftnow.com/guides/complete-simple-guide-to-top-nft-blockchains/"><strong>here</strong></a>.</p><blockquote><em>Smart contracts are digital contracts stored on a blockchain that is automatically executed when predetermined terms and conditions are met.</em></blockquote><p>The Blockchain effects the scope of the NFT as better the blockchain’s scope and functionalities are more appreciation and market liquidity the NFTs on it reap.</p><p>Ethereum has the largest NFT trade volume currently but due to the high energy use, slow transaction speed, and enormous fees that need to be paid on the Ethereum people have been migrating to alternatives.</p><p>Solana has the second largest trade volume thus the most liquidity after Ethereum. Today we will be looking into the Solana Blockchain.</p><blockquote><strong>Solana brings faster transaction speeds, lower fees, and higher throughput capacity</strong>.</blockquote><p>Now lets talk about where one can find NFTs on Solana to buy, trade or maybe just window shop a little?</p><p>Well the options are unlimited and our goal here is to understand, compare and then conclude our choices.</p><p><strong>But wait! what if we did not have to surf through all these marketplaces? what if we had one stop solution to find all NFTs on Solana in one place?</strong></p><h3><strong>Enter Hyperspace</strong></h3><p>Hyperspace is the answer to all your NFT problems. It is a truly decentralized platform that saves you the pain of having to surf multiple Solana NFT marketplaces to buy or sell your NFT. Which essentially makes Hyperspace an <strong>NFT aggregator</strong>. Now what’s that?</p><h3><strong>NFT marketplace</strong></h3><h4>NFT Aggregation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xjwd8KgGyEEU-b_EAPA-jQ.png" /></figure><p><a href="https://hyperspace.xyz/">Hyperspace</a> is Solana’s #1 NFT Aggregator. An NFT aggregator brings all the NFTs at one place from various marketplaces and sources and thus provides an unmatched variety and ease to the users. This enormously helps the liquidity and thus is able to offer the best deals possible to both buyers and sellers. Hyperspace continuously tries to find and onboard new marketplaces to stay at the top. The list of market places currently listed can be found <a href="https://docs.hyperspace.xyz/hype/trading-on-hyperspace/core-features/integrated-marketplaces">here</a>.</p><h3>LEADERBOARDS &amp; ANALYTICS</h3><p>The home page of Hyperspace displays ranks of various NFT project calculated using different matrices such as rarity, market demand etc.</p><p>There also various other factors one can view such as: Floor Price, Market Cap, Average Price, Volume 24h changing, Percentage of listed NFT etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G4dpOL5e3v2LvUTlEsqwow.png" /></figure><h4>Rarity</h4><p>One of the USPs on Hyperspace marketplace is is its Rarity/Ranks. Hyperspace calculates rarity of projects using rarity.tools. This ensures a high accuracy percentage. It is important to note that rarity might differ from site to site.<br>Hyperspace uses metadata, and various project attributes to calculate rarity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*TncKVxy5Ncd32y4nuDHKUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*15Ueyh9Wq-Z0VnynESpb2w.png" /></figure><p>More can be found on this methodology <a href="https://docs.hyperspace.xyz/hype/trading-on-hyperspace/how-do-we-calculate-rarities">here</a>.</p><h4>Trading Fees</h4><p>Currently Hyperspace does not impose any listing fee on their platform providing opportunity for small creators to grow and bring their best foot forward. The trading fee on the platform is kept low as well promoting trade and liquidity. <br>A seller’s fee of 1% is imposed when someone is able to successfully sell their NFT through the platform.</p><h3>True Decentralization</h3><h4><strong>Decentralized Front-end:</strong></h4><p>However decentralized the tokens or technology gets true decentralization can only be achieved through freedom of speech. Most web3 websites with their smart contracts and tokens claim to be decentralized but have centralized frontends, meaning that they can remove the comments and remarks that they find violating. In fact they are able to list and delist tokens at their will.<br>Not only will this be unfair to various projects but it also falls under censorship which is against the very core idea of art and thus NFTs.</p><p>THANKFULLY, Hyperspace has a decentralized frontend that enables artists to be their own self and display their art and views unfiltered. So if you were planning to launch that Controversial NFT collection you know where to go.</p><h4>Composable Contracts:</h4><p>This is achieved through <strong>Hyperspace JS Client</strong> which helps developers in building and hosting their own marketplaces with customable with dashboards and analytics without having to actually code. This gives the creators the power to create their very own experience and serve their community better with ability to list and bid on the Hyperspace Contract on demand.</p><h4>Non-escrow</h4><p>When a user lists their NFTs on Hyperspace, the ownership of NFT does not change, meaning the NFT essentially stays in the sellers wallet until sold. This allows the seller to use the NFTs incase they are membership NFTs, NFT tickets or have other functionalities or just display them as pfp etc. Once sold the ownership directly transfers to the buyer. Thus unlike magic Eden which stores the NFTs in its own vault from the moment they are listed till sold restricting its use, Hyperspace does not act as a middle man in the transaction or trade.</p><h3>History</h3><p>Originally Solanlysis was a platform to aid tracking and monitoring NFT data. Its main feature was to enable users to search the details &amp; price of NFTs or even find out estimated value of NFTs in other people’s wallet!<br>Solanalysis was launched in 2021 it won the Fourth Place in Digital Art &amp; Collectables Track at IGNITION — A Global Solana Hackathon.</p><p>Solanlysis rebranded itself to Hyperspace in 2022 and onboarded various notable investors such as Solana Capital, NFX, Galaxy Digital, Jump Capital to name a few.</p><h3><strong>Community</strong></h3><p>A community is only as strong as its weakest link. I have been a part of their discord server for a while now, where I got the chance to interact and connect with various members and users of Hyperspace. Thus, here are some findings on their functioning that I believe makes the Hyperspace community unique and efficient.</p><h4>Transparency</h4><p>Hyperspace has a very engaging and interactive community that is all about the value of transparency and growth.</p><p>As you can see here Bryan who is one of the co-founder keeps sharing regular updates about the growth of Hyperspace. Transparency is one big indicator about a company indeed.</p><blockquote>The Co-founders of Hyperspace are: <em>Kamil Mafoud, Santhosh Narayan, Johnny Tan,</em> and <em>Bryan Jun.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GGBFNCg9GtNizsyO8mX1mA.png" /></figure><h4>The spirit of giving back!</h4><p>Recently on Christmas Hyperspace conducted Hypemas which was an event focused at giving small NFT artists the center space and exposure to help them grow. The event was approx 12 days long which hosted about 12 emerging artists!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*osrm53syl3lrXbAakbKXMA.png" /></figure><h4>Accountability</h4><p>Hyperspace takes active steps to resolve user grievances and addresses the concerns publicly. Once such issue that recently came was resolved quickly and with live updates by Bryan himself demonstrating Hyperspace’s commitment towards their users or Astronauts as Bryan likes to say!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*pEedAhzylNfQUPearii14Q.png" /></figure><h3><strong>Steps to use Hyperspace</strong></h3><ol><li><strong>Get a wallet</strong></li></ol><p>A web3 wallet is a type of software that allows you to interact with decentralized applications (DApps) on the <a href="http://internet.to/">internet.To</a> use a web3 wallet, you will need to have a device with internet access and a web browser that is compatible with web3 technology. You will also need to create a wallet address, which is a unique string of letters and numbers that represents your wallet on the blockchain.</p><p>Once you have a web3 wallet and wallet address, you can use it to send and receive cryptocurrency, such as Solana or to interact with DApps that are built on top of the blockchain. For example, you might use a web3 wallet to participate in a decentralized marketplace, where you can buy and sell goods and services without the need for a central authority.</p><p>In this case we’ll be using Phantom wallet, which is a popular web3 wallet. Head over to this website <a href="https://phantom.app/">https://phantom.app/</a> to download the wallet and set up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cTQwcNl_1YUu3eCsXS_ECQ.png" /></figure><p>Once the wallet is set up add some by buying some SOL 🤑</p><ol><li><strong>Connect your wallet to the website.</strong></li></ol><p>Click on the “Connect” button on top right corner and then click “Connect” again on the pop up by Phantom wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8y65brTgkTuSvLDB661zww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*37GNK0URAxnR22cqnMnDCA.png" /></figure><p>Once you are logged in, your wallet address will be displayed at the top right corner of the webpage like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*nM723uZOMdctLRg8-OknYA.png" /></figure><p>You are now ready to begin buying and selling non-fungible tokens (NFTs) on the Hyperspace platform.”</p><ol><li><strong>Exploring NFTs</strong></li></ol><p>Head over to the Trade &gt; Explore Collections section to explore the various available NFT Collections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*3vigkyMTpawvGieKHVOa4A.png" /></figure><p>You can make use of various available filters such as min/max floor price and sorting by 1d/1hr and 7d volume.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*J_BdxYHpAmIUcVQpHbWMZQ.png" /></figure><p>If you are interested in any collection you can click on it and further have a look at all the available NFTs of that collection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*LJ11PCalYy-cOzFWH3Povw.png" /></figure><p>Here you can make use of more filters to choose any NFT as per your interest and budget. Once you have selected the NFT of your choice, you can click on buy now to add the NFT to your cart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*uOuSGwtzrFTf9bdqBT4QZA.png" /></figure><p>To complete the payment click on “Buy Now” again and click confirm on popup by Phantom wallet.</p><ol><li>View your NFTs</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKOTiZK10ZaOdFV4-JjgEg.png" /></figure><p>You can view all your NFTs by clicking on “View Profile” at the top right corner of the page. Over here you can see an overview of all the NFTs owned by you.</p><p>If someone makes an offer for any NFT owned by you then it is shown in the “Offers” tab. After analyzing the offer you can choose to negotiate or sell the NFT according to your wish.</p><h3>Conclusion</h3><p>As you guys might have already noted, Hyperspace is an aggregator platform which is revolutionizing the NFT game with its:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcd78d9e6acc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NFTs: All you need to know]]></title>
            <link>https://medium.com/@ananyaagupta/nfts-all-you-need-to-know-2601d2443a8f?source=rss-552d0bd11cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2601d2443a8f</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[nft-marketplace]]></category>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[bockchain]]></category>
            <dc:creator><![CDATA[Ananyaa Gupta]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 15:11:39 GMT</pubDate>
            <atom:updated>2023-01-06T18:42:35.846Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember being utterly confused about what NFTs are and what their hype is all about. Recently I completed a project to ship my own NFT collection and mint it!</p><p>So here is everything I learned on my way about NFTs and their working:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*22YSBVEm8JBWHgKUT-f_aw.png" /><figcaption>BAYC is a collection of 10,000 Bored Ape NFTs</figcaption></figure><h3>What are NFTs?</h3><p>NFT stands for Non fungible tokens.</p><p>To understand what that means let’s start by understanding fungibility.<br><strong>Fungible</strong> refers to something that cannot be distinguished from another thing and thus is interchangeable.</p><p>For example, if I lent you 10$ by giving you a ten-dollar bill, you can pay me back with the same bill, another $10 bill, or two five-dollar bills. Thus, Money is fungible. This means that two 10$ bills are interchangeable and a 10$ bill has the same value as two 5$ bills.</p><p>Contrary to this Each NFT has a digital signature that makes it impossible for NFTs to be exchanged for or be equal to one another thus, making them non-fungible.</p><blockquote>Gold vs diamond</blockquote><blockquote>One bar of gold must be tradable or exchangeable for another bar of gold, or two bars that are half the size and weight. Thus making gold Fungible.</blockquote><blockquote>Diamonds are not typically fungible. Diamond quality varies considerably among stones it is virtually impossible to find two completely identical and therefore equal stones.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Xl-_Ead9IJQHy6I-24_LAA.png" /></figure><p>Both money and cryptocurrencies are thus Fungible, unlike NFTs.</p><p>An NFT can be anything from Collectible items/Trading cards, Artwork, Event tickets, Music and Media, Gaming, Big Sports Moments, Virtual Fashion, Real-world assets, Memes, Domain names, and much more.</p><h3>Why NFTs?</h3><p>NFT has brought in a wave of revolution with its many utilities some of which are:</p><p>With the help of NFTs, artists can sell their work directly to consumers without relying on exhibitions or middlemen while also receiving royalties.</p><blockquote>Artists can program <strong>royalties</strong> into their NFTs so they’ll receive a percentage of sales whenever their art is sold to a new owner.</blockquote><p>NFTs can also represent real-world items like artwork and real estate. “Tokenizing” these real-world<strong> </strong><a href="https://g.co/kgs/7cxBPU"><strong>tangible</strong></a> assets makes buying, selling, and trading them more efficient while reducing the probability of fraud.</p><p>NFTs are also used to represent ownership of digital assets such as art, music, video, etc. preventing piracy and providing traceability to its rightful creators.</p><p>The most popular use case of NFTs in today’s world is still in the form of digital collectibles and NFT flipping.</p><h3>Where are NFTs stored?</h3><p>Contrary to popular belief NFTs are not the actual art. Rather NFTs are unique digital identifiers recorded on the <em>blockchain</em>. An NFT is an address or simply a pointer that points to the actual art or content. Now the art itself need not be stored on the blockchain.</p><blockquote>Smart contracts are digital contracts stored on a blockchain that is automatically executed when predetermined terms and conditions are met.</blockquote><p>Let us first separate the two parts of an NFT: the smart contract and the media for our better understanding.</p><p>A smart contract is simply a series of code it is stored on the blockchain and contains the link, or address, which points to where the media is located.</p><p>But the media is the face value of an NFT.<br>It is immensely unfeasible to use encryption and store something as complex as digital art or music inside one of these smart contracts or blocks of data.</p><p>Therefore, often the media itself is stored on a centralized cloud-based solution for example AWS, Azure, etc. Now the problem in these cases is that these clouds are again centralized.</p><blockquote>If the company or site is compromised or shut down, the media will no longer be accessible. In this scenario, the link contained within the smart contract of your NFT would point to nothing. Your NFT would essentially become a broken web address.</blockquote><h3>InterPlanetary File System</h3><p>Popularly known as IPFS <strong>is a decentralized </strong>protocol and a peer-to-peer network for storing and sharing data in a distributed file system. it loads the content from thousands of peers instead of one centralized server thus eliminating censorship and a single point of failure making it a decentralized alternative to the cloud-based approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fELScF3fMKW5ASCdVvCaFg.png" /></figure><h3>Minting</h3><p>There are two ways of owning an NFT. You can either buy it from somebody or mint it. But what does minting mean?<br>Minting an NFT refers to converting digital files into crypto collections or digital assets stored on the blockchain.</p><p>Minting an NFT creates something completely new. You can mint from an existing project or even convert any form of digital art, music, or video into NFTs on your own. On the contrary, buying an NFT requires paying for an existing item that has already been minted into an NFT.</p><p>An NFT is minted using a smart contract, which assigns the ownership of the NFT to a specific wallet and manages the transferability of the digital asset.</p><h3>Token standards</h3><p>A token standard defines the smart contract and features that the token issued by it has. Both cryptocurrencies and NFTs are tokens.</p><p>Token standards depend on the blockchain the NFT is issued on. Most popular in this league is the Ethereum blockchain which is the host to the largest number of NFTs in the market currently.</p><p>Ethereum’s token standards start with the abbreviation ‘ERC’ which stands for Ethereum Request for Comments. Two ERC standards commonly used for NFTs are:<br>- <strong>ERC-721</strong> — A standard specifically for non-fungible tokens.<br>- <strong>ERC-1155</strong> — A smart contract that works for both fungible and non-fungible assets<br>-Similarly, NFTs on Solana Blockchain use — Solana Program Library (<strong>SPL</strong>) standards.</p><h3>Value</h3><p>There are 4 major components or metrics used to determine the value of an NFT.<br>1) <strong>Utility</strong>: How can the NFT be used? NFTs often are used as tickets to events or as game assets. Sometimes NFTs also act as passes to certain communities.</p><p>2) <strong>Ownership History</strong>: Identity of the issuer and the chain of its ownership.<br>Jack Dorsey(co-founder of Twitter) created an NFT out of his first-ever tweet, which sold for $2.9 million. NFTs issued or owned previously by celebrities usually have higher market value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*lzw8Njlk6R2rbJBlRxk4_A.jpeg" /><figcaption>The famous tweet🥵</figcaption></figure><p>3) <strong>Future Value</strong>: Valuation is driven by scarcity of supply and speculation which tries and determines if the NFT might possibly be an asset or a future investment.</p><p>4) <strong>Liquidity Premium</strong>:<strong> </strong>High liquidity allows access to a higher number of potential buyers/traders and thus increases the value of NFT. for example if an NFT is on ERC-721 it can access a greater market.</p><p>An NFT’s value sometimes also gets inflated because the buyer and their community believe it has value. This is market sentiment-driven value.</p><h3>Owning an NFT</h3><p>NFT platforms usually require buyers to have a digital wallet and cryptocurrencies to pay for the NFTs.</p><p>So the first step naturally would be to create a digital wallet from which you could pay for and store your NFTs. There are multiple options in the market like <a href="https://metamask.io/">Metamask</a>, <a href="https://www.coinbase.com/wallet">Coinbase Wallet</a>, etc.</p><p>Now, most NFTs are sold in ETH but many are sold in other cryptocurrencies too. You can buy and add some of these tokens to your wallet from any crypto exchange such as <a href="https://www.binance.com/en/activity/referral-entry/CPA?fromActivityPage=true&amp;ref=CPA_00KHQO6SB8">Binance</a>, Kucoin, <a href="https://wazirx.com/invite/xbxhyyyc">Wazirx </a>(please research the gas fee and transfer compatibility of the site with your wallet beforehand)</p><p>Some popular NFT market places where you can go buy or just explore NFTs are:</p><ul><li><a href="https://opensea.io/">OpenSea</a> — One of the largest NFT marketplace. It offers a wide range of NFTs, including art, censorship-resistant domain names, virtual worlds, trading cards, sports, and collectibles. It includes ERC721 and ERC1155 assets.</li><li><a href="https://rarible.com/">Rarible</a> — The platform places a particular focus on art assets. Creators can use Rarible to “mint” new NFTs to sell their creations as well.</li><li><a href="https://superrare.com/">SuperRare</a> — A marketplace for people to buy and sell unique, single-edition digital artworks.</li><li><a href="https://foundation.app/">Foundation</a> — Foundation is a specialist platform designed to bring digital creators, crypto natives, and collectors together to move the culture forward.</li><li><a href="https://atomicmarket.io/">AtomicMarket</a> — AtomicMarket is a shared liquidity NFT market smart contract that is used by multiple websites.</li><li><a href="https://www.binance.com/en/activity/referral-entry/CPA?fromActivityPage=true&amp;ref=CPA_00KHQO6SB8">Binance </a>— Binance doubles as a marketplace and also as a wallet you can directly buy cryptocurrencies here. use them to buy NFTs and they would directly be stored on your Binance wallet.</li><li><a href="https://www.binance.com/en/how-to-buy/ethereum">How to buy Ethereum(ETH</a>) on Binance</li><li><a href="https://www.binance.com/en/nft/home">Binance NFT marketplace</a></li></ul><p>Once your wallet is ready and connected to the site you are all ready to go buy your first NFT! The NFT will reflect in your wallet in some time.</p><blockquote>Note: Most NFT marketplaces list already minted NFTs for sale and do not support minting.</blockquote><h3>NFT Flipping</h3><p>Some people buy NFTs for their utility, Some as a form of collectibles but a lot of people also buy NFTs for flipping.</p><p>NFT flipping refers to buying NFTs and selling them at a higher price and thus making a profit in a short-term trade. The more the value of your NFT the greater the chances of you flipping it successfully.</p><p>A lot of people indulge in NFT flipping regularly and make good profits out of it. But it is important to note it is not as easy as it seems. NFT flipping requires strategic planning and good knowledge of the market.</p><h3>Popular NFT collections</h3><p>On NFT marketplaces you can apply numerous filters to find the NFT best suited to your taste. Here are some popular NFT collections you can check out:</p><ol><li><a href="https://opensea.io/collection/boredapeyachtclub">Bored Ape Yacht Club</a></li><li><a href="https://opensea.io/collection/cryptopunks">CryptoPunks</a></li><li><a href="https://opensea.io/collection/doodles-official">Doodles</a></li><li><a href="https://opensea.io/collection/azuki">Azuki</a></li></ol><p>Some other cool <strong>uncensored </strong>but cool NFT collections:</p><p>1) <a href="https://opensea.io/collection/ill-do-it-1">Buy this NFT or I’ll Do it</a><br>2) <a href="https://opensea.io/collection/amberpoopit">Buy this NFT or Amber will poop</a></p><p>So go on and explore to find some cool NFTs!</p><p><strong>P.S: Do not invest in NFTs without concrete research about the NFT in question.</strong></p><h3>References:</h3><p><a href="https://www.designboom.com/technology/buy-jack-dorsey-first-tweet-nft-03-10-2021/">https://www.designboom.com/technology/buy-jack-dorsey-first-tweet-nft-03-10-2021/</a><br><a href="https://docs.nftstars.app/nft-stars/guides/what-are-nft-standards-and-how-to-choose-one">https://docs.nftstars.app/nft-stars/guides/what-are-nft-standards-and-how-to-choose-one</a><br><a href="https://influencermarketinghub.com/nft-marketplace/#toc-2">https://influencermarketinghub.com/nft-marketplace/#toc-2</a><br><a href="https://artessere.com/blog/37-what-does-it-mean-to-mint-an-nft-and-how-do-you-do-it">https://artessere.com/blog/37-what-does-it-mean-to-mint-an-nft-and-how-do-you-do-it</a><br><a href="https://www.finder.com/nfts/nft-collections">https://www.finder.com/nfts/nft-collections</a><br><a href="https://cryptonews.com/news/liquidity-premium-a-driver-of-nft-prices-and-value.htm">https://cryptonews.com/news/liquidity-premium-a-driver-of-nft-prices-and-value.htm</a><br><a href="https://markets.businessinsider.com/news/currencies/crypto-nft-best-selling-non-fungible-tokens-fluf-world-doodles-2022-1">https://markets.businessinsider.com/news/currencies/crypto-nft-best-selling-non-fungible-tokens-fluf-world-doodles-2022-1</a><br><a href="https://www.ibm.com/in-en/topics/smart-contracts">https://www.ibm.com/in-en/topics/smart-contracts</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2601d2443a8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What The Bug- My Bugédex Journey.]]></title>
            <link>https://medium.com/@ananyaagupta/what-the-bug-my-bug%C3%A9dex-journey-675529ed74d6?source=rss-552d0bd11cb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/675529ed74d6</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[students]]></category>
            <dc:creator><![CDATA[Ananyaa Gupta]]></dc:creator>
            <pubDate>Sun, 10 Oct 2021 17:58:39 GMT</pubDate>
            <atom:updated>2021-10-10T17:58:39.149Z</atom:updated>
            <content:encoded><![CDATA[<p>Last Sunday, I attended Bugédex- a workshop on bug bounty organized by <a href="https://csivit.com/"><strong>CSI-VIT</strong> </a>in collaboration with <a href="https://cloudsek.com/"><strong>CloudSEK</strong></a>. It left me pondering and perplexed about the world of cyber security and motivated me to dig deeper into the realms of bug bounty. In this blog I will try to put forward my understandings and all my thoughts on the workshop into carefully crafted words. And though this blog will follow a satire genre (because why not?), I do mean everything I write in all seriousness because as they say, <em>“Satire is especially serious to the satirist”</em>. I hope you can learn through my reflection on the event and enjoy my novice writing skills.</p><p>Like any good event this workshop was divided into 3 parts.</p><h3>The Webinar (12Pm): (The intro and theory session)</h3><p>While building over our curiosity and anticipation Mr. Shahrukh, Mr. Sudipta, and Ms. Sai deep dived us into the intriguing world of bugs.</p><h3>So what are Bugs?</h3><p>A software bug is an error, flaw or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways.</p><p>Just like real world bugs, a technical or software bug may cause inconvenience or hinder your work in ways that are bound to create little annoyance to major fatalities.</p><p><strong>History is witness to a series of huge blunders where these tiny bugs created huge repercussions that caused the human race millions of dollars, data and resources.</strong></p><h3>Some of these were:</h3><p>1) <strong>Mars Orbiter</strong> : in 1999 JPL used metric system while Lockheed Martin Astronautics used English systems. As a result, JPL engineers mistook acceleration readings measured in English units of pound-seconds for a metric measure of force called newton-seconds. The miscalculation in trajectory due to this error led to crashing of the Mars Orbiter which led to a loss of over $327 million as well as all of the collected data.</p><p>2) <strong>Rounding error at Vancouver Stock Exchange</strong>: — in 1982 index started with 1000 points, and where it would have been 1098 a year later, it had dropped to 520.The culprit here was a rounding error. which instead of rounding off they were truncating the decimals for example 523.7628 should be 523.763 but it was being converted to 523.762. with close to 30 million transactions every day, this tiny bug ended up costing millions of dollars</p><p>If these examples didn’t press enough on the importance of bug detection and elimination to you, then I am not sure what will.</p><p>That being said, no program in its initial state is bug free and a bug free state can only be reached by continuous checking and reporting.</p><p>So how do we do that? That’s where the hand on session comes in Which was next in line. Between these sessions we were given a well planned lunch break but after being highly motivated and pumped up by the fascinating explanations I was on my toes the whole time to get my hands dirty while finding some bugs. I was really confident on finding some super serious security issues and ready to eliminate the threats from the tech world. Needless to say, that confidence didn’t last long. Well no surprise there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*ZHME5Nkz-GzYLyw1gKWO1A.png" /></figure><h3>The hands-on session:</h3><p>This is the part where I tried to and failed miserably at catching up with our cyber security wizard Mr. Shahrukh. I am glad that they he patient during the whole process and repeated the steps a number of times till we eventually began to understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iN2P5rrYfPaNZMVCL7C7QA.png" /></figure><p><strong>We used BeVigil (</strong><a href="https://bevigil.com/"><strong>https://bevigil.com/</strong></a><strong>) : BeVigil is The internet’s first and only security search engine for mobile apps.</strong></p><p>We were then told to choose an app and study its vulnerabilities one by one. <strong>BeVigil</strong> has already classified and labelled the vulnerabilities into severity levels, we explored and identified the different kinds of vulnerabilities that the apps faced under the guidance of Sharukh Sir. He showed us how a certain piece of code can be a threat if not encapsulated and hidden properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*2JcYE-TQpR66gSSRc-PMFA.png" /></figure><p>Then he proceeded to show us how to write a crisp and correct report on our findings and DO and DONT rules to make our report more effective.</p><p>We were then encouraged to follow the same steps for a app of our choice and write a report about the same. Which I won’t lie was a bit hard at first but became easier after a series of clarifications and a little help from our mentors.</p><p>He then explained us the Triage process of bug reporting to help us understand ifs and whens of bug reporting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*_Iwt99Jh0yBF3szxVKuD7Q.png" /></figure><h3>Blogging Competition (Also my favorite part UwU):</h3><p>Our thoughts are like scattered stars and blogging helps to put these innumerable stars into beautiful constellation. It puts them into perspective and allows greater understanding. Blogging not only allows the reader to view the event through writer’s glasses but also to learn from their experience.</p><h3><strong>My experience.</strong></h3><p>After browsing through a series of apps and 5 hours later I finally found something worth reporting. You cannot comprehend my feeling of finally being successful!!</p><p><strong>Though bug bounty feels like finding a needle in a haystack in the beginning it becomes a rather rewarding domain slowly but surely.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*MkZ9796ryrSzArjmz6Te_g.png" /></figure><p>This event lit a an interest in me to explore the cyber security domain more and I searched possible career paths and courses related to it aswell. Some interesting careers that lie in the line of cyber sec are:</p><h3>Testers:</h3><p>Testing is done to ensure that the user application is free of bugs, vulnerabilities, unexpected behaviors and bad user experience. Testing is an important part of Software Development Cycle. And thus it’s a testers job to check the software for: Functional &amp; Security Vulnerabilities, Usability and compatibility.</p><h3>Hackers:</h3><p>A hacker wears many hats …</p><p>The class nerd, The Introverted Geek, The Hooded Figure…</p><p>Black Hat</p><p>White Hat</p><p>Grey Hat</p><p>And though the first three are self-explanatory, the latter three refer to the various career path you may choose as a hacker.</p><h3>Black hats: The internet guys your mom warned you about.</h3><p><strong>Referred as: Unethical Hacker or a Security Cracker:</strong> They maliciously search for and exploits vulnerabilities in computer systems or networks, often using malware and other illegal hacking techniques to steal money or data or both.</p><h3>White hats: Basically, the good guys.</h3><p><strong>Referred as:</strong> <strong>Ethical Hackers or a Penetration Tester</strong>. security specialist hired to find vulnerabilities in software, hardware and networks that black hats may find and target. They focus on security and protecting IT system. White hat hacking is legal.</p><h3>Grey hats: The know it all.</h3><p><strong>Referred as: Sharmaji ka beta:</strong> are jacks of both the trades. They can be said to be a Hybrid between Black hat Hackers and White hat hackers. They just act in their self-interest and exercise both illegal and legal methods as the need be.</p><h3>Conclusion</h3><p>So, now if I follow up on my most recent interest of cyber security and manage to make a career out of it or not remains to be seen. But something I am sure of is that it was a great learning experience and I am grateful for the opportunity provided to me by <strong>CSI-VIT, CloudSek </strong>and our very kind mentors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=675529ed74d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>