Steem 백서

Steem

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 5쪽 중 3쪽

te their block signing key. This process is designed to provide the best reliability while ensuring that everyone has the potential to participate in block production regardless of whether they are popular enough to get voted to the top. People have three options to overcome censorship by the top 20 elected witnesses: patiently wait in line with everyone else not in the top 20, or purchase more SP to improve voting power. Generally speaking, applying censorship is a good way for elected witnesses to lose their job and therefore, it is unlikely to be a real problem on the Steem network. 14 Because the active witnesses are known in advance, Steem is able to schedule witnesses to produce blocks every 3 seconds. Witnesses synchronize their block production via the NTP protocol. A variation of this algorithm has been in use for over a year by the BitShares network, where it has been proven to be reliable. Eliminating Transaction Fees Steem goes to great lengths to reward people for contributing to the network. It would be counterproductive to turn around and charge people every time they attempted to interact with the community. Blockchain technology currently depends upon transaction fees to prevent spam. These fees suffer all of the known problems with microtransactions and prevent blockchains from being used for low-value transactions. Truly decentralized applications must offer users the appearance of free transactions if they wish to compete with their centralized alternatives. This paper outlines the approach used by Steem to eliminate the need for fees and thereby enable a wide range of previously untenable decentralized applications. The Problem with Fees Blockchains are decentralized networks where all transactions are broadcast to all peers. Every so often a block that includes some or all of the pending transactions is produced. All blockchains must find a solution to prevent malicious users from consuming all of the available network capacity with worthless transactions. These worthless transactions can prevent other valuable transactions from being processed and ultimately destroy the network. The solution adopted by most blockchains thus far is to charge a minimum transaction fee. A fee of just a few cents is enough to make attacking the network expensive and unprofitable. While this approach solves the spam problem, it introduces new problems. Imagine solving the email spam problem by introducing a small fee on every email: people wouldn’t use email. Micropayments Don’t Work The fundamental problem with charging transaction fees is that micropayments don’t work, especially for low-value user actions. When a fee is charged on every transaction, it limits the types of transactions that a decentralized network can process. Regardless of how rational the argument for the necessity of fees, users still hate the experience of being nickeled and dimed for everything that they do. Imagine if the websites we use every day charged us a fee every time we modified our accounts by changing the password. Users expect certain things to be free. Requiring users to make a decision on whether or not an action is worth a small fee creates anxiety that causes users to leave. A transaction can’t be worth so much as to require a decision but worth so little that that decision is automatic. There is a certain amount of anxiety involved in any decision to buy, no matter how small, and it derives not from the interface used or the time required, but from the very act of deciding. Micropayments, like all payments, require a comparison: “Is this much of X worth that much of Y?” There is a minimum mental transaction cost created by this fact that cannot be optimized away, because the only transaction a user will be willing to approve with no thought will be one that costs them nothing, which is no transaction at all. – Clay Shirky 7 7 Clay Shirky, “The Case Against Micropayments. ” http://www.openp2p.com/pub/a/p2p/2000/12/19/micropayments.html 15 In the world of financial payments, small fees are acceptable because the value of the transaction is extremely high relative to the fee charged, and the buyer has already made a decision to buy. The world of potential blockchain applications is far greater than just financial payments and includes many necessary transactions for which fees are simply unacceptable to users. Systems like BitShares, Nxt, Ripple, Counter Party, and Stellar all allow users to place limit orders on the blockchain; all of them charge users a small fee to perform this action. Later if the user wishes to cancel their order, another fee is charged. Systems like Ethereum take micropayments to a whole new level: charging per calculation. All of these systems struggle to attract new mainstream users for the same reasons that a decentralized search engine would struggle to attract users from Google if it charged a small fee for every search. It doesn’t matter how good the service is, people expect certain things to be free. This is true even if a user ends up paying more overall under a different fee structure. Fees are a Barrier to Entry Any fee creates a barrier to entry for new users. Before someone can experiment with Ethereum they must acquire some ETH tokens. Anyone wanting to build a decentralized application on Ethereum must pass on the cost to their customers. Buying a cryptocurrency is not an easy task and rarely makes sense for amounts less than $10. This means that new users wanting to try out a new decentralized application must first be convinced to part with $10. Changing Fees Over time a network must adjust fees. This can happen due to either an increase in the value of the token or a surge in capacity. Users like predictable fees and guaranteed service. While it is possible to dynamically adjust fees during times of heavy use, the result is a poor user experience. Sybil Attacks Centralized websites prevent spam through rate limiting and some form of ID verification. Even something as simple as reCAPTCHA 8 is sufficient to limit the creation of fake accounts. If someone abuses their account then centralized websites are free to block the account. In a decentralized system there is no direct way to ban users, nor is there a centralized provider that can host a reCAPTCHA and enforce rate limiting of accounts. In fact, the inability to censor users is one of the main selling points of blockchain technology. Full Reserve vs. Fractional Reserve Let’s view a blockchain like an Internet Service Provider (ISP) co-op that owns all of the cables in the town and has a maximum amount of bandwidth that it can provide at any time. People living in the town can buy shares in the ISP and in exchange they are entitled to utilize a portion of the available bandwidth. The ISP has two choices, run a “full reserve” or a “fractional reserve” system. Under a full reserve system each user is only allowed a fraction of the maximum bandwidth proportional to her shares. Because not everyone uses the internet at the same time, the town’s network would be significantly underutilized. 8 reCAPTCHA, Easy on Humans, Hard on Bots. https://www.google.com/recaptcha/intro/index.html 16 Under a fractional reserve system the individual users could utilize more bandwidth than they are entitled to at any given point in time, so long as not everyone uses the internet at the same time. The problem with operating a fractional reserve is that congestion occurs any time too many people wish to use the network at the same time. The ISP needs a way to prioritize bandwidth during congested periods. In the most extreme case, a fully congested network must revert to a full reserve system. The challenge is setting the proper fractional reserve ratio. Bandwidth Instead of Micropayment Channels The solution to the problems with micropayments is in implementing dynamic fractional reserves. Under this model the blockchain will automatically adjust the reserve ratio for the network during times of congestion. The blockchain will set a target utilization that leaves enough headroom for short-term surges in demand. Any time the surges are sustained, the blockchain reduces the maximum bandwidth-per-share. When a surge is over and there is surplus capacity the blockchain can slowly increase the bandwidth-per-share. Bandwidth used by an individual user should be measured over a suitably long period of time to allow that user to time-shift their usage. Users tend to login, do many things at once, then logout. This means that their bandwidth over a short period of time may appear much higher than if viewed over a longer period of time. If the time window is stretched too far, then the reserve ratio will not adjust fast enough to respond to short-term surges; conversely, if the window is too short then clustering usage will have too big of an impact on normal users. In our estimate it should be sufficient to measure the average weekly bandwidth usage of users. Every time a user signs a transaction, that transaction is factored into their own individual moving average. Any time a user’s moving average exceeds the current network limit, their transaction is delayed until their average falls below the limit. Impact of Capacity Blockchain capacity isn’t necessarily capped. It is well within the technological capability of internet infrastructure to increase the Bitcoin block size to 10MB, which in turn will reduce the minimum required balance by a factor of 10. While Bitcoin currently supports about 3 transactions per second, alternative implementations are capable of over 1000 transactions per second. Comparison to Fees If we assume a user with $25 dollars’ worth of BTC makes a transaction once per week and pays a $0.04 fee each time, then they would pay over $2.00 in fees per year. A user would have to earn an 8% rate of return on their $25 just to break even after paying fees. Chances are that users were going to hold their money on the blockchain anyway, so this user with $25 worth of BTC just saved $2 over the course of a year by adopting a rate-limiting approach rather than a fee-based approach. With just $175 they could make a transaction every single day and save $14 per year. Account Creation Steem’s account-based system with publicly known balances simplifies the implementation of the bandwidth- based rate limiting algorithm. Any account with a balance below the minimum required to make one transaction per week would be unable to make transactions. This implies that all new accounts should 17 be funded with at least this minimum balance. It also implies that users wishing to make transactions in smaller amounts can, so long as they hold a larger balance and reuse the account. It is possible for a low-balance account created during a time of low usage to become inaccessible if the network usage picks up. The funds could be recovered at any time by temporarily delegating a larger balance to the account. In order to maintain a reasonable user experience with a minimum number of hung accounts, all new accounts should start out with a balance 10 times the minimum required to make weekly transactions. This way even if demand increases by a factor of 10 the account will remain viable. Any initial account balance would have to come from the user creating the account and not from token creation, due to the potential for Sybil attacks. Justifying Minimum Balances The concept of forcing users to maintain a minimum balance flows naturally from the value of a user. 9 Anyone running a business knows that every single user has significant value. Businesses spend anywhere from $30 to $200 to acquire a user. Sometimes they pay users directly, other times they pay for advertising, and still other times entire companies are bought just for their user base. After a company acquires a user they often given them many free services just to keep them around long enough to monetize them through some other means. Ripple uses a minimum balance 10 that scales with account resource use and requires that new accounts get funded with at least this minimum balance. Currently this minimum balance is about $0.15, greater than the $0.10 we estimated would allow someone to freely make transactions at least once per week. A blockchain can enforce a minimum value per user through the simple process of requiring a minimum balance. Any business that wishes to bring a new customer to the blockchain can pre-fund that user’s account with the minimum balance that would allow them to make transactions. Requiring a relatively large fee ($1.00) to sign up new users will naturally force anyone offering free accounts to vet the quality and uniqueness of each account before registering them with the blockchain. Maintaining a minimum balance is effectively the same as making users pay transaction fees with the interest they could have earned on their balance. The minimum balance is simply the balance required to earn enough interest to pay a fee in a relatively short period of time. Fortunately, the minimum balance required can be as low as a dollar and this is something users can understand and appreciate. The opportunity cost of lost interest doesn’t incur the cognitive cost of a micro-fee and is far more acceptable to users. The STEEM used to pre-fund an account is powered up in the new account (i.e., converted to Steem Power). A portion of the SP used to fund a new account may be delegated from the creator of the account. When a user is delegated SP, they may use the SP for voting and bandwidth purposes as if it were their own, but the ownership of the SP remains with the user who delegated it. A user may remove the delegation at any time. After a cool-down period, the SP is returned to their account. 9 Forbes, Tristan Louis, “How Much is a User Worth?” https://www.forbes.com/sites/tristanlouis/2013/08/31/how-much-is-a-user-worth 10 Ripple, “Reserves. ” https://ripple.com/build/reserves/ 18 Effectiveness Relative to Fees To compare the effectiveness of rate limiting to fees we must consider how the two systems react to intentional network flooding by an attacker. Under Bitcoin, an attacker with $10,000 dollars could disrupt service for an entire day by filling every single block. The same attacker would be unable to disrupt service for even a single block under the dynamic fractional reserve rate limiting approach. If we go to a more extreme case and assume the attacker holds 1% of all coins, then we presume an attacker with $60 million dollars. Such an attacker could deny the Bitcoin blockchain service for 16 years unless the miners increased fees or capacity. Even if fees were raised to $15 per transaction, the attacker could still keep the network flooded for 16 days. Under the rate limiting approach, someone who holds 1% of all coins with the intent to flood the network would achieve their goal for less than 30 seconds. Renting vs. Buying vs. Time Sharing When someone owns a house they expect the right to use the house for free. If a group of people buys a house together, then each can expect the right to use the house proportional to their percentage ownership in the house. A fee-based blockchain is like renting the house from its owners, whereas rate limiting is like a timeshare among owners. If a house is owned by multiple people then those individuals must decide how they wish to timeshare the house. Someone who owns 50% of the house but only uses it one weekend per year might expect to be paid by the individuals who take their unused time. This is the mindset of a fee-based system. On the other hand, someone who owns 50% of the house is speculating that demand for the house will increase in the future and they will be able to sell their stake for more. Any owner who owns more of a house than they use becomes a real estate speculator. With this mindset, rather than collecting rent, they collect appreciation. The value of a share is derived from how much time it can potentially grant its owner. Owning 1% of a house and getting it one weekend per year is the lowest value of a share. However, if half of the shareholders never use their weekend, then the value per timeshare rises to two weekends per year. If those inactive users instead opt to rent their unused time, then it falls back to one weekend per year. If those unused timeshares were sold to people who would use them, then the value of a timeshare would fall by 50%. Unless the rent collected is greater than the fall in share value, the timeshare owners are making an economic miscalculation. Using this rationale we can assume that a system based on fees will be either more expensive for its users or less profitable for its collective owners. An individual small owner may profit by renting out his small time slice, but only at the expense of all other timeshare owners. In effect, the cost of the falling timeshare value is shared among all owners, while the profits are centralized in the single owner who decided to rent his share. We can conclude from this that a blockchain is best served by not applying usage fees at all. If a usage fee were to be charged as an alternative to rate limiting, then it should be the equivalent of buying enough timeshares and committing to hold them long enough to gain the right to use it once. Stated another way, a transaction fee should be equal to the minimum account balance necessary to make one transaction per week and it should be refunded at the end of the week. Assume the minimum account balance is $1 and allows someone to make one transaction per week. If someone with a $1 balance wishes to perform five transactions at once, they will have to increase their balance to $5 for a week either before or after their transactions. 19 In theory a market could form where users can borrow the stake required. In practice it is more efficient for users to simply buy and sell the timeshares necessary to meet their desired usage rate. In other words, the cost of negotiating micro-loans is greater than the cost of maintaining a balance suitable for your maximum weekly usage. Decentralized rate limiting of transactions can enable new types of decentralized applications that were not viable when every use of the application required a micropayment. This new model gives application developers the ability to decide if and when to charge their users for transactions. Performance and Scalability The Steem network is built upon Graphene, the same technology that powers BitShares. Graphene has been publicly demonstrated to sustain over 1000 transactions per second on a distributed test network. Graphene can easily scale to 10,000 or more transactions per second with relatively straightforward improvements to server capacity and communication protocols. Reddit Scale Steem is capable of handling a larger user base than Reddit. In 2015 Reddit’s 8.7 million users generated an average of 23 comments per second, 11 with an average of 83 comments per year per user. There were 73 million top-level posts, for an average of 2 new posts per second. There were about 7 billion up votes, creating an average voting rate of 220 votes per second. All told, if Reddit were operating on a blockchain it would require an average of 250 transactions per second. To achieve this industry-leading performance, Steem has borrowed lessons learned from the LMAX Ex- change,12 which is able to process 6 million transactions per second. Among these lessons are the following key points: 1. Keep everything in memory. 2. Keep the core business logic in a single thread. 3. Keep cryptographic operations (hashes and signatures) out of the core business logic. 4. Divide validation into state-dependent and state-independent checks. 5. Use an object oriented data model. By following these simple rules, Steem is able to process 10,000 transactions per second without any significant effort devoted to optimization. Keeping everything in memory is increasingly viable given the
프로젝트로 돌아가기