mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
Update comment to match code
This commit is contained in:
parent
7e2c687295
commit
cb9566911c
@ -381,9 +381,9 @@ func calcSignatureHash(script []parsedOpcode, hashType SigHashType,
|
||||
}
|
||||
|
||||
// The final hash (message to sign) is the hash of:
|
||||
// 1) hash of the prefix ||
|
||||
// 2) hash of the witness for signing ||
|
||||
// 3) the hash type (encoded as a 4-byte little-endian value)
|
||||
// 1) the hash type (encoded as a 4-byte little-endian value) ||
|
||||
// 2) hash of the prefix ||
|
||||
// 3) hash of the witness for signing
|
||||
var wbuf bytes.Buffer
|
||||
binary.Write(&wbuf, binary.LittleEndian, uint32(hashType))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user