Use snake_case for ZIP 143 test vector part names

This commit is contained in:
Jack Grigg 2018-08-21 19:35:11 +01:00
parent acdfe06c87
commit af98406307
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with 8 additions and 8 deletions

View File

@ -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<u8>', 'bitcoin_flavoured': False}),
('scriptCode', 'Vec<u8>'),
('nIn', 'u32'),
('nHashType', 'u32'),
('script_code', 'Vec<u8>'),
('transparent_input', 'u32'),
('hash_type', 'u32'),
('amount', 'u64'),
('consensusBranchId', 'u32'),
('consensus_branch_id', 'u32'),
('sighash', '[u8; 32]'),
),
test_vectors,