Introduction

In episode 12, Bill laid out his strategy to handle data hashing on his blockchain. The first step he took was to create a package to handle the cryptographical aspects of his blockchain. After that, he wrote a hash function that met the requirements outlined in his strategy. This function took transaction data as a parameter and returned a hexadecimal representation of the hash. To implement this function, Bill imported packages from the Go standard library and Ethereum API.

In this video, Bill will begin to define the components required to generate a digital signature of his blockchain’s transactions. He begins by discussing the concept of adding a salt value to a hash. Bill does this to explain how Bitcoin and Enthereum also use a salt to uniquely stamp transactions being sent to the node for processing. For his blockchain, Bill defined a function called stamp which will add the salt to his transaction data that is sent from the client to the node. Watch and learn how to stamp a transaction, implement the keccak256 algorithm in Go, and the security issues mitigated by stamping transactions.

Things you will learn in this video

  • What a salt is and how to embed it into a hash.
  • How to generate a hash with the keccak256 algorithm in Go.
  • The role of a stamp in a digital signature

Video

Trusted by top technology companies

We've built our reputation as educators and bring that mentality to every project. When you partner with us, your team will learn best practices and grow along the way.

30,000+

Engineers Trained

1,000+

Companies Worldwide

12+

Years in Business