mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
src/apps/wallet: small docu fix in Bip143 class
This commit is contained in:
parent
db763bf05d
commit
da4bea34a0
@ -47,19 +47,18 @@ class Bip143:
|
||||
assert not tx.overwintered
|
||||
|
||||
write_uint32(h_preimage, tx.version) # nVersion
|
||||
|
||||
write_bytes(h_preimage, bytearray(self.get_prevouts_hash())) # hashPrevouts
|
||||
write_bytes(h_preimage, bytearray(self.get_sequence_hash())) # hashSequence
|
||||
|
||||
write_bytes_rev(h_preimage, txi.prev_hash) # outpoint
|
||||
write_uint32(h_preimage, txi.prev_index) # outpoint
|
||||
|
||||
script_code = self.derive_script_code(txi, pubkeyhash)
|
||||
write_varint(h_preimage, len(script_code)) # scriptCode length
|
||||
write_bytes(h_preimage, script_code) # scriptCode
|
||||
script_code = self.derive_script_code(txi, pubkeyhash) # scriptCode
|
||||
write_varint(h_preimage, len(script_code))
|
||||
write_bytes(h_preimage, script_code)
|
||||
|
||||
write_uint64(h_preimage, txi.amount) # amount
|
||||
write_uint32(h_preimage, txi.sequence) # nSequence
|
||||
|
||||
write_bytes(h_preimage, bytearray(self.get_outputs_hash())) # hashOutputs
|
||||
write_uint32(h_preimage, tx.lock_time) # nLockTime
|
||||
write_uint32(h_preimage, sighash) # nHashType
|
||||
|
Loading…
Reference in New Issue
Block a user