From 72def85ec9e0c0a20658e22e0d1f57b65407086e Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Sat, 8 Jun 2019 01:45:57 +0100 Subject: [PATCH] Fixes typo --- pisa-btc/apps/blob.py | 9 +++------ pisa-btc/pisa/{errors.py => rpc_errors.py} | 0 2 files changed, 3 insertions(+), 6 deletions(-) rename pisa-btc/pisa/{errors.py => rpc_errors.py} (100%) diff --git a/pisa-btc/apps/blob.py b/pisa-btc/apps/blob.py index b42b09d..6c751ff 100644 --- a/pisa-btc/apps/blob.py +++ b/pisa-btc/apps/blob.py @@ -3,10 +3,7 @@ from cryptography.hazmat.primitives.ciphers.aead import AESGCM from cryptography.hazmat.primitives.kdf.hkdf import HKDF from cryptography.hazmat.primitives import hashes from cryptography.hazmat.backends import default_backend - -SUPPORTED_HASH_FUNCTIONS = ["SHA256"] -SUPPORTED_CYPHERS = ["AES-GCM-128"] -SALT = "lightningwatcher" +from conf import SALT, SUPPORTED_HASH_FUNCTIONS, SUPPORTED_CIPHERS class Blob: @@ -21,9 +18,9 @@ class Blob: .format(self.hash_function, SUPPORTED_HASH_FUNCTIONS)) # FIXME: We only support SHA256 for now - if self.cypher.upper() not in SUPPORTED_CYPHERS: + if self.cypher.upper() not in SUPPORTED_CIPHERS: raise Exception("Cypher not supported ({}). Supported cyphers: {}".format(self.hash_function, - SUPPORTED_CYPHERS)) + SUPPORTED_CIPHERS)) def encrypt(self, tx_id, debug, logging): # Transaction to be encrypted diff --git a/pisa-btc/pisa/errors.py b/pisa-btc/pisa/rpc_errors.py similarity index 100% rename from pisa-btc/pisa/errors.py rename to pisa-btc/pisa/rpc_errors.py