1

Ultimate Go: Advanced Engineering Episode 13

 1 year ago
source link: https://www.ardanlabs.com/blog/2023/01/ultimate-go-advanced-engineering-episode-13.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Ultimate Go: Advanced Engineering Episode 13

Author image

Cheikh Seck

January 11, 2023

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK