<?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 Scottworks on Medium]]></title>
        <description><![CDATA[Stories by Scottworks on Medium]]></description>
        <link>https://medium.com/@scottworks?source=rss-3f0a8aee7765------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Scottworks on Medium</title>
            <link>https://medium.com/@scottworks?source=rss-3f0a8aee7765------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:21:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@scottworks/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[5 ways to find problems like a pro]]></title>
            <link>https://medium.com/@scottworks/5-ways-to-find-problems-like-a-pro-7673025d0e47?source=rss-3f0a8aee7765------2</link>
            <guid isPermaLink="false">https://medium.com/p/7673025d0e47</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[entrepre]]></category>
            <dc:creator><![CDATA[Scottworks]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 02:59:39 GMT</pubDate>
            <atom:updated>2020-01-06T02:59:39.693Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-iGVLn3wuMD0GKnY" /><figcaption>Photo by <a href="https://unsplash.com/@rayhennessy?utm_source=medium&amp;utm_medium=referral">Ray Hennessy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Most of us are familiar with the traditional story of a successful entrepreneur. We tend to associate this type of person with someone who has a ton of domain expertise, passion around the industry or technology, a disruptive vision of the future, and of course an astronomical company valuation. While this is certainly true in some cases, by no means is this the standard for entrepreneurs. In the age of the tech industry CEOs and VC giants, people seem to forget that there are plenty of opportunities to solve small but impactful problems that people will pay for! The <a href="http://indiehackers.com/">Indiehackers.com</a> community is a great example of how simple ideas can be transformed into revenue-generating products. While you may not become a millionaire from this alone, it may certainly be enough to quit your day job or supplement your current income.</p><p>For the past 2 years, I have invested a lot of time into “problem finding”, and validation, while I am usually never short on potential problems, the assumptions can be very difficult to validate depending on the problem I have identified. In order to successfully validate an idea you need to be able to test your assumptions gathered during the problem-finding stage:</p><ul><li>Who is the target market? How accessible is this group?</li><li>Is there a solution for this problem already?</li><li>Is the outcome of the problem measurable?</li><li>What are your biggest technical challenges?</li><li>Will people understand the solution?</li></ul><p>In this post I will dive into different techniques I have personally used and find to be extremely useful for finding product ideas. I will later go more in-depth into idea validation in a later post. The following techniques are things I do to identify problems that you can be validated later on. This is the very first step in developing a product, it’s also one of the most creative steps, so have fun, and learn a ton!</p><h3>1) Pay Close Attention</h3><p>You should probably be doing this already, but when you’re talking to family, friends, co-workers, enemies, etc, pay close attention to what they say. If you’re following along you can identify where there is friction associated with achieving some outcome. By being patient and interested in someone you can organically identify a challenge they have faced, what’s even more interesting is you can see the emotion someone has when discussing that particular pain point. If someone who is usually reserved is livid about something then that may tell you that this is a problem worth digging into. Albeit emotion is tricky, so take it with a grain of salt. It’s important to keep in mind that in many cases people won’t actually complain to you about their problems for various reasons, perhaps they don’t want to burden you with their problems, or they don’t realize that thing can be improved significantly. In these cases, the person may actually gloss over this part of the conversation, dig into it, ask questions, then ask follow up questions until you understand why that thing is the way it is or have enough information to follow up on your own.</p><h3>2) Try it Yourself</h3><p>Something I tried recently which lead me down an interesting path was trying something new. I never really wanted to be a YouTuber but I was interested in seeing what white-space existed in that market. What I decided to do was create a YouTube channel, this lead me towards searching for music to use in my videos I couldn’t find any suitable market places. After multiple searches on Google I wasn’t really convinced there were any great services out there that provided all of these. My next move was to post some questions about this in Reddit, I received tons of responses from various communities that described how content creators behave when “buying” music, this is arguably one of the most important behaviors to understand when doing market research. I also learned of some music providers (a few really good ones too) that I hadn’t found previously. After a few days I not only found a problem but I also was able to make a decision on whether or not it would be worth solving.</p><h3>3) Join a Community</h3><p>If there is one thing I am pretty good at, it’s noticing trends, if you have this ability to spot new market opportunities you may be witted enough to take advantage of them as well. While you may not be a live streamer, a Shopify store owner, or an Uber driver there likely are online communities, meetups, or chat groups that you can tap into. It’s in these communities that you can get an unfiltered look into these markets, understand where things are headed, talk to potential customers, and connect the dots. Forums like Reddit are a great place to experiment with this, again, I wouldn’t recommend writing a post titled “What’s your biggest pain point?”, rather I would be patient, ask pointed questions, and keep a close eye on issues that seem to be recurring.</p><h3>4) Get into Consulting</h3><p>One of the last things you can do is some consulting work. This may be something you already do before you roll your eyes though, hear me out. Back in 2018 I started a company called Testify, it was my first go at entrepreneurship, many mistakes were made and unsurprisingly it did not end as I wanted. Where I failed fast, I also learned a substantial amount about product development. One of those learnings was the importance of talking to customers for the fact that they provide product validation and a paycheck. The idea here is simple, if you build something for one person, one time, its a solution. If you build something similar for multiple customers the chances that you have something more people need is high, the product has been validated, the idea given to you by a customer. I don’t think this is something most people are suited for but I can guarantee that some folks out there who are already doing consulting have multiple clients operating within the same vertical, so why not take advantage.</p><h3>5) Do what has been done, just better…</h3><p>If you go on the Google Play or Apple Store there are millions of Habit Tracker, Journaling, and Financial Planning apps, many of which are either paid or have paid features. From what I have seen, the biggest difference is in the UI/UX and a few features that add enough value to justify paying for the app. There are always opportunities to be found in niche markets as well after all your biggest challenge is capturing a segment of the market (early adopters), this can be people of a certain age, profession, nationality, etc. The trick here is to invert the solution by asking “what problem does this app solve?”, once you’ve successfully answered that question you can start asking more questions and develop your list of assumptions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7673025d0e47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Monolith to Microservice; Adventures in Node.js]]></title>
            <link>https://medium.com/@scottworks/from-monolith-to-microservice-adventures-in-node-js-4423618b2961?source=rss-3f0a8aee7765------2</link>
            <guid isPermaLink="false">https://medium.com/p/4423618b2961</guid>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[monolithic]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Scottworks]]></dc:creator>
            <pubDate>Fri, 02 Aug 2019 01:19:55 GMT</pubDate>
            <atom:updated>2019-08-02T03:12:21.380Z</atom:updated>
            <content:encoded><![CDATA[<h3>Clustering Large Sets of Data w/ Async Operations; Adventures in Node.js</h3><p>Before I get started I want to provide a clear disclaimer, by no means am I an expert in Microservices or Backend Architecture. I’m just someone who can be extremely curious when it comes to things that pique my interest. This article is meant to document my findings rather than discussing Node.js from a conceptual standpoint, I posted some links below that do the latter.</p><p>I was recently faced with an interesting challenge, I needed to write a REST API that would take a PDF file containing user information, derive GPS coordinates for the given address, group the items by a common property, then return the response.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ceef345437dfacaf0daec044b342df39/href">https://medium.com/media/ceef345437dfacaf0daec044b342df39/href</a></iframe><p>Can you guess how long it would normally take a list of 1000 items to be processed? The answer is 30… seconds. That’s a fairly long time, more than 1000 and we actually started seeing significantly long delays. This is when I started wondering how I could optimize my service. After a brief conversation with the Geocoder API company, I decided to explore clustering in Node.js. For those who aren’t familiar with the <a href="https://nodejs.org/dist/latest-v10.x/docs/api/cluster.html">Cluster Module</a> in Node.js, it is a way of forking multiple child processes that each have their own instance of the Node.js runtime running in parallel. Node.js by default is single-threaded meaning that if you have a multi-core processor Node.js is only occupying one processor, with the cluster module you can run an instance on each core. So what problem does clustering solve in this case? My rationale at the time was that by splitting the load across several Node.js instances would actually speed things up a bit. So I spent a few days learning as much as I could about the cluster module and had a bunch of fun scaling up a small demo project. The result was that I ended up creating a second REST API that would handle the calls to the Geocoder API, yes, I finally did it, my first microservice 😁.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61465fcc51a8d5fb64989a533b84a720/href">https://medium.com/media/61465fcc51a8d5fb64989a533b84a720/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9750801652cbd62d0f98a721c4d62d08/href">https://medium.com/media/9750801652cbd62d0f98a721c4d62d08/href</a></iframe><p>After running some quick benchmark testing with file sizes ranging from ~100B to 1MB I found out that the response was 11-19% faster with clustering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*9e-vTXxU6db6U82ySmnTGg.png" /></figure><p>To be honest, I wasn’t really happy with this modest performance gain, I was expecting a significantly lower response time and unfortunately, my responses were still taking up to several minutes (omitted although this was probably a mistake on my end). I was also a bit perplexed at the high standard deviation that was seen in the case of the 1.1MB file processed with clustering. Compared to the same file size without clustering the standard deviation was 40% higher! This is clearly very inconsistent as smaller file sizes trend in the opposite direction. Since my problem was really with large file sizes I decided to look into the 1.1 MB case a bit further. I started logging the time it would take each cluster to complete its API call. After some investigating, I found out that the slowest cluster would sometimes have a significant delay, for example, clusters 1, 2, and 3 may have a response time in the range of 10–15 seconds for a large file while cluster 4 would have a response time of 20 seconds or more. This made me realize that it wasn’t necessarily Node that was the bottleneck but rather the API itself! Going forward I may rewrite the service a few different ways, one of those being that the backend will write to a database rather than returning JSON to the client. When the service finishes processing it will notify the client either through a WebSocket connection or push notifications (still figuring this bit out). Overall I had a ton of fun learning something new about Node.js and I hope you did too.</p><p>Resources:</p><ul><li><a href="https://lucasfcosta.com/2015/09/12/NodeJS-Multithreading-and-Its-Cluster.html">Multithreading in Node.js</a></li><li><a href="https://bytearcher.com/articles/parallel-vs-concurrent/">Parallel vs concurrent in Node.js</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4423618b2961" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3/ Meme Bounty: Avoiding Common Attacks]]></title>
            <link>https://medium.com/@scottworks/3-meme-bounty-avoiding-common-attacks-9fcadfb7a8ae?source=rss-3f0a8aee7765------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fcadfb7a8ae</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum-blockchain]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[token-economy]]></category>
            <dc:creator><![CDATA[Scottworks]]></dc:creator>
            <pubDate>Mon, 27 Aug 2018 04:47:52 GMT</pubDate>
            <atom:updated>2018-08-27T04:47:52.427Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7qDkDX9kuwOOtpk_fY4Xg.jpeg" /></figure><p>This is a series that dives into the inner workings of the Decentralized Application Meme Bounty:</p><ul><li><a href="https://medium.com/@scottworks/1-meme-bounty-introduction-33964f51d677">1/ Meme Bounty: Introduction</a></li><li><a href="https://medium.com/@scottworks/2-meme-bounty-design-pattern-decisions-23f33a7a15da">2/ Meme Bounty: Design Pattern Decisions</a></li></ul><h3>External Calls</h3><p>Fortunately there are not many instances where an external call attack could take place and have negative effects on other users. The only function that extracts funds from the contract is the withdrawFunds() function.</p><p><a href="https://github.com/ScottWorks/Meme-Bounty/blob/908ad94ae870367c7366db87d35c379e00794c23/contracts/Bounty.sol#L420-L457">ScottWorks/Meme-Bounty</a></p><p>As mentioned in <a href="https://medium.com/@scottworks/2-meme-bounty-design-pattern-decisions-23f33a7a15da">2/ Meme Bounty: Design Pattern Decisions</a> funds are distributed using the Pull Over Push pattern thus limiting the extent an external call can influence the contract. This function also utilizes the .send() call which has a gas limit of 2,300, injecting malicious code would likely result in a failed transaction.</p><h3>Race Conditions</h3><h4>Re-Entrancy</h4><p>As mentioned before the withdrawFunds() function was fairly guarded against external call and re-entrancy attacks. It also happens to be the only function that makes any external calls as well.</p><h4>Cross-Function Race Conditions</h4><p>The attack surface in this contract is relatively small with respect to race conditions. There are functions that change the state of the same variables however the functions are isolated such that they can only be called a certain times with zero or minimal overlap.</p><h3>Denial of Service (DoS)</h3><h4>Throw</h4><p>Require statements were used liberally throughout the contract to prevent instances where unexpected failures could potentially tie up the contract indefinitely.</p><h4>Gas Limit</h4><p>While working on the contract I began to realize that the usage of for-loops that search through arrays could become very costly as Bounties grow. In future developments it would be much wiser to leverage Doubly-Linked Lists which are far more efficient at keeping track of information. It was also noticed that not placing limits on form inputs i.e. Description, Duration, etc can have negative consequences in gas consumption. For example an extremely long Description string possibly consume more gas than provisioned or waste gas provided by the user.</p><h3>Timestamp Dependence</h3><p>In the future it would likely be a better solution to utilize an oracle to provide a GMT timestamp rather than relying on the block timestamp. It was noted that this did cause an issue during testing, for an unknown reason the local blockchain instance was out of sync with the current time by 7 days. Although this happened during testing it is unlikely to happen on the main network but still demonstrates a vulnerability. Additionally the impact of would be relatively low which was the justification for not using an oracle in the first place.</p><h3>Integer Overflow/ Underflow</h3><p>There are multiple instances where the SafeMath library can be implemented to prevent Overflow/ Underflow instances, in future developments these functions will be leveraged. Additionally limits on the values being input into the contract to reduce, this would probably be beneficial in more than one way as there is no reason that someone should be able to set very low/ high duration&#39;s or Ether amounts.</p><h3>Forcibly Sending Ether to a Contract</h3><p>A fallback function was not created, and the amount in Ether is calculated based on variables that are independent on the amount of Ether in the contract. If Ether was forcibly sent to a Bounty it would be stuck, creating a fallback function that refunds the Ether would be the best way to handle this situation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fcadfb7a8ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2/ Meme Bounty: Design Pattern Decisions]]></title>
            <link>https://medium.com/@scottworks/2-meme-bounty-design-pattern-decisions-23f33a7a15da?source=rss-3f0a8aee7765------2</link>
            <guid isPermaLink="false">https://medium.com/p/23f33a7a15da</guid>
            <category><![CDATA[token-economy]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[Scottworks]]></dc:creator>
            <pubDate>Mon, 27 Aug 2018 01:20:10 GMT</pubDate>
            <atom:updated>2018-08-27T03:45:30.687Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckxaX4Nf_o6bNNoJYsMoVg.png" /></figure><p>This is a series that dives into the inner workings of the Decentralized Application Meme Bounty:</p><ul><li><a href="https://medium.com/@scottworks/1-meme-bounty-introduction-33964f51d677">1/ Meme Bounty: Introduction</a></li><li><a href="https://medium.com/@scottworks/3-meme-bounty-avoiding-common-attacks-9fcadfb7a8ae">3/ Meme Bounty: Avoiding Common Attacks - Courtney E. Scott - Medium</a></li></ul><h3>Contract Factory</h3><p>Before beginning the contract development I realized that having a single contact keeping track of the state of every single bounty would be a serious problem. To avoid such a head-ache I leveraged the common pattern of the Contract Factory, where a parent contract spawns child contracts. In my case the parent contract would be the Bounty Board, and the child contracts would be the Bounty.</p><h3>Commit-Reveal Voting</h3><p>When voting on the blockchain it is important to keep in mind that votes being cast are visible to the public. To work around this the Commit-Reveal Voting scheme is often used. The way it works is that during the Commit stage a hash is created on the client containing some commonly known identifier indicated who the vote is for and a salt or randomly generated value. This hash is submitted to the smart contract and stored on the the blockchain. Without the salt it is virtually impossible (or at least very difficult) to figure out who that person voted for. After the Commit stage ends, the voters are free to reveal who they originally voted for by submitting the same identifier and salt that was originally used client side, in this case these values will be hashed in the smart contract then compared to the hash that was originally submitted. If the hashes do not match the vote is rejected.</p><p>I applied this same pattern, in my case the identifier was the Challenger address and the salt was simply a randomly generated number.</p><ul><li><a href="https://github.com/ScottWorks/Meme-Bounty/blob/908ad94ae870367c7366db87d35c379e00794c23/contracts/Bounty.sol#L359-L374">ScottWorks/Meme-Bounty</a></li><li><a href="https://github.com/ScottWorks/Meme-Bounty/blob/908ad94ae870367c7366db87d35c379e00794c23/contracts/Bounty.sol#L377-L410">ScottWorks/Meme-Bounty</a></li><li><a href="https://karl.tech/learning-solidity-part-2-voting/">Learning Solidity Part 2: Commit-Reveal Voting</a></li></ul><h3>Time Locking Functions</h3><p>As one can imagine it would not make any sense to use a Commit-Reveal pattern if there was no restriction on when votes can be revealed. Additionally there were other factors that made it important to impose time restrictions on any functions that would be encompassed in the UI on the client-side. Such factors include the ability to submit challenges, and perform withdrawals, this functionality permits restriction as users could simply use the app as it was not intended resulting in loss of funds or potentially causing other unforeseen problems. The solution I came up with was to create a series of function Modifiers that would restrict function calls outside of the permitted times.</p><p><a href="https://github.com/ScottWorks/Meme-Bounty/blob/908ad94ae870367c7366db87d35c379e00794c23/contracts/Bounty.sol#L73-L116">ScottWorks/Meme-Bounty</a></p><p>The times are based on the duration’s set by the Bounty Posters when they initially create the bounty. Please note that the Reveal stage is set to a 5 minute limit for Development/ Testing purposes. In production this would be a default of 24 hours, minimum.</p><h3>Pull Over Push</h3><p>In the world of smart contracts we must assume everyone is a bad actor, the reason being is because there is no ability to verify someones intentions before they interacts with the contract. The power of automation and autonomy is both a gift and a curse in the Blockchain industry. External calls are a potential attack vector that have been exploited in the past. When it comes to transferring funds it is highly recommended to have the recipient initiate this process rather than having the contract do it automatically. The reason for this lies partially in the fact that the control flow is no longer determined by the called contract, if an external contract calls another contract the control flow is now determined by the external contract. As a result it is possible for errors to occur that are so bad that the called contract becomes locked from some error, trapping funds.</p><ul><li><a href="https://github.com/ScottWorks/Meme-Bounty/blob/908ad94ae870367c7366db87d35c379e00794c23/contracts/Bounty.sol#L420-L457">ScottWorks/Meme-Bounty</a></li><li><a href="https://github.com/ethereum/wiki/wiki/Safety#favor-pull-over-push-for-external-calls">ethereum/wiki</a></li></ul><h3>Emergency Stop</h3><p>Having some type of emergency stop is an important feature for many smart contracts in the event some malicious attack does occur, having some type of safe guard maybe the only way to prevent a major loss in funds. In the case of Meme Bounty an emergency stop was employed to allow Bounty Posters to stop user-interactions at any stage. Ironically this emergency stop can be used with malicious intent by the Bounty Poster as well. In the future restrictions on how the emergency stop can be used will be added. These restrictions can be that the emergency stop can only be used if X% amount of Ether has left the contract, or even require the permission of a group of master accounts.</p><p><a href="https://github.com/ScottWorks/Meme-Bounty/blob/908ad94ae870367c7366db87d35c379e00794c23/contracts/Bounty.sol#L182-L193">ScottWorks/Meme-Bounty</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23f33a7a15da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1/ Meme Bounty: Introduction]]></title>
            <link>https://medium.com/@scottworks/1-meme-bounty-introduction-33964f51d677?source=rss-3f0a8aee7765------2</link>
            <guid isPermaLink="false">https://medium.com/p/33964f51d677</guid>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[token-economy]]></category>
            <dc:creator><![CDATA[Scottworks]]></dc:creator>
            <pubDate>Sun, 26 Aug 2018 22:30:18 GMT</pubDate>
            <atom:updated>2018-08-27T03:44:56.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*lRCzfPKIdZA1hxp6otjW7A.jpeg" /></figure><p>This is a series that dives into the inner workings of the Decentralized Application Meme Bounty:</p><ul><li><a href="https://medium.com/@scottworks/2-meme-bounty-design-pattern-decisions-23f33a7a15da">2/ Meme Bounty: Design Pattern Decisions</a></li><li><a href="https://medium.com/@scottworks/3-meme-bounty-avoiding-common-attacks-9fcadfb7a8ae">3/ Meme Bounty: Avoiding Common Attacks - Courtney E. Scott - Medium</a></li></ul><h3>What Is Meme Bounty?</h3><p>Memes have quickly become a source of entertainment for everyone living in the internet age. Everyday new meme formats are created and thousands of meme creators publish their content to platforms like Reddit, Imgur, Facebook, etc. These platforms allow users to upload content and provide ranking systems and SEO for popular memes, this in-effect only does two things. Boosts the creators internet fame, and drives more traffic to the platform. The former is a benefit that is incredibly difficult to capitalize on, a creator would need to effectively dedicate a lot of their own time and energy into creating memes before capturing any value (if they ever intend to do so), whereas in the latter case platforms are designed to capture value from millions of popular threads while operating at scale. This seems a bit one-sided which is why I created meme bounty. Meme bounty aims to provide a monetary incentive to meme creators and meme curators alike.</p><p>Meme Bounty consists of three main players; Bounty Posters, Challengers, and Voters. As a Bounty Poster I can create a new Bounty for a specific type of Meme, or describe a new Meme format. After the bounty has been posted Challengers will upload their challenge to IPFS, which will return a URL that is stored into the Ethereum blockchain. Finally Voters will go through a process of submitting up-votes in the Commit and Reveal stages (explained in 2/ Meme Bounty: Design Patterns). At the end of the Reveal stage the winner is determined, the winning Challenger will be able to withdraw their earnings. Voters who staked Ether on the winning challenge will be returned their original deposit plus the deposits of those who staked Ether on losing challenges.</p><h3>Project Inspiration</h3><p>This idea is based on the concept of Token Curated Registries, one of the many Crypto-Economic Primitives that have arisen over the past year. The top-level concept of curating content through votes was a source of inspiration. while this is how other platforms currently operate there is no penalty for being wrong and there are no repercussions for vote spamming. Applying a cost to voting is the innovation of TCR’s however there are a number of issues including vote memeing (not related to actual memes), objectivity, and reputation.</p><p>There is no doubt that Meme Bounty has all of these issues, in fact vote objectivity is non-existent whether or not you “like” something is completely subjective and therefore many problems can and will arise from this. My goal in this project was not to try to solve any of these issues but to explore the concept while practicing concepts I have learned with regard to Decentralized Application Development. For more information on TCR’s please see the reading list below:</p><ul><li><a href="https://medium.com/@ilovebagels/token-curated-registries-1-0-61a232f8dac7">Token-Curated Registries 1.0</a></li><li><a href="https://medium.com/@simondlr/city-walls-bo-taoshi-exploring-the-power-of-token-curated-registries-588f208c17d5">City Walls &amp; Bo-Taoshi: Exploring the Power of Token-Curated Registries</a></li><li><a href="https://medium.com/@simondlr/continuous-token-curated-registries-the-infinity-of-lists-69024c9eb70d">Continuous Token-Curated Registries: The Infinity of Lists</a></li><li><a href="https://medium.com/@maxbronstein/introduction-to-token-curated-registries-e2699f2270cd">Introduction to Token Curated Registries</a></li><li><a href="https://medium.com/paratii/token-curated-playlists-1-thoughts-on-staking-and-consumer-applications-2a50bc837a94">Token curated playlists #1: thoughts on staking and consumer applications</a></li><li><a href="https://blog.relevant.community/tcr-design-flaws-why-blockchain-needs-reputation-c5771d97b210">TCR Design Flaws: Why Blockchain Needs Reputation</a></li></ul><h3>Meme Bounty Rules</h3><ol><li>Interactions are time-gated in stages; Challenge, Commit, Reveal, Withdraw. Actions outside of their stage are not allowed and therefore restricted.</li><li>Each account is permitted to make one challenge.</li><li>If two challenges receive the same number of votes, the challenge submitted earliest will be the winner.</li><li>By default there is a 5 minute delay between the Reveal and Withdraw stages. This is only for Development and Testing purposes.</li><li>There are no limits on the number of up-votes per user</li></ol><h3>How To Play</h3><p>Once the application has been successfully launched using the steps provided <a href="https://github.com/ScottWorks/Meme-Bounty#installation">here</a>, you will be presented with the landing page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*vb_WnzNxQRAOS-YCEQdDIg.png" /></figure><p>After we select the plus button next to “Bounty Board” the bounty form will appear. I have been working with React.js all year so I want to see some memes for it…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*RPNUjX8UYr-mvCuqr1ulog.png" /></figure><p>After the form has been completed and submitted MetaMask will request that I sign the following transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*DmJo5F2cmbhLuYkd4TJCtQ.png" /></figure><p>The new bounty will appear on the Bounty Board with the status and details pertaining to that specific bounty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*dLb7hUjHgtSkzs5eOOOOLA.png" /></figure><p>After logging into a different account, I uploaded a submission to IPFS which returns with a hash that can be used to locate the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*zh7wf4vqYtW-p0QfyIFcew.png" /></figure><p>I added two different memes, from two different accounts (the first one is my own creation).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*RDVByfDh6aiNMbEHIFf1AA.png" /></figure><p>When the Challenge Stage has ended the Commit Stage will begin. Now it is time to add some up-votes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*6EWqqpfU2ARGvEbvuzuAwQ.png" /></figure><p>I really like my own meme so I will upvote it three times from a separate account. The other meme isn’t bad either (I’ll admit I’m a Will Ferrell fan), so I will add one up-vote to it as well from a separate account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*l9hOmYoiogGCCzYVWJ2iVA.png" /></figure><p>The Account address, Challenge address, and salt for each up-vote are stored in the browsers Local Storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*4SzuIrtNIFiWAC_IjPtxGg.png" /></figure><p>Once the Commit Stage has finished the Reveal Stage is active.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*A4Bh8XRJValmBLeFGenLOw.png" /></figure><p>Selecting the “Reveal Upvotes” button will take all of the Challenger address/ Salt combinations and send them to the smart contract where they are hashed again and compared to the stored hash. If they match an up-vote is cast in favor of the Challenger corresponding to the address. Please note that MetaMask will ask you to sign two transactions per vote, one which pays for the vote itself and another covering the gas cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*oxKwy6H_X2gumHwwCTMhtA.png" /></figure><p>The data stored in Local Storage is also updated to show the number of up-votes had been cast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*KdodY-sMkIbM1SzY6I69Nw.png" /></figure><p>Finally, the Withdrawal Stage has arrived, time to claim earnings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*txFiZ7DHERFWsmyLitdx4A.png" /></figure><p>It is important to note that as a Voter the Withdraw will require you to sign each withdrawal as the client is requesting a withdrawal from the smart contract for each vote that had been cast before. If you did not vote for the winning challenge MetaMask will return with an error and you will not be able to withdraw funds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*AU1j53e6BqIJP_u3Yjh2PQ.png" /></figure><p>We came out on top in this case, however if the cost per vote is very low it is possible that the gas costs will far outweigh any earnings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*hESnyINcHyddHqI3TbUl1A.png" /></figure><p>The Challenger has been rewarded for their wonderful meme contribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*7M47_gO5wfmwUcYFqdBkmw.png" /></figure><p>Local Storage is zeroed out so that the Voter cannot make the mistake of requesting a withdrawal again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*GQCN7OHOvO_wHZPbWqhckQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33964f51d677" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>