Introduction
In episode 14, Bill architected a solution to digitally sign the transactions on his blockchain. His solution retrieved the private key by : loading private key data from disk, parsing the key data and returning the ECDSA private key. The private key is then used to generate the signature of a transaction. While writing the code to perform this functionality, Bill highlighted how a blockchain node can use a transaction’s signature to extrapolate the public key.
In this video, Bill will implement a solution to ensure all of his blockchain users are given unique identifiers in a distributed environment. This solution consists of calculating a unique identifier from a public key. The first step he’ll take will be to extract the public key from a transaction’s signature. To perform this, Bill will make use of the functions found in the Go Ethereum library and the previous blockchain project. Watch and learn how to calculate a user’s address from their public key.
Things you will learn in this video
- How to read a public key from a signature.
- Validate origin of a transaction.
- Generate a user’s address from a public key.
Video