How to get the digest hash

How to get the digest hash

  1. Remove input script from transaction. We should remove bytes (do not forget about script len)
  2. Replace it with the funding script (do not forget about script len)
  3. Append SIGHASH_ALL as 32-bit low-endian value. 
  4. Hash it twice by SHA256.


你可能感兴趣的:(比特币学习笔记,Bitcoin,hash,digest)