{"id":19257603,"url":"https://github.com/milesrack/cybercoin","last_synced_at":"2025-08-22T22:03:31.090Z","repository":{"id":65959998,"uuid":"594905408","full_name":"milesrack/cybercoin","owner":"milesrack","description":"A blockchain implementation for the \"Cybercoin\" (CYB) cryptocurrency at CBCYBER.","archived":false,"fork":false,"pushed_at":"2023-03-04T02:52:47.000Z","size":106,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T14:20:56.621Z","etag":null,"topics":["blockchain","blockchain-demo","blockchain-demos","blockchain-technology","crypto","cryptocurrencies","cryptocurrency","cybercoin","proof-of-work","python","python-blockchain","python-package","python3","python3-package"],"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/milesrack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-01-30T00:50:36.000Z","updated_at":"2025-02-18T15:46:37.000Z","dependencies_parsed_at":"2023-06-10T15:00:27.896Z","dependency_job_id":null,"html_url":"https://github.com/milesrack/cybercoin","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":0.4838709677419355,"last_synced_commit":"93549212fa88246395c78f730b860f73542b2f8c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesrack%2Fcybercoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesrack%2Fcybercoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesrack%2Fcybercoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesrack%2Fcybercoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milesrack","download_url":"https://codeload.github.com/milesrack/cybercoin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250080631,"owners_count":21371541,"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","blockchain-demo","blockchain-demos","blockchain-technology","crypto","cryptocurrencies","cryptocurrency","cybercoin","proof-of-work","python","python-blockchain","python-package","python3","python3-package"],"created_at":"2024-11-09T19:10:47.681Z","updated_at":"2025-04-21T15:31:23.432Z","avatar_url":"https://github.com/milesrack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cybercoin :computer:\nA blockchain implementation for the Cybercoin (CYB) cryptocurrency at CB CYBER.\n\n## :pushpin: Requirements\n- docker\n\n## :pushpin: Installation\n```bash\ngit clone https://github.com/milesrack/cybercoin\ncd cybercoin\n```\n\n## :pushpin: Getting Started\n### Building the Image\n```bash\ndocker build -t cybercoin:latest .\n```\n\n### Running the Container\n```bash\ndocker run --rm -v $(pwd):/opt/cybercoin -p 8000:8000 -d cybercoin:latest\n```\n\n### Wallet Keys\nPrivate keys for your cybercoin wallet are stored in a shared volume under the `keys/` folder.\n\n### Logs\nThe `access.log` and `error.log` files are stored in a shared volume under the `logs/` folder.\n\n### Editing the Configuration\n```bash\n$ cat config.py\n```\n```python\nregistration_node = \"http://127.0.0.1:8000/\"\nprivate_key = \"\"\n\nport = \"8000\"\nbind = \"0.0.0.0:\" + port\nwsgi_app = \"app:app\"\naccesslog = \"logs/access.log\"\nerrorlog = \"logs/error.log\"\npidfile = \"/tmp/gunicorn.pid\"\nworker_class = \"gevent\"\ndaemon = True\n```\n\n`registration_node`: The API endpoint of a valid cybercoin node to sync with. By default this is localhost.\n\n`private_key`: The private key of a wallet you wish to import. This wallet will recieve transaction fees and block rewards for blocks that the node mines. If you leave this value blank a new wallet will be created.\n\n### `manage.sh`\nThe `manage.sh` file is used to start, stop, and clean files for the cybercoin node. This may be useful if you want to debug issues or change settings inside the container.\n\nFirst find the `CONTAINER ID` of the running cybercoin node:\n```\ndocker ps\n```\n\nThen open an interactive shell inside the container:\n```\ndocker exec -it \u003cCONTAINER ID\u003e /bin/sh\n```\n\nTo stop the cybercoin node:\n```\n./manage.sh stop\n```\n\nTo start the cybercoin node:\n```\n./manage.sh start\n```\n\nTo clean files (logs, private keys, and cached files):\n```\n./manage.sh clean\n```\n\n## :pushpin: API Endpoints\n### `/`\n\n### `/wallets`\n\n### `/wallets/new`\n\n### `/wallets/\u003caddress\u003e`\n\n### `/length`\n\n### `/blocks`\n\n### `/blocks/last`\n\n### `/blocks/\u003cindex\u003e`\n\n### `/difficulty`\n\n### `/fee`\n\n### `/reward`\n\n### `/transactions`\n\n### `/transactions/unconfirmed`\n\n### `/transactions/unconfirmed/\u003ctxid\u003e`\n\n### `/transactions/unconfirmed/wallet/\u003caddress\u003e/`\n\n### `/transactions/wallet/\u003caddress\u003e`\n\n### `/transactions/\u003ctxid\u003e`\n\n### `/mine`\n\n### `/validate`\n\n### `/nodes`\n\n## :pushpin: License\nLicensed under the [GNU General Public License Version 3.0](https://www.gnu.org/licenses/gpl-3.0.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesrack%2Fcybercoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilesrack%2Fcybercoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesrack%2Fcybercoin/lists"}