How is the hash (Block signature) generated?

The process of generating a block signature involves:

  • Passing transaction details through a one-way hash function i.e., SHA-256.
  • Running the output value through a signature algorithm (like ECDSA) with the user’s private key.
  • Following these steps, the encrypted hash, along with other information (such as the hashing algorithm), is called the digital signature.