Jack Grigg
9a666e4a29
ZIP 244: Reverse order of value and script_code in txin_sig_digest
2022-01-06 21:33:28 +00:00
Jack Grigg
fe666c2b94
ZIP 244: Add hash_type to transparent_sig_digest
2022-01-06 21:33:12 +00:00
Jack Grigg
bda224b133
ZIP 244: Add new commitments to transparent inputs
...
Signatures for shielded inputs also commit to these new commitments,
meaning that for mixed transactions, shielded signatures are no longer
equivalent to signing the txid. This property remains for fully shielded
transactions.
2022-01-06 21:11:35 +00:00
Jack Grigg
29872dcaa0
ZIP 244: Change semantics of sequence_sig_digest
2022-01-05 21:02:08 +00:00
Jack Grigg
dd8fdb4eaa
Updates for new NU5 testnet consensus rules
...
The ZIP 244 test vectors are altered as a result of changing the
consensus branch ID.
2021-09-28 22:34:42 +01:00
Daira Hopwood
efee9dcb03
chmod +x for scripts and make the shebang/preamble consistent.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-09-15 18:03:47 +01:00
Jack Grigg
95b3a130df
Add ZIP 244 auth digest test vectors
2021-06-08 17:46:45 +01:00
Jack Grigg
445c2602f4
Rename header() to version_bytes()
...
Now that the v5 transaction format has an actual header region, this
old naming makes less sense.
2021-05-26 18:12:16 +01:00
Jack Grigg
bc75d044a1
Use specific tx formats compatible with sighash algorithms
...
ZIP 244 is only defined for v5 transactions, so use the TransactionV5
type directly; likewise use LegacyTransaction with the ZIP 143 and
ZIP 243 APIs.
2021-05-26 18:01:00 +01:00
str4d
a5a7340290
Remove unnecessary txin parameters
...
These were leftover from an earlier version of the PR.
Co-authored-by: ying tong <yingtong@z.cash>
2021-05-26 17:50:50 +01:00
Jack Grigg
da4e9b22dc
Test vectors for ZIP 244
2021-05-26 17:46:54 +01:00