Skip to content

Commit 2b23829

Browse files
author
AnonO6
committed
fix: updated the variables casing
1 parent 45c0e71 commit 2b23829

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/lighthouseweb3/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
remove_ipns_record as removeIpnsRecord,
1818
create_wallet as createWallet
1919
)
20-
from .functions.encryptionManager import generate, recoverKey
20+
from .functions.encryptionManager import (
21+
generate,
22+
recover_key as recoverKey
23+
)
2124

2225
class Lighthouse:
2326
def __init__(self, token: str = ""):
@@ -237,7 +240,7 @@ def generate(threshold: int, keyCount: int):
237240
@staticmethod
238241
def recoverKey(keyShards: List[Dict[str, Any]]):
239242
try:
240-
return recoverKey.recoverKey(keyShards)
243+
return recoverKey.recover_key(keyShards)
241244
except Exception as e:
242245
raise e
243246

src/lighthouseweb3/functions/encryptionManager/recoverKey.py renamed to src/lighthouseweb3/functions/encryptionManager/recover_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def validate_share(share: Dict[str, str], index: int) -> Tuple[str, str]:
134134
return key_str, index_str
135135

136136

137-
async def recoverKey(keyShards: List[Dict[str, str]]) -> Dict[str, Any]:
137+
async def recover_key(keyShards: List[Dict[str, str]]) -> Dict[str, Any]:
138138
"""
139139
Recover the master key from a subset of key shares using Lagrange interpolation.
140140

0 commit comments

Comments
 (0)