hippius 0.2.47__tar.gz → 0.2.48__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hippius-0.2.47 → hippius-0.2.48}/PKG-INFO +1 -1
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/__init__.py +1 -1
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/ipfs.py +3 -1
- {hippius-0.2.47 → hippius-0.2.48}/pyproject.toml +1 -1
- {hippius-0.2.47 → hippius-0.2.48}/README.md +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/cli.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/cli_assets.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/cli_handlers.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/cli_parser.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/cli_rich.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/client.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/config.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/db/README.md +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/db/env.db.template +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/db/migrations/20241201000001_create_key_storage_tables.sql +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/db/migrations/20241202000001_switch_to_subaccount_encryption.sql +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/db/setup_database.sh +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/db_utils.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/errors.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/ipfs_core.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/key_storage.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/substrate.py +0 -0
- {hippius-0.2.47 → hippius-0.2.48}/hippius_sdk/utils.py +0 -0
@@ -26,7 +26,7 @@ from hippius_sdk.config import (
|
|
26
26
|
from hippius_sdk.ipfs import IPFSClient, S3PublishResult, S3DownloadResult
|
27
27
|
from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
|
28
28
|
|
29
|
-
__version__ = "0.2.
|
29
|
+
__version__ = "0.2.48"
|
30
30
|
__all__ = [
|
31
31
|
"HippiusClient",
|
32
32
|
"IPFSClient",
|
@@ -2064,7 +2064,7 @@ class IPFSClient:
|
|
2064
2064
|
|
2065
2065
|
if existing_key_b64:
|
2066
2066
|
# Use existing key
|
2067
|
-
logger.
|
2067
|
+
logger.info(
|
2068
2068
|
"Using existing encryption key for account+bucket combination"
|
2069
2069
|
)
|
2070
2070
|
encryption_key_bytes = base64.b64decode(existing_key_b64)
|
@@ -2084,7 +2084,9 @@ class IPFSClient:
|
|
2084
2084
|
import nacl.secret
|
2085
2085
|
|
2086
2086
|
box = nacl.secret.SecretBox(encryption_key_bytes)
|
2087
|
+
logger.info("encrypting...")
|
2087
2088
|
content_bytes = box.encrypt(content_bytes)
|
2089
|
+
logger.info("finished encryption!")
|
2088
2090
|
else:
|
2089
2091
|
# Fallback to the original encryption system if key_storage is not available
|
2090
2092
|
if not self.encryption_available:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|