Expand aitbc package with new utility modules and enhanced HTTP client
- Add new exception types: RetryError, CircuitBreakerOpenError, RateLimitError - Enhance AITBCHTTPClient with retry logic, caching, circuit breaker, and rate limiting - Add AsyncAITBCHTTPClient for async HTTP operations - Add crypto module with Ethereum key derivation, signing, encryption, and hashing utilities - Add web3_utils module with Web3Client and create_web3_client - Add security module with token generation, API key management
This commit is contained in:
@@ -42,8 +42,10 @@ def decrypt_private_key(keystore_data: Dict[str, Any], password: str) -> str:
|
||||
return decrypted.decode()
|
||||
|
||||
|
||||
def load_keystore(address: str, keystore_dir: Path | str = "/var/lib/aitbc/keystore") -> Dict[str, Any]:
|
||||
def load_keystore(address: str, keystore_dir: Path | str = None) -> Dict[str, Any]:
|
||||
"""Load keystore file for a given address."""
|
||||
if keystore_dir is None:
|
||||
keystore_dir = get_keystore_path()
|
||||
keystore_dir = Path(keystore_dir)
|
||||
keystore_file = keystore_dir / f"{address}.json"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user