def setUpClass() -> None: print("Deploying TestBW6_761.sol") _web3, eth = mock.open_test_web3() _bw6_interface, bw6_instance = mock.deploy_contract( eth, eth.accounts[0], "TestBW6_761", {}) global BW6_INSTANCE # pylint: disable=global-statement BW6_INSTANCE = bw6_instance
def main() -> None: _web3, eth = mock.open_test_web3() deployer_eth_address = eth.accounts[0] _mktree_interface, mktree_instance = mock.deploy_contract( eth, deployer_eth_address, "MerkleTreeMiMC7_test", {'treeDepth': ZETH_MERKLE_TREE_DEPTH}) test_tree_empty(mktree_instance) test_tree_partial(mktree_instance)
def main() -> None: _web3, eth = mock.open_test_web3() _bls12_interface, bls12_instance = mock.deploy_contract( eth, eth.accounts[0], "BLS12_377_test", {}) test_bls12_ecadd(bls12_instance) test_bls12_ecmul(bls12_instance) test_bls12_ecpairing(bls12_instance) print("========================================") print("== PASSED ==") print("========================================")
def main() -> None: print("Deploying AltBN128MixerBase_test.sol") _web3, eth = mock.open_test_web3() deployer_eth_address = eth.accounts[0] _mixer_interface, mixer_instance = mock.deploy_contract( eth, deployer_eth_address, "AltBN128MixerBase_test", { 'mk_depth': ZETH_MERKLE_TREE_DEPTH, }) print("Testing ...") test_assemble_nullifiers(mixer_instance) test_assemble_vpub(mixer_instance) test_assemble_hsig(mixer_instance) print("========================================") print("== PASSED ==") print("========================================")