Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Namespaces | Functions | Variables
scenario.py File Reference

Go to the source code of this file.

Namespaces

 test_commands.scenario
 

Functions

None test_commands.scenario.dump_merkle_tree (List[bytes] mk_tree)
 
MixResult test_commands.scenario.parse_mix_call (Any mixer_instance, Any tx_receipt)
 
MixResult test_commands.scenario.wait_for_tx_update_mk_tree (MixerClient zeth_client, MerkleTree mk_tree, str tx_hash)
 
Tuple[ZethNote, ZethNote, ExtendedProof, List[int], JoinsplitSigKeyPair] test_commands.scenario.get_mix_parameters_components (MixerClient zeth_client, ProverClient prover_client, MerkleTree mk_tree, OwnershipKeyPair sender_ownership_keypair, List[Tuple[int, ZethNote]] inputs, List[Tuple[ZethAddressPub, EtherValue]] outputs, EtherValue v_in, EtherValue v_out, Optional[ComputeHSigCB] compute_h_sig_cb=None)
 
MixResult test_commands.scenario.bob_deposit (MixerClient zeth_client, ProverClient prover_client, MerkleTree mk_tree, str bob_eth_address, mock.KeyStore keystore, Optional[EtherValue] tx_value=None)
 
MixResult test_commands.scenario.bob_to_charlie (MixerClient zeth_client, ProverClient prover_client, MerkleTree mk_tree, Tuple[int, ZethNote] input1, str bob_eth_address, mock.KeyStore keystore)
 
MixResult test_commands.scenario.charlie_withdraw (MixerClient zeth_client, ProverClient prover_client, MerkleTree mk_tree, Tuple[int, ZethNote] input1, str charlie_eth_address, mock.KeyStore keystore)
 
MixResult test_commands.scenario.charlie_double_withdraw (MixerClient zeth_client, ProverClient prover_client, IZKSnarkProvider zksnark, MerkleTree mk_tree, Tuple[int, ZethNote] input1, str charlie_eth_address, mock.KeyStore keystore)
 
MixResult test_commands.scenario.charlie_corrupt_bob_deposit (MixerClient zeth_client, ProverClient prover_client, IZKSnarkProvider zksnark, MerkleTree mk_tree, str bob_eth_address, str charlie_eth_address, mock.KeyStore keystore)
 

Variables

string test_commands.scenario.ZERO_UNITS_HEX = "0000000000000000"
 
int test_commands.scenario.BOB_DEPOSIT_ETH = 200
 
int test_commands.scenario.BOB_SPLIT_1_ETH = 100
 
int test_commands.scenario.BOB_SPLIT_2_ETH = 100
 
int test_commands.scenario.BOB_TO_CHARLIE_ETH = 50
 
int test_commands.scenario.BOB_TO_CHARLIE_CHANGE_ETH = BOB_SPLIT_1_ETH - BOB_TO_CHARLIE_ETH
 
float test_commands.scenario.CHARLIE_WITHDRAW_ETH = 10.5
 
float test_commands.scenario.CHARLIE_WITHDRAW_CHANGE_ETH = 39.5