Emercoin Implements Solution To Reduce Blocksize Inflation

Published at: Jan. 15, 2016

A very controversial problem today in cryptocurrency is the idea of “blocksize”, which has become unaddressed in the field over the past year. With concern growing over blockchain inflation and how well this technology will be able to scale, cryptocurrency Emercoin has taken a proactive approach and has granted Cointelegraph exclusive access to their solution.

Every cryptocurrency can only spend the entire Unspent Transaction Output (UTXO) when making a transaction. When a wallet contains many past transactions and needs to make a new outgoing transaction (payment), the wallet will select the best subset of suitable UTXO's to generate the payment. A model of this creative logic is as follows:

Number of possible subsets is 2N, where N is the number of available  UTXOs. Therefore, if the wallet contains more than ~20 UTXOs, it will be practically impossible to check all of them and find the optimal subset of UTXOs to use.

The Current Solution

Bitcoin and many other cryptocurrency wallets use a stochastic approach for selecting an optimal subset of UTXOs. In this algorithm, the wallet performs 1000 attempts at random UTXO selections. A subset with a minimal amount is then used to fit the output transaction. Afterwards, a payment transaction is generated with 2 outputs: A payment output and a change output. The probability of finding the optimal solution where the sum of UTXO subsets exactly matches the output value is extremely low. Emercoin has estimated the probability to look like (approximately formula):

(Nfit * Nattempts) / (2N).

Where:

N is the number of UTXOs,

Nfit is the number of possible optimal transactions (without change),

Nattempts is 1000 for the current Bitcoin wallet code

A More Efficient Solution Is Needed

In the current implementation, there is a high probability that the optimal subset of UTXO will be missed. As a result, an unnecessary second UTXO is generated and added into the transaction, increasing the size of the transaction. As the number of additional active UTXOs increases, so does the size of the underlying blockchain. This produces the dreaded blockchain inflation the industry is working so hard to find a solution for.

Additionally, this approach generates a huge volume of UTXOs with trivial values, also known as "gold sand"  or "dust". In aggregation, these are considered a type of spam and are generally undesirable.  With blockchain technology adoption increasing exponentially, the world is in need of a better method to address UTXOs.

The project is heavily dependent upon the use of dynamic programming. What is dynamic programming as used in this solution? Dynamic programming is a very powerful technique to solve a particular class of problems. It demands very elegant formulation of the approach and simple thinking and the coding part is very easy.

Emercoin’s Solution

Emercoin looks for areas of opportunity within the industry and brings a forward thinking, proactive mindset towards blockchain development and innovation. Our most recent innovation is the Transaction Optimizer, which is an algorithm that selects the optimal subset of Unspent Transaction Outputs (UTXO) for a new outgoing transaction (payment).

If an exact UTXO subset exists for any given amount output, this subset will always be found by the Transaction Optimizer and utilized to complete a new transaction. The additional and unnecessary second UTXO is no longer being generated, reducing the amount of information being input into the transaction on the blockchain. The Optimizer uses a dynamic programming approach and requires:

O(V) memory and O(V*N) time, which is much more optimized than the current O(2N)

Where:

V is the value of the TX output.

The Optimizer can also efficiently utilize existing "gold sand" and "dust" transactions, further reducing the blockchain size and "cleaned up". The Transaction Optimizer code is open source, and available on the official Emercoin Github for analysis and use in other cryptocurrencies and blockchain platforms.

Oleg Khovayko, CTO of EmerCoin, told Cointelegraph:

“This optimizer saves memory for blockchain. We estimated, BC memory saving about ~5..10%. Not so much, but it is free. and, of course, this will save network traffic, too.”

Emercoin’s Results

Emercoin has been successfully using the Transaction Optimizer on the Emercoin blockchain now for several months. The results are impressive and have reduced the blockchain size due to the decrease in the size of all transactions. There is now a solution for Bitcoin and every other cryptocurrency in the World to use to combat blockchain inflation and we encourage all of our partners in the industry to adopt this free, revolutionary innovation.

“We are planning to expand the project toward the "real world" - create and provide services to help people out of coin cluster. We're working to unlock the real power of blockchain, and use it not for exchange "credit units" only, but for other applications, also.” said Khovayko.

For examples of Emercoin's Transaction Optimizer, please see the following transactions via the Emercoin Blockchain Explorer. Lastly, you can see a recent example of all optimized transactions on the Emercoin blockchain. Emercoin is surely saving blocksize slowing and in small sums, but it is free space that wouldn't have been there otherwise.

We hope that you like the companies that were mentioned in this article. Find them in our ratings and vote for your favorite.

Tags
Related Posts
Price of EmerCoin Doubles Following Its Partnership With Microsoft
Software giant Microsoft and the recently released cryptocurrency EmerCoin have officially formed a partnership. This partnership will minimally span 2016 and will aim at further developing what Microsoft Azure is calling “Blockchain as a Service”. Together they will work on innovating the field and developing scalable products for their users. A notable effect is the price of EmerCoin, which doubled 1 day after the announcement of the partnership. What is EmerCoin? The partnership has had immediate positive effects for EmerCoin, particularly where its value is concerned. EmerCoin’s market cap is currently around 3 million US dollars, with EmerCoin trading for …
Blockchain / Jan. 9, 2016
Transaction fees, explained
What factors contribute to transaction fee sizes? The two main factors affecting fees are the size of a transaction, and demand for block space. Given that some networks can only contain a limited amount of data in each block, miners or validators are restricted on the number of transactions they can include. When there are many users sending crypto funds simultaneously, demand for block space increases, and there are more transactions waiting for confirmation. Sometimes, demand for block space can get so high that networks experience congestion, and fees surge to unsustainable levels. Larger transactions require more space in the …
Blockchain / Nov. 2, 2020
Bitcoin’s bottom might not be in, but miners say it ‘has always made gains over any 4-year period’
Your favorite trader is saying Bitcoin (BTC) bottomed. At the same time, the top on-chain indicators and analysts are citing the current price range as a “generational buy” opportunity. Meanwhile, various crypto and finance media recently reported that Bitcoin miners sending a mass of coins to exchanges are a sign that $17,600 was the capitulation move that pins the market bottom. There’s so much assurity from various anon and doxed analysts on Crypto Twitter, yet Bitcoin price is still in a clear downtrend, and the metrics don’t fully reflect that traders are buying every dip. A critical component of BTC …
Blockchain / June 28, 2022
What is a cryptocurrency mining pool?
In the early days of Bitcoin (BTC), crypto enthusiasts only required a basic personal computer with an internet connection to generate new BTC tokens through a distributed computing process known as mining. However, with more people chasing the same number of block rewards, Bitcoin’s mining process has become more challenging with time. In fact, the quantum of rewards will progressively reduce by half every four years, making it less rewarding for individual miners who will need to allocate greater computational resources with time. Available on blockchain protocols that employ a proof-of-work (PoW) consensus mechanism, this mining process requires application-specific integrated …
Blockchain / Sept. 24, 2022
How the Ordinals movement will benefit the Bitcoin blockchain
Bitcoin (BTC) NFTs will have a positive impact on Bitcoin ecosystem by improving its security and incentivizing developers to build on the network, according to independent developer Udi Wertheimer. The number of newly created Ordinals, also referred to as "inscriptions", have been spiking in recent weeks, causing a surge in transaction fees and average block size on the Bitcoin blockchain. According to Wertheimer, Bitcoin NFTs are going to be beneficial for Bitcoin's security budget: by driving up transaction fees, the creation of Ordinals will incentivize miners to secure the network while the revenue from mining reward will be decreasing with …
Adoption / Feb. 18, 2023