Verified Commit 38608433 authored by Jakob Moser's avatar Jakob Moser
Browse files

Restructure files

parent 26348939
Loading
Loading
Loading
Loading
+0 −0

File moved.

+3 −3
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ from poolpay import db, paths
from poolpay.model.BankAccount import BankAccount
from poolpay.model.messages.UpdateBalanceMessage import UpdateBalanceMessage
from poolpay.model.Transaction import Transaction
from poolpay.paths import recipient_key_file
from poolpay.paths import age_public_key_file

app = typer.Typer()

@@ -46,7 +46,7 @@ def export(
    encrypt: Annotated[
        bool,
        typer.Option(
            help="If the export should be encrypted with the poolpay age key."
            help="If the export should be encrypted with the poolpaypi age key."
        ),
    ] = False,
) -> None:
@@ -76,7 +76,7 @@ def export(

    if encrypt:
        recipient = x25519.Recipient.from_str(
            recipient_key_file.read_text(encoding="utf-8")
            age_public_key_file.read_text(encoding="utf-8")
        )
        encrypted = age_encrypt(
            messages_string.encode("utf-8"), [recipient], armored=True
+5 −2
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@ keys_dir = proj_dir / "keys"
vault_file = proj_dir / "instance.img"
db_file = instance_dir / "poolpay.db"
socket_path = proj_dir / "wire.socket"
recipient_key_file = keys_dir / "recipient.txt"
age_public_key_file = keys_dir / "poolpaypi.age-public"
age_secret_key_file = keys_dir / "private" / "poolpaypi.age-secret"

__all__ = [
    "proj_dir",
@@ -15,5 +16,7 @@ __all__ = [
    "keys_dir",
    "vault_file",
    "db_file",
    "recipient_key_file",
    "socket_path",
    "age_public_key_file",
    "age_secret_key_file",
]