8000 Tool changes related to joinsplit inputs and outputs (depends on #379) by dtebbs · Pull Request #378 · clearmatics/zeth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tool changes related to joinsplit inputs and outputs (depends on #379) #378

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

Merged
merged 5 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions client/test_commands/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ def charlie_double_withdraw(
attack_primary_input4: int = 0

def compute_h_sig_attack_nf(
nf0: bytes,
nf1: bytes,
nfs: List[bytes],
sign_vk: JoinsplitSigVerificationKey) -> bytes:
# We disassemble the nfs to get the formatting of the primary inputs
assert len(nfs) == 2
nf0 = nfs[0]
nf1 = nfs[1]
input_nullifier0 = nf0.hex()
input_nullifier1 = nf1.hex()
nf0_rev = "{0:0256b}".format(int(input_nullifier0, 16))
Expand Down Expand Up @@ -255,7 +257,7 @@ def compute_h_sig_attack_nf(
primary_input4_res_bits
attack_nf1 = "{0:064x}".format(int(attack_nf1_bits, 2))
return compute_h_sig(
bytes.fromhex(attack_nf0), bytes.fromhex(attack_nf1), sign_vk)
[bytes.fromhex(attack_nf0), bytes.fromhex(attack_nf1)], sign_vk)

output_note1, output_note2, proof, public_data, signing_keypair = \
get_mix_parameters_components(
Expand Down
Loading
0