Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating test vectors for Action Groups #24

Merged
merged 9 commits into from
Feb 6, 2025
6 changes: 4 additions & 2 deletions zcash_test_vectors/transaction_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ def __init__(self, rand, anchor_orchard, proofs_orchard, is_coinbase):
# There must always be a non-zero number of Action Descriptions in an Action Group.
for _ in range(rand.u8() % 4 + 1):
self.vActionsOrchard.append(OrchardZSAActionDescription(rand))
# Three flag bits are defined, we set enableZSA to true.
self.flagsOrchard = (rand.u8() & 7) | 4
# Three flag bits are defined, ensure the other bits are zero by masking.
vivek-arte marked this conversation as resolved.
Show resolved Hide resolved
self.flagsOrchard = (rand.u8() & 7)
# Set the enableZSAs flag to true by OR with 0b00000100
self.flagsOrchard |= 4
if is_coinbase:
# set enableSpendsOrchard = 0
vivek-arte marked this conversation as resolved.
Show resolved Hide resolved
self.flagsOrchard &= 2
vivek-arte marked this conversation as resolved.
Show resolved Hide resolved
Expand Down