def method(casperlabs_client: CasperLabsClient, args: Dict): directory = Path(args.get("directory")).resolve() casperlabs_client.validator_keygen(directory) print( f"Keys successfully created in directory: {str(directory.absolute())}")
def validator_keys_directory(): with tempfile.TemporaryDirectory() as directory: client = CasperLabsClient() client.validator_keygen(directory) yield Path(directory)