{"id":24880925,"url":"https://github.com/sn1f3rt/idensafe","last_synced_at":"2025-07-11T07:40:25.178Z","repository":{"id":262661721,"uuid":"887959370","full_name":"sn1f3rt/IDenSafe","owner":"sn1f3rt","description":"A proof-of-concept blockchain-based identity management system for KYC.","archived":false,"fork":false,"pushed_at":"2024-11-16T17:00:45.000Z","size":1126,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T17:07:53.737Z","etag":null,"topics":["blockchain","ethereum","flask","python","siwe-auth"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sn1f3rt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"buy_me_a_coffee":"sn1f3rt","github":["sn1f3rt"],"patreon":"sn1f3rt"}},"created_at":"2024-11-13T15:18:05.000Z","updated_at":"2024-11-19T03:50:38.000Z","dependencies_parsed_at":"2024-11-13T16:33:00.505Z","dependency_job_id":"a84c780e-ea06-466f-b0ef-09b48cbcfbb0","html_url":"https://github.com/sn1f3rt/IDenSafe","commit_stats":null,"previous_names":["sn1f3rt/idensafe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn1f3rt%2FIDenSafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn1f3rt%2FIDenSafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn1f3rt%2FIDenSafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn1f3rt%2FIDenSafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sn1f3rt","download_url":"https://codeload.github.com/sn1f3rt/IDenSafe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236655769,"owners_count":19184299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","ethereum","flask","python","siwe-auth"],"created_at":"2025-02-01T11:27:51.145Z","updated_at":"2025-02-01T11:27:52.043Z","avatar_url":"https://github.com/sn1f3rt.png","language":"Python","funding_links":["https://buymeacoffee.com/sn1f3rt","https://github.com/sponsors/sn1f3rt","https://patreon.com/sn1f3rt"],"categories":[],"sub_categories":[],"readme":"# IDenSafe - Decentralized Identity Management Application\n\n[![ci/gh-actions/ruff](https://github.com/Sn1F3rt/IDenSafe/actions/workflows/ruff.yml/badge.svg)](https://github.com/Sn1F3rt/IDenSafe/actions/workflows/ruff.yml)\n[![License](https://img.shields.io/github/license/Sn1F3rt/BlogChain)](LICENSE)\n\n\n## Table of Contents\n\n- [About](#about)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Running](#running)\n  - [Development](#development)\n  - [Production](#production)\n- [License](#license)\n\n## About\n\nIDenSafe is a proof-of-concept blockchain-based identity management system for KYC. It is built on the [Ethereum](https://ethereum.org/en/) blockchain. It implements the [Sign-In with Ethereum](https://login.xyz/) authentication protocol, natively in Python using the [siwe-py](https://pypi.org/project/siwe/) library. On the core, it is built using the [Flask](https://flask.palletsprojects.com/) web framework. Database management is done using [SQLAlchemy](https://www.sqlalchemy.org/). \n\nIt supports Ethereum based user authentication, setting username, verifying KYC and enabling attributes which can be requested.\n\n## Prerequisites\n\n- Git\n- Python 3.10 or higher\n- MariaDB/MySQL database\n- [Ganache](https://www.trufflesuite.com/ganache) or any other Ethereum testnet\n\n## Installation\n\n1. Install [`uv`](https://docs.astral.sh/uv/) \u003e https://docs.astral.sh/uv/getting-started/installation/\n\n2. Clone the repository\n\n   ```shell\n    git clone https://github.com/Sn1F3rt/IDenSafe.git\n   ```\n   \n3. Switch to the project directory\n\n   ```shell\n    cd IDenSafe\n   ```\n   \n4. Create a virtual environment\n\n   ```shell\n   uv venv\n   ```\n   or if you have `make` installed\n\n   ```shell\n   make env\n   ```\n   \n5. Install dependencies\n\n   ```shell\n    uv sync --no-dev --extra prod\n   ```\n   or if you have `make` installed\n\n   ```shell\n   make install\n   ```\n\n## Configuration\n\nCopy the [`config.example.py`](config.example.py) file to `config.py` and:\n\n- update the `SECRET_KEY` variable with a 32-bit hexadecimal string.\n- update the `DB_*` variables with your database credentials.\n- update the `WEB3_PROVIDER` variable with the URL of your Ethereum node.\n\n## Running\n\n### Development\n\n```shell\nuv run launcher.py # or make debug\n```\n\nor if you have `make` installed\n\n```shell\nmake activate\nmake debug\n```\n\nThe API server will be running at `http://localhost:5000`.\n\n### Production\n\n```shell\nsource .venv/bin/activate # or make activate\ngunicorn --bind 0.0.0.0:5000 launcher:app # or make prod\n```\n\nor if you want to enable SSL support\n\n```shell\nsource .venv/bin/activate # or make activate\ngunicorn --bind 0.0.0.0:5000 launcher:app --certfile cert.pem --keyfile key.pem # or make prods --certfile cert.pem --keyfile key.pem\n```\n\nThe API server will be running at `http://localhost:5000`. The certificate and key files are required for SSL support.\n\n## License\n\n[GNU General Public License v3.0](LICENSE)\n\nCopyright \u0026copy; 2024 [Sayan \"Sn1F3rt\" Bhattacharyya](https://sn1f3rt.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn1f3rt%2Fidensafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsn1f3rt%2Fidensafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn1f3rt%2Fidensafe/lists"}