Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Blockchain Quick Reference

You're reading from  Blockchain Quick Reference

Product type Book
Published in Aug 2018
Publisher Packt
ISBN-13 9781788995788
Pages 350 pages
Edition 1st Edition
Languages
Concepts
Authors (4):
Mariko Amekodommo Mariko Amekodommo
Profile icon Mariko Amekodommo
Brenn Hill Brenn Hill
Profile icon Brenn Hill
Samanyu Chopra Samanyu Chopra
Profile icon Samanyu Chopra
Paul Valencourt Paul Valencourt
Profile icon Paul Valencourt
View More author details
Toc

Table of Contents (24) Chapters close

Preface 1. Blockchain 101 2. Components and Structure of Blockchain 3. Decentralization Versus Distributed Systems 4. Cryptography and Mechanics Behind Blockchain 5. Bitcoin 6. Altcoins 7. Achieving Consensus 8. Advanced Blockchain Concepts 9. Cryptocurrency Wallets 10. Alternate Blockchains 11. Hyperledger and Enterprise Blockchains 12. Ethereum 101 13. Solidity 101 14. Smart Contracts 15. Ethereum Development 16. Ethereum Accounts and Ether Tokens 17. Decentralized Applications 18. Mining 19. ICO 101 20. Creating Your Own Currency 21. Scalability and Other Challenges 22. Future of Blockchain 23. Other Books You May Enjoy

Hashing and signatures

Let's say you have two text files that are 50 pages long. You want to know whether they are the same or different. One way you could do this would be to hash them. Hashing (or a hashing function) is a mathematical procedure by which any input is turned into a fixed-length output. There are many of these functions, the most common being SHA-1, SHA-2, and MD5. For instance, here is the output of a hashing function called MD5 with an input of two pages of text:

9a137a78cf0c364e4d94078af1e221be

What's powerful about hashing functions is what happens when I add a single character to the end and run the same function:

8469c950d50b3394a30df3e0d2d14d74

As you can see, the output is completely different. If you want to quickly prove that some data has not been changed in any way, a hash function will do it. For our discussion, here are the important parts...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime