Loading keys/recipient.txt→keys/poolpaypi.age-public +0 −0 File moved. View file poolpay/fints/__main__.py +3 −3 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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: Loading Loading @@ -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 Loading poolpay/paths.py +5 −2 Original line number Diff line number Diff line Loading @@ -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", Loading @@ -15,5 +16,7 @@ __all__ = [ "keys_dir", "vault_file", "db_file", "recipient_key_file", "socket_path", "age_public_key_file", "age_secret_key_file", ] Loading
poolpay/fints/__main__.py +3 −3 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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: Loading Loading @@ -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 Loading
poolpay/paths.py +5 −2 Original line number Diff line number Diff line Loading @@ -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", Loading @@ -15,5 +16,7 @@ __all__ = [ "keys_dir", "vault_file", "db_file", "recipient_key_file", "socket_path", "age_public_key_file", "age_secret_key_file", ]