From af984063075477746a9a9468d9c44f20318b38cb Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 21 Aug 2018 19:35:11 +0100 Subject: [PATCH] Use snake_case for ZIP 143 test vector part names --- zip_0143.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zip_0143.py b/zip_0143.py index 642af0b..2ccd578 100644 --- a/zip_0143.py +++ b/zip_0143.py @@ -137,11 +137,11 @@ def main(): test_vectors.append({ 'tx': bytes(tx), - 'scriptCode': scriptCode.raw(), - 'nIn': nIn, - 'nHashType': nHashType, + 'script_code': scriptCode.raw(), + 'transparent_input': nIn, + 'hash_type': nHashType, 'amount': amount, - 'consensusBranchId': consensusBranchId, + 'consensus_branch_id': consensusBranchId, 'sighash': sighash, }) @@ -150,11 +150,11 @@ def main(): 'zip_0143', ( ('tx', {'rust': 'Vec', 'bitcoin_flavoured': False}), - ('scriptCode', 'Vec'), - ('nIn', 'u32'), - ('nHashType', 'u32'), + ('script_code', 'Vec'), + ('transparent_input', 'u32'), + ('hash_type', 'u32'), ('amount', 'u64'), - ('consensusBranchId', 'u32'), + ('consensus_branch_id', 'u32'), ('sighash', '[u8; 32]'), ), test_vectors,