hippius 0.1.11__py3-none-any.whl → 0.1.13__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hippius
3
- Version: 0.1.11
3
+ Version: 0.1.13
4
4
  Summary: Python SDK and CLI for Hippius blockchain storage
5
5
  Home-page: https://github.com/thenervelab/hippius-sdk
6
6
  Author: Dubs
@@ -348,18 +348,6 @@ When choosing the second option, the system will process each file in the direct
348
348
  - Successfully coded files with their metadata CIDs
349
349
  - Any files that failed, with error details
350
350
 
351
- You can also directly use the dedicated command for directory erasure coding:
352
-
353
- ```bash
354
- # Direct command for applying erasure coding to an entire directory
355
- hippius erasure-code-dir my_directory/
356
-
357
- # With custom parameters
358
- hippius erasure-code-dir my_important_files/ --k 4 --m 8 --encrypt
359
- ```
360
-
361
- This dedicated command processes each file in the directory individually, optimizing erasure coding parameters for each file based on its size.
362
-
363
351
  To reconstruct a file from erasure-coded chunks:
364
352
 
365
353
  ```bash
@@ -955,95 +943,3 @@ client = HippiusClient(
955
943
 
956
944
  The multi-account system makes it easier to manage multiple identities while maintaining security and convenience.
957
945
 
958
- ## Blockchain Account Management
959
-
960
- Hippius SDK provides a comprehensive solution for managing blockchain accounts, including coldkeys, hotkeys, and proxy relationships.
961
-
962
- ### Coldkeys and Hotkeys
963
-
964
- Hippius uses a hierarchical account structure:
965
-
966
- - **Coldkey**: The main account that holds your funds and grants permissions
967
- - **Hotkey**: Delegated accounts that can perform specific actions on behalf of your coldkey
968
-
969
- This separation provides enhanced security by allowing you to keep your main account (coldkey) secure while using hotkeys for day-to-day operations.
970
-
971
- ### Creating and Managing Accounts
972
-
973
- ```python
974
- from hippius_sdk.account import AccountManager
975
-
976
- # Initialize the account manager
977
- account_manager = AccountManager()
978
-
979
- # Create a coldkey (main account)
980
- coldkey = account_manager.create_coldkey(
981
- name="my_hippius_coldkey", # Optional custom name
982
- mnemonic="your mnemonic phrase here" # Optional - will generate if not provided
983
- )
984
-
985
- # Create a hotkey associated with the coldkey
986
- hotkey = account_manager.create_hotkey(
987
- name="my_hippius_hotkey_1", # Optional custom name
988
- coldkey_address=coldkey["address"] # Optional association
989
- )
990
-
991
- # List all coldkeys
992
- coldkeys = account_manager.list_coldkeys()
993
-
994
- # List hotkeys for a specific coldkey
995
- hotkeys = account_manager.list_hotkeys(coldkey_address=coldkey["address"])
996
-
997
- # Create a proxy relationship on the blockchain
998
- result = account_manager.create_proxy_relationship(
999
- coldkey_address=coldkey["address"],
1000
- hotkey_address=hotkey["address"],
1001
- proxy_type="NonTransfer", # Type of permissions granted
1002
- delay=0 # Blocks before proxy becomes active
1003
- )
1004
-
1005
- # List proxy relationships
1006
- proxies = account_manager.list_proxies(coldkey_address=coldkey["address"])
1007
-
1008
- # Remove a proxy relationship
1009
- result = account_manager.remove_proxy(
1010
- coldkey_address=coldkey["address"],
1011
- hotkey_address=hotkey["address"]
1012
- )
1013
- ```
1014
-
1015
- ### CLI Commands for Account Management
1016
-
1017
- The SDK provides CLI commands for managing accounts:
1018
-
1019
- ```bash
1020
- # Create a coldkey
1021
- hippius account coldkey create --name "my_hippius_coldkey" --generate-mnemonic --show-mnemonic
1022
-
1023
- # Create a hotkey and associate with a coldkey
1024
- hippius account hotkey create --name "my_hippius_hotkey_1" --coldkey [COLDKEY_ADDRESS]
1025
-
1026
- # List accounts
1027
- hippius account list coldkey --verbose
1028
- hippius account list hotkey
1029
- hippius account list proxy --coldkey [COLDKEY_ADDRESS]
1030
-
1031
- # Create a proxy relationship on the blockchain
1032
- hippius account proxy create --coldkey [COLDKEY_ADDRESS] --hotkey [HOTKEY_ADDRESS] --proxy-type NonTransfer
1033
-
1034
- # Remove a proxy relationship
1035
- hippius account proxy remove --coldkey [COLDKEY_ADDRESS] --hotkey [HOTKEY_ADDRESS]
1036
- ```
1037
-
1038
- ### Best Practices for Account Management
1039
-
1040
- 1. **Security**: Keep your coldkey mnemonic secure and never share it. This is the master key to your account.
1041
-
1042
- 2. **Proxy Types**: Different proxy types grant different permissions:
1043
- - `NonTransfer`: Can perform operations except transferring funds
1044
- - Other types may be available depending on the chain configuration
1045
-
1046
- 3. **Multiple Hotkeys**: Create separate hotkeys for different applications or services to limit the impact if one is compromised.
1047
-
1048
- 4. **Regular Auditing**: Regularly check your proxy relationships using `hippius account list proxy` to ensure only authorized delegates have access.
1049
-
@@ -0,0 +1,10 @@
1
+ hippius_sdk/__init__.py,sha256=pEVObrzsEpX0iJhtAEmzY832jVEr7wVPqoxaSwsE3BM,1261
2
+ hippius_sdk/cli.py,sha256=thTRIjKNoCiKaxH1P2UukVvH8r3zR6PDaYEk9ROHiAA,74073
3
+ hippius_sdk/client.py,sha256=dIrjaXl2J71_ljhu_nFS-gTOmKDRPzJDXeviBSOAeis,14894
4
+ hippius_sdk/config.py,sha256=nLDmZft5hR_mD_NrmnnfMwfWRCsp2uQi2f1mTWu-fC4,22870
5
+ hippius_sdk/ipfs.py,sha256=kMqmtyvdjzo1JlXTdLYA74zAmZocDAOsW9cmzwG6ejg,63959
6
+ hippius_sdk/substrate.py,sha256=hyPCjLCTuBTWqHvU8eMowpThsIJYUrvX4yepIs3NcZk,33037
7
+ hippius-0.1.13.dist-info/METADATA,sha256=Brw4f-3IFqK85YePwvAWWEbKmgxd3RcOOrGpsJcE8I4,28001
8
+ hippius-0.1.13.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
9
+ hippius-0.1.13.dist-info/entry_points.txt,sha256=b1lo60zRXmv1ud-c5BC-cJcAfGE5FD4qM_nia6XeQtM,98
10
+ hippius-0.1.13.dist-info/RECORD,,
hippius_sdk/__init__.py CHANGED
@@ -3,36 +3,32 @@ Hippius SDK - Python interface for Hippius blockchain storage
3
3
  """
4
4
 
5
5
  from hippius_sdk.client import HippiusClient
6
- from hippius_sdk.ipfs import IPFSClient
7
- from hippius_sdk.substrate import SubstrateClient
8
- from hippius_sdk.account import AccountManager
9
6
  from hippius_sdk.config import (
7
+ decrypt_seed_phrase,
8
+ delete_account,
9
+ encrypt_seed_phrase,
10
+ get_account_address,
11
+ get_active_account,
12
+ get_all_config,
10
13
  get_config_value,
11
- set_config_value,
12
14
  get_encryption_key,
13
- set_encryption_key,
14
- load_config,
15
- save_config,
15
+ get_seed_phrase,
16
16
  initialize_from_env,
17
- get_all_config,
17
+ list_accounts,
18
+ load_config,
18
19
  reset_config,
19
- get_seed_phrase,
20
- set_seed_phrase,
21
- encrypt_seed_phrase,
22
- decrypt_seed_phrase,
23
- get_active_account,
20
+ save_config,
24
21
  set_active_account,
25
- list_accounts,
26
- delete_account,
27
- get_account_address,
22
+ set_config_value,
23
+ set_encryption_key,
24
+ set_seed_phrase,
28
25
  )
26
+ from hippius_sdk.ipfs import IPFSClient
29
27
 
30
- __version__ = "0.1.0"
28
+ __version__ = "0.1.13"
31
29
  __all__ = [
32
30
  "HippiusClient",
33
31
  "IPFSClient",
34
- "SubstrateClient",
35
- "AccountManager",
36
32
  "get_config_value",
37
33
  "set_config_value",
38
34
  "get_encryption_key",