Proof of Work
The most famous and well-known coins, such as Bitcoin and Ethereum, although their differences, use a consensus algorithm called Proof of Work, in which an extraordinary and expensive computing power is put in place, spent to calculate complex mathematical elaborations, in order to create and validate a block of transactions.
This activity is called mining.
The main purpose of this and other algorithms is to elect a leader, a mining node, who decides the contents of the next block and its transmission to the network, so that everyone can verify and record the validity of its contents.
In order to elect a node as a leader, it is necessary that it finds a solution to a mathematical problem and that all the nodes in the network recognize the correctness of the resolution. In this way, the miner will receive a reward, both for the mined block and for the transaction fees, and therefore it will have an incentive to continue mining.
Thanks to the extraordinary (and necessary) computational power, miners are also encouraged not to cheat: attacking the network would cost a lot, because of the high costs of the hardware, the energy involved and the potential mining profits that would be lost.
Proof of Work has proven to work quite well, the Bitcoin blockchain for example has never been violated, although Proof of Work is not democratic, because here the winner is the one who has more computational power to put into play. Despite all this, the network does not process more than 10 transactions per second, which are incomparable, for example, to those made by Visa and MasterCard.
Proof of Stake
The Proof of Stake is a modern approach to the generation of blocks and therefore to the consensus of the transactions contained within it. Instead of consuming electricity to solve computationally expensive calculations, a node is selected to generate a new block. In this way the probability is proportional to the amount of coins kept in the wallet, in order to be selected to generate new blocks. However, in the well- known Proofs there are some problems that have reated vulnerabilities, some of them already solved and others being solved.
In many Proof of Stake algorithms (all chain-based), rewards are awarded for block production only. As negative consequence, if there are multiple competing chains, a validator may be encouraged to validate multiple blocks and on each chain; consequently, the Blockchain may never reach consensus, even if there are no declared attackers.
The problem can be solved by penalizing validators if they simultaneously create blocks on multiple chains, but they must be detected well in advance, otherwise a validator with Stake could point to both chains.
However, for the process to work properly it is necessary that validators are selected at a time before the fork: this can be considered a point of weakness, because the nodes must often be online to get a secure view of the blockchain, exposing themselves to the risk of attack by malicious validators.
In this condition, if at least 2⁄3 of the validators are honest, agree on the same transaction register and calculate the same status, then the network is secure and the nodes can send transactions and benefit from the economic purpose.
This condition is called Byzantine theory.
Although there is not a sufficiently broad record to demonstrate the functional value of the PoS algorithm,there are some variables that could trigger 51% attack conditions, particularly related to economic incentives and block validation.
As we said, Takamaka’s algorithm is a Proof-of-Stake that responds to the possible PoS security problems; to all intents and purposes, it is an adaptive algorithm, that sets unique and precise conditions to undermine the block, related to the following conditions:
At the end of the first third of an EPOCH, a seed is generated with precise randomness characteristics; although it is a deterministic calculation, this procedure is fundamental and serves to establish when a node, activated as miner ( see below “Election of a miner”) , will have to undermine a block in the next EPOCH.
In Takamaka there is no substantial competition between Network nodes to determine who becomes the miner, miners compete exclusively on the efficiency value where the node creates a block. Takamaka’s algorithm divides the physical time in EPOCH, equal to the duration of 8 days and 8 hours,
which in turn is divided into SLOT, whose relatively short time has a value of 30 sec. and where inside each slot is generated a block of 10,000 Tx.
In each subsequent EPOCH, it is always known who the miners will be. Unlike the more well-known Proof Of Stake, here there is no substantial competition between the Network nodes to determine who becomes miner, like for example in the most energy-intensive, such as PoW (bitcoin type) or in the Proof of Stake BFT (tendermint, cardano ouroboros, etc. ).
In Takamaka miners compete exclusively on the efficiency value in which the node creates a block, rather than on the number of transactions it includes.
The more quickly a node can vote to make a call, the faster and more efficient it is defined, independently the maximum delay of the network, or the minimum and/or maximum level of availability of stakes on the node.
Unlike OUROBOROS and/or Tendermint, the Takamaka PoS algorithm seeks consensus regardless of the vote, it is not necessary to vote or elect a Leader to start undermining the block, nor is it necessary for the nodes to speak to each other to create consensus.
Election of a miner
At the end of the first third of an EPOCH, the algorithm generates a seed, with intrinsic deterministic randomness characteristics, so that everyone is able to calculate it. Depending on the choice made by the seed and the amount of stake bet on a node, it is automatically determined who will produce the block that will go into the next EPOCH slot.
Therefore, Takamaka Proof-of-Stake is not a PBFT, so when a node generates a block, it must not consult anyone else to become a mining node, but simply be aligned with the heaviest story of the chain. The node initially has only one block of bootstrap, from which it undertakes to reconstruct the whole
story, simply asking the adjacent nodes, in order to rebuild everything.
To understand what the exact story is, the node verifies in that EPOCH which chain is heavier, i. e. has more bets; the chain that has more weight and therefore more stake is undoubtedly the “exact story”, in normal conditions no one would follow a chain with a lighter story, because it would mean that it is following the wrong story, putting at risk bets and economic rewards.
In Takamaka PoS a node is never penalized, but simply does not earn.
Moreover, here it is not foreseen that there can be bets on the single node, higher than a certain value dictated by the protocol. In this way it is guaranteed that the node has a minimum value to be able to become a delegated miner, but also limited to prevent it from assuming a predominant role in the network, a necessary condition for the status of equilibrium.
Let’s suppose that the network splits into two Chains, which present millions of similar stories, but each one with a different importance; in this condition the story that wins is always the one that has more weight, so that is not the Fork.
If you commit to recognize an alternative story, you may not be rewarded if that chain turns out to be a fork. At the end of the EPOCH, all the nodes will evaluate which is the less heavy story and this will be considered as a fork and then rejected. Those who have bet on the wrong story will not be penalized, but simply not paid.
In the Takamaka PoS consensus protocol, it is considered a fork, when it significantly alters the functioning of the client (node), which changes the rules of chain mining. At this point, if a node respects the rules, it can immediately begin to undermine the block, which will be generated and sent to the entire network, creating the conditions for a reward and laying the foundations for the construction of the chain.
Whoever receives the block adds it to the chain, which grows with the weight of the Stakes on the EPOCH one, in this way the condition that the story of maximum weight creates a chain of maximum weight is valid.
The Takamaka algorithm is to all intents and purposes a Proof of Stake (PoS), which does not rely on demanding hardware and high current costs, but it focuses the economic effort directly on the protocol.
In order to solve the problem, Takamaka has patented its consensus algorithm, challenging the most famous Blockchain projects and presenting itself as a protocol of different value, not only towards Ethereum, but also towards other platforms on which Smart Contract are programmed and realized.
The result is a chain that is almost immune to compromises, typical of Proof of Stake algorithms, solving and setting solutions that promote and improve the current limits. It offers an high security level like the most famous Proofs, but, compared to these, it overcomes problems related to energy consumption of
resources and impartiality.
Stay Tuned. Download our white paper: https://lnkd.in/gkhU5cf
Keep in touch and ask your questions on www.takamaka.io
On October 30th at 12.00 am at the Seminar Room 1 at the Mathematics Department of the University of Trento, our CTO Giovanni Antino will hold a seminar on Non-Interactive Time-Based Proof of Stake.
Link to event paper: decifris-antino.pdf
What is Takamaka
From the white paper, Takamaka presents itself as a complete and fully open source verifiable blockchain, which solves the ease of programming and scalability, but it also proposes a new consensus algorithm proof of stake (PoS). The algorithm is designed not to be subject to the currently known PoS attacks and to faithfully approximate the security and stability properties of the proof of work (PoW).
Takamaka is a project developed by AiliA SA in collaboration with the University of Verona and Trento. Thanks to the Professor Nicola Fausto Spoto, it has been possible to use native Java as a smart contract language, a distinctive feature of the project. Takamaka is based on the implementation of all levels that make up the blockchain: smart contract, consensus algorithm, networking, cryptography, thanks to the work of Mr. Giovanni Antino and Mr. Francesco Pasetto and the University of Trento, where the Full Professor Massimiliano Sala analysed the cryptography and consensus algorithm.
Java, born as an object oriented language, has greater simplicity in writing and managing code and intrinsic characteristics of portability, reliability and verifiability. From the node to the smart contract, to the creation of tokens: the result is a high-performance blockchain that does not require special development environments.
The PoS, instead of consuming electricity to solve computationally expensive calculations, selects a node to generate a new block. A node, chosen to submit a new block, is called miner, while one pointing coins at a miner is called stakeholder. Stakeholder betting, unlike classic PoS, is not a key element of the entire financial power in Takamaka, because the stake does not give the ability to control or influence the algorithm to the single better.
In Takamaka there cannot be bets on the single node higher than a certain value dictated by the protocol. This ensures that the node has a minimum value to be able to become a delegated miner, but this value is limited to prevent it from assuming a predominant role in the network, as a necessary condition for the status of balance.
Current Proof of Stake implementations and its main variants are based on the exclusive use of a single chain token for job quantification and control management. In the initial stages, this leads to an unnatural scarcity of the token itself: whoever owns it, has the control of the chain and he is not willing to sell it, in order not to lose the predominance on the chain.
Using green and red coins Takamaka allows the initiator of the network to continue working on it and, even if he decides to transfer control of his tokens, he would not lose the possibility of operating within the network, nor would it cause significant price manipulation.
The green token is never exchangeable with the red one, but it is generated by the mining activity and can be purchased directly on an exchange platform. The red token has been generated in the zero block and its value is stable and guaranteed, so the coin ensures the stability and certainty of management costs on the network, such as transactions and smart contracts.
The green tokens created in the zero block are 99,000,000 : 5,000,000 of them used for governance; 37,500,000 of them (about 1/3 of all tokens, but less than 50% + 1 of the total produced in the zero block) distributed among financiers, lawyers, developers and marketing operations; the remaining 56,500,000 offered for sale to the public. A further 105,120,000, released over a period of 100 years as COINBASE. The red tokens, generated in the block of genesis, amount to 100,000,000,000.
Both the tokens belong to the utility genre, purchasable on the marketplace of AiliA SA as well as on exchange.
Takamaka is based on a self-consistent structure, in which the collective participation of the involved actors makes them honest and prompts them to improve the protocol, through upgrades and continuous bug fixes. The company makes available 5,000,000 green tokens to reward those who report improvement actions, by emailing the team at firstname.lastname@example.org and adhering to the Responsible Disclosure.
Applying this controlled and ethically correct model for reporting security vulnerabilities contributes to raising the level of protection of Takamaka services, helping the company to detect and take corrective actions, avoiding damage and/or disruption.
The project was born and developed after a previous and deep study of the public blockchains operations, carried out by Mr. Mario Carlini: he is actually CEO of AiliA SA and considers this technology as a new frontier for the creation of a suitable platform to serve businesses. AiliA SA was bought in Switzerland at the beginning of 2017, the project Takamaka started in October of the same year.
Currently based in the canton of Zug (CH), the company operates in the field of “Provisions of IT services” and innovation processes in the areas of technological transformation involving blockchain and AI.
Takamaka is an entrerprise platform that tries to address and solve problems of the existing blockchain protocols, to all intents and purposes it can be considered as a blockchain 3.0. While Ethereum (or several other competing Blockchains) has its own programming code called Solidity, which requires developers and businesses to learn and understand how it works before they even start any development phase, Takamaka ( thanks to Java) lowers the barrier to the blockchain world, since it does not ask its developers to learn a new programming language to create contracts.
In this way, Takamaka runs to fully satisfy the B2B environment and beyond, significantly reducing any learning problems and any barriers that hinder the number of developers and companies interested in starting their own business model in the blockchain world.
To view the white paper and technical documents, please visit www.takamaka.io