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

ed25519: enable feature gate in generator #60

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generators/ed25519.py
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ def _into_key_data(key_prefix, test_vectors):
account.address = program_id
account.owner = program_owner
instr_ctx.accounts.extend([account])
instr_ctx.instr_accounts.extend([invoke_pb.InstrAcct()])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's no longer needed. an instruction can now have 0 accounts
(the tx must have 1+ account, in this case the program)

instr_ctx.epoch_context.features.features.extend([0x91a7af96555ea309])

serialized_instr = instr_ctx.SerializeToString(deterministic=True)
filename = str(key) + "_" + hashlib.sha3_256(serialized_instr).hexdigest()[:16]
Expand Down
Loading