mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-11 01:28:17 +03:00
3b084a165b
* configure isort to add the future annotations import * apply the new isort setting * remove type ignores for new mypy (#13539) https://pypi.org/project/mypy/0.981/ * another
33 lines
731 B
Python
33 lines
731 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
from typing import Dict
|
|
|
|
|
|
def public_ssl_paths(path: Path, config: Dict):
|
|
return (
|
|
path / config["ssl"]["public_crt"],
|
|
path / config["ssl"]["public_key"],
|
|
)
|
|
|
|
|
|
def private_ssl_paths(path: Path, config: Dict):
|
|
return (
|
|
path / config["ssl"]["private_crt"],
|
|
path / config["ssl"]["private_key"],
|
|
)
|
|
|
|
|
|
def private_ssl_ca_paths(path: Path, config: Dict):
|
|
return (
|
|
path / config["private_ssl_ca"]["crt"],
|
|
path / config["private_ssl_ca"]["key"],
|
|
)
|
|
|
|
|
|
def chia_ssl_ca_paths(path: Path, config: Dict):
|
|
return (
|
|
path / config["chia_ssl_ca"]["crt"],
|
|
path / config["chia_ssl_ca"]["key"],
|
|
)
|