Skip to content

Commit

Permalink
minor spacing fix to reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-arte committed Jul 30, 2024
1 parent ea6e099 commit 0448e1e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions zcash_test_vectors/zip_0244.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def hash_type(tx, nHashType, txin):
SIGHASH_ALL | SIGHASH_ANYONECANPAY,
SIGHASH_NONE | SIGHASH_ANYONECANPAY,
SIGHASH_SINGLE | SIGHASH_ANYONECANPAY,
]
]
assert (nHashType & 0x1f) != SIGHASH_SINGLE or 0 <= txin.nIn and txin.nIn < len(tx.vout)
return struct.pack('B', nHashType)

Expand Down Expand Up @@ -383,18 +383,18 @@ def populate_test_vector(rand, test_vectors, tx):
other_sighashes = {
nHashType: None if txin is None else signature_digest(tx, t_inputs, nHashType, txin)
for nHashType in ([
SIGHASH_ALL,
SIGHASH_NONE,
SIGHASH_SINGLE,
SIGHASH_ALL | SIGHASH_ANYONECANPAY,
SIGHASH_NONE | SIGHASH_ANYONECANPAY,
SIGHASH_SINGLE | SIGHASH_ANYONECANPAY,
] if txin is None or txin.nIn < len(tx.vout) else [
SIGHASH_ALL,
SIGHASH_NONE,
SIGHASH_SINGLE,
SIGHASH_ALL | SIGHASH_ANYONECANPAY,
SIGHASH_NONE | SIGHASH_ANYONECANPAY,
])
SIGHASH_SINGLE | SIGHASH_ANYONECANPAY,
] if txin is None or txin.nIn < len(tx.vout) else [
SIGHASH_ALL,
SIGHASH_NONE,
SIGHASH_ALL | SIGHASH_ANYONECANPAY,
SIGHASH_NONE | SIGHASH_ANYONECANPAY,
])
}

test_vectors.append({
Expand Down

0 comments on commit 0448e1e

Please sign in to comment.