Address Name System (ANS) for Naruno
ANS is a decentralized system that maps blockchain addresses to dynamic IPs, making it easy to access servers with changing IP addresses. With ANS, you can access your server by using your unique blockchain address instead of constantly searching for its changing IP address.
Features
- Decentralized system
- Secure communication between nodes
- Fast and easy to use
- Maps blockchain addresses to dynamic IPs
- Uses encryption to protect sensitive information
Installation
You can install ANS by pip3:
pip3 install address_name_system
Usage
*If you want to use address_name_system you must to use Naruno. For now please checkout the Baklava Testnet.
Getting address of client and server:
narunocli -pw
Server
For accessing your dynamic IPs over blockchain you should create a address_name_system and giving trusted user addresses.
from address_name_system import ans
my_ans_server = ans("MyNarunoPass")
my_ans_server.set_encrypt_key("mystrongencrypt_key")
my_ans_server.add_user("client_address")
my_ans_server.run()
also you can use in command line:
ans --password MyNarunoPass --encrypt_key "mystrongencrypt_key" --trusted_users ["client_address"] run
Client
To use ANS, you can call the ans.ip function with your blockchain address as the parameter:
from address_name_system import ans
my_ans_client = ans("MyNarunoPass")
ip_address = my_ans_client.ip("server_address", "mystrongencrypt_key")
print(ip_address)
my_ans_client.close()
also you can use in command line:
ans --password "MyNarunoPass" ip "server_address" "mystrongencrypt_key"
This will return the dynamic IP address associated with your blockchain address.
Contributing
Contributions to ANS are welcome! If you have any suggestions or find a bug, please open an issue on the GitHub repository. If you want to contribute code, please fork the repository and create a pull request.
License
ANS is released under the MPL-2.0 License.
Metadata
Release files for address-name-system 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| address_name_system-0.2.3.tar.gz | 8.9 kB | Without provenance | Details |
Release files / address_name_system-0.2.3.tar.gz
| Download URL | address_name_system-0.2.3.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7952372e94cec92cce3cb19c650effbcf7ae2185faa8b2196a8726432f1f1cbd
|
|
BLAKE2b-256 checksum How to use checksums |
42c92a4445c26caa00fb9aa2cee659a81a8b169d5df6ae1f553a8e214b2cea76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Security for address-name-system 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.