-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from SummerOfBitcoin/validation
Add P2PKH with P2WPKH
- Loading branch information
Showing
10 changed files
with
228 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
ecdsa==0.19.0 | ||
pycryptodome==3.20.0 | ||
#sha3==0.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
COINBASE_TRANSACTION = { | ||
"version": 2, | ||
"locktime": 0xffffffff, | ||
"vin": [ | ||
{ | ||
"txid": "0000000000000000000000000000000000000000000000000000000000000000", | ||
"vout": 0xffffffff, | ||
"sequence": 0xffffffff, | ||
"is_coinbase": True, | ||
"scriptsig": "160014fd91039e25b0827748473fce351afd8ead4ecdce", | ||
"scriptsig_asm": "OP_PUSHBYTES_22 0014fd91039e25b0827748473fce351afd8ead4ecdce", | ||
"witness": [ | ||
"0000000000000000000000000000000000000000000000000000000000000000", | ||
] | ||
} | ||
], | ||
"vout": [ | ||
{ | ||
"scriptpubkey": "0014ad4cc1cc859c57477bf90d0f944360d90a3998bf", | ||
"scriptpubkey_asm": "OP_0 OP_PUSHBYTES_20 ad4cc1cc859c57477bf90d0f944360d90a3998bf", | ||
"scriptpubkey_type": "v0_p2wpkh", | ||
"scriptpubkey_address": "bc1q44xvrny9n3t5w7lep58egsmqmy9rnx9lt6u0tc", | ||
"value": 100000 | ||
}, | ||
{ | ||
"scriptpubkey": "", | ||
"scriptpubkey_type": "op_return", | ||
"value": 0 | ||
} | ||
] | ||
} | ||
COINBASE_TRANSACTION = { | ||
"version": 1, | ||
"locktime": 0, | ||
"vin": [ | ||
{ | ||
"txid": "0000000000000000000000000000000000000000000000000000000000000000", | ||
"vout": 4294967295, | ||
"prevout": { | ||
"scriptpubkey": "41047eda6bd04fb27cab6e7c28c99b94977f073e912f25d1ff7165d9c95cd9bbe6da7e7ad7f2acb09e0ced91705f7616af53bee51a238b7dc527f2be0aa60469d140ac", | ||
"scriptpubkey_asm": "OP_HASH160 OP_PUSHBYTES_20 423877331b30a905240c7e1f2adee4ebaa47c5f6 OP_EQUAL", | ||
"scriptpubkey_type": "p2sh", | ||
"scriptpubkey_address": "14gnf7L2DjBYKFuWb6iftBoWE9hmAoFbcF", | ||
"value": 2504928, | ||
}, | ||
"scriptsig": "03233708184d696e656420627920416e74506f6f6c373946205b8160a4256c0000946e0100", | ||
"scriptsig_asm": "OP_PUSHBYTES_22 001415ff0337937ecadd10ce56ffdfd4674817613223", | ||
"witness": [ | ||
"0000000000000000000000000000000000000000000000000000000000000000", | ||
], | ||
"is_coinbase": True, | ||
"sequence": 4294967295, | ||
} | ||
], | ||
"vout": [ | ||
{ | ||
"scriptpubkey": "76a914edf10a7fac6b32e24daa5305c723f3de58db1bc888ac", | ||
"scriptpubkey_asm": "OP_DUP OP_HASH160 OP_PUSHBYTES_20 71a3d2f54b0917dc9d2c877b2861ac52967dec7f OP_EQUALVERIFY OP_CHECKSIG", | ||
"scriptpubkey_type": "p2pkh", | ||
"scriptpubkey_address": "1BMscNZbFKdUDYi3bnF5XEmkWT3WPmRBDJ", | ||
"value": 28278016, | ||
}, | ||
{ | ||
"scriptpubkey": "", | ||
"scriptpubkey_asm": "OP_HASH160 OP_PUSHBYTES_20 423877331b30a905240c7e1f2adee4ebaa47c5f6 OP_EQUAL", | ||
"scriptpubkey_type": "p2sh", | ||
"scriptpubkey_address": "37jAAWEdJ9D9mXybRobcveioxSkt7Lkwog", | ||
"value": 0000000000000000, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.