예제 #1
0
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())}")
예제 #2
0
def validator_keys_directory():
    with tempfile.TemporaryDirectory() as directory:
        client = CasperLabsClient()
        client.validator_keygen(directory)
        yield Path(directory)