© Karan Singh Garewal 2020
K. S. GarewalPractical Blockchains and Cryptocurrencieshttps://doi.org/10.1007/978-1-4842-5893-4_12

12. The Chainstate

Karan Singh Garewal1 
(1)
Toronto, ON, Canada
 

In the previous chapter, we implemented program code that validated the integrity of transactions. There was a significant omission in this code, we did not address the issue of how unspent values from a previous transaction are obtained, and we also did not address the matter of validating the unspent values in previous transactions. The reason for this omission is that unspent values are implemented in a key-value store. In this chapter, we will rectify this deficiency by implementing a key-value store for transactions. We will also implement a key-value store ...

Get Practical Blockchains and Cryptocurrencies: Speed Up Your Application Development Process and Develop Distributed Applications with Confidence now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.