{"id":20048472,"url":"https://github.com/aggstam/javablockchain","last_synced_at":"2026-06-08T03:31:56.912Z","repository":{"id":155101757,"uuid":"424334748","full_name":"aggstam/JavaBlockChain","owner":"aggstam","description":"Console application simulating a Product Database using BlockChain.","archived":false,"fork":false,"pushed_at":"2023-01-31T17:07:28.000Z","size":230,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T08:24:39.347Z","etag":null,"topics":["blockchain","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aggstam.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-03T18:18:05.000Z","updated_at":"2022-11-05T12:48:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"88c8db7b-c254-49f0-a796-f0bf07e98f5e","html_url":"https://github.com/aggstam/JavaBlockChain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aggstam/JavaBlockChain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2FJavaBlockChain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2FJavaBlockChain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2FJavaBlockChain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2FJavaBlockChain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aggstam","download_url":"https://codeload.github.com/aggstam/JavaBlockChain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2FJavaBlockChain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34047266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","java"],"created_at":"2024-11-13T11:44:13.302Z","updated_at":"2026-06-08T03:31:56.907Z","avatar_url":"https://github.com/aggstam.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaBlockChain\nThis console application simulates a Product Database using Block Chain.\n\u003cbr\u003e\nUsers can interact by selecting an action with their input.\n\u003cbr\u003e\nNote: project requires *java* to be installed.\n\u003cbr\u003e\nExternal jar gson-2.8.2 is provided\n\n## Usage\nFirst we compile the project:\n```shell\n$ javac -cp libs/gson-2.8.2.jar src/**/*.java -d bin\n```\nThen we can execute:\n```shell\n$ java -cp libs/gson-2.8.2.jar:.:bin com.blockchain.Main\n```\n\n## Execution example\n```shell\n$ java -cp libs/gson-2.8.2.jar:.:bin com.blockchain.Main\nJan 22, 2023 4:43:34 PM com.blockchain.Main main\nINFO: Product Block Chain application started.\nJan 22, 2023 4:43:34 PM com.blockchain.Main retrieveInputAction\nINFO: Enter action:\nstatistics\nJan 22, 2023 4:43:43 PM com.blockchain.Main retrieveInputAction\nINFO: User input: statistics\nJan 22, 2023 4:43:43 PM com.blockchain.Main retrieveProductBlockStatistics\nINFO: Search for a Product Block to retrieve its Statistics.\nJan 22, 2023 4:43:43 PM com.blockchain.Main retrieveProductBlockStatistics\nINFO: Provide Product Code to search:\n001\nJan 22, 2023 4:44:00 PM com.blockchain.StopWatch start\nINFO: Process displayProductStatistics started.\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: Product found:\n{\n  \"hash\": \"00000022a1fdf528b5571951e846f64abd31cb02e91dab82db1cbccb56e40d00\",\n  \"previousHash\": \"00000096714c61b4057b79eda9df5aa0bf1db428daadaf9fdd8aa59f166073ed\",\n  \"blockId\": 157,\n  \"productCode\": \"001\",\n  \"productTitle\": \"First Product\",\n  \"productPrice\": 10.5,\n  \"productCategory\": \"001\",\n  \"productDescription\": \"Testing Blockchain actions\",\n  \"productPreviousRecordId\": 154,\n  \"timestamp\": 1575843735065,\n  \"nonce\": 42181197\n}\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: - Price changes:\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: \t2019/12/09 00:22:15 -\u003e 10.5\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: \t2019/12/09 00:21:54 -\u003e 10.5\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: \t2019/12/09 00:20:09 -\u003e 10.5\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: \t2019/12/09 00:18:46 -\u003e 10.5\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: Statistics:\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: - Price median: 10.5\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: - Max price: 10.5\nJan 22, 2023 4:44:00 PM com.blockchain.ProductBlockChain displayProductStatistics\nINFO: - Min price: 10.5\nJan 22, 2023 4:44:00 PM com.blockchain.StopWatch stop\nINFO: Process displayProductStatistics finished. Total time elapsed: 0.06678487 seconds\nJan 22, 2023 4:44:00 PM com.blockchain.Main retrieveInputAction\nINFO: Enter action:\nquit\nJan 22, 2023 4:44:04 PM com.blockchain.Main retrieveInputAction\nINFO: User input: quit\nJan 22, 2023 4:44:04 PM com.blockchain.Main main\nINFO: Product Block Chain application terminated.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fjavablockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faggstam%2Fjavablockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fjavablockchain/lists"}