{"id":19724957,"url":"https://github.com/vgsantoniazzi/blockchain","last_synced_at":"2025-04-29T23:30:33.076Z","repository":{"id":78379574,"uuid":"266906464","full_name":"vgsantoniazzi/blockchain","owner":"vgsantoniazzi","description":"blockchain — A Elixir-based blockchain engine.","archived":false,"fork":false,"pushed_at":"2020-06-25T01:00:00.000Z","size":14,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T20:05:47.125Z","etag":null,"topics":["blockchain-engine","cli","elixir","engine","proof-of-work","public-private-key"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vgsantoniazzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2020-05-26T00:20:07.000Z","updated_at":"2024-07-22T18:39:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f16c1592-e6eb-44ed-aece-2644c451439a","html_url":"https://github.com/vgsantoniazzi/blockchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Fblockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Fblockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Fblockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Fblockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vgsantoniazzi","download_url":"https://codeload.github.com/vgsantoniazzi/blockchain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599683,"owners_count":21615569,"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-engine","cli","elixir","engine","proof-of-work","public-private-key"],"created_at":"2024-11-11T23:27:41.759Z","updated_at":"2025-04-29T23:30:33.059Z","avatar_url":"https://github.com/vgsantoniazzi.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Welcome to Blockchain\n\nThis project is an open-source blockchain engine based on Elixir. Use this engine to build a digital coin or smart contracts.\n\n## Getting Started\n\nClone the project:\n\n```\ngit clone git@github.com:vgsantoniazzi/blockchain.git\n```\n\n## Usage\n\n##### Install dependencies\n\n```\n$ mix deps.get\n```\n\n## CLI\n\n```\n$ mix blockchain\n\nCommands\n   balance         Get balance\n   check_address   Check if address is valid\n   check_block     Check if block is valid\n   add_wallet      Add new wallet to local database\n   add_block       Add new block to blockchain\n   wallets         List addresses\n   blocks          Lists the blockchain\n\n```\n\n## CLI Examples\n\n```\n$ mix blockchain balance --address 3czs3SwkAnisqC3cUBi5XgytkA2NscG33AJ7YKhaz9scd2XY9pUqQktrXcZQ5aFa6VPCFT\n$ mix blockchain check_address --address 3czzKxPGECGxsfwG1zVUBvUxxe7c7AbPoburpmFdJxQdDyeT8Ng8KSCLmk2ewmQnKVPVAy\n$ mix blockchain check_block --block 0000C12AC4308926C493DBC3C93A4EBB724D6B2B480358E56E72ED394149F8CD\n$ mix blockchain add_wallet\n$ mix blockchain add_block --from \"3czs3SwkAnisqC3cUBi5XgytkA2NscG33AJ7YKhaz9scd2XY9pUqQktrXcZQ5aFa6VPCFT\" --to \"3czzX9L9P8Sg1MhuZER1hekBde4bmyNwkER5FARYmVLb99Kn5efEXE65zJ5GDQ3zqZn2SX\" --value 455\n$ mix blockchain wallets\n$ mix blockchain blocks\n```\n\n##### Initialize engine\n\n```\n$ iex -S mix\n```\n\n##### Initialize Blockchain\n\n```\niex(1)\u003e blockchain = Engine.initialize\n```\n\n##### Add Block to Blockchain\n\n```\niex(1)\u003e blockchain = Blockchain.add(blockchain, Block.generate(List.last(blockchain), 99))\n```\n\n##### Format code\n\n```\nmix format\n```\n\n## Contributing\n\nI :heart: Open source!\n\nBefore sending a pull request: Please, format the source code\n\n```\nmake format\n```\n\n[Follow github guides for forking a project](https://guides.github.com/activities/forking/)\n\n[Follow github guides for contributing open source](https://guides.github.com/activities/contributing-to-open-source/#contributing)\n\n[Squash pull request into a single commit](http://eli.thegreenplace.net/2014/02/19/squashing-github-pull-requests-into-a-single-commit/)\n\n## License\n\nblockchain-engine is released under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvgsantoniazzi%2Fblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvgsantoniazzi%2Fblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvgsantoniazzi%2Fblockchain/lists"}