(n uint32)
| 18 | } |
| 19 | |
| 20 | func (tx *Tx) SigHash(n uint32) (hash Hash) { |
| 21 | hasher := sha3pool.Get256() |
| 22 | defer sha3pool.Put256(hasher) |
| 23 | |
| 24 | tx.InputIDs[n].WriteTo(hasher) |
| 25 | tx.ID.WriteTo(hasher) |
| 26 | hash.ReadFrom(hasher) |
| 27 | return hash |
| 28 | } |
| 29 | |
| 30 | // Convenience routines for accessing entries of specific types by ID. |
| 31 |