{"id":21336808,"url":"https://github.com/dan-da/zcash-util","last_synced_at":"2026-02-24T21:33:22.446Z","repository":{"id":72068258,"uuid":"55948425","full_name":"dan-da/zcash-util","owner":"dan-da","description":"zcash utiltiies","archived":false,"fork":false,"pushed_at":"2016-08-18T16:39:14.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-04T00:04:04.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dan-da.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2016-04-11T06:47:22.000Z","updated_at":"2018-04-28T17:24:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"05658033-a055-48db-a9d6-782c7af2e236","html_url":"https://github.com/dan-da/zcash-util","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dan-da/zcash-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-da%2Fzcash-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-da%2Fzcash-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-da%2Fzcash-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-da%2Fzcash-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dan-da","download_url":"https://codeload.github.com/dan-da/zcash-util/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-da%2Fzcash-util/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29801021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T21:02:39.706Z","status":"ssl_error","status_checked_at":"2026-02-24T21:02:21.834Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-21T23:55:22.902Z","updated_at":"2026-02-24T21:33:22.415Z","avatar_url":"https://github.com/dan-da.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zcash-util : Utility scripts for zcash\n\nThese are some scripts I am making while experimenting with zcash.\nMaybe someone else will find them useful.\n\nSo far I just have the protect_coins script, but will likely add more.\n\n## protect_coins.php\n\nThere is now also a protect_coins.py (python) that works exactly the same.\n\n### Example Run\n\n( long fields have been abbreviated for brevity )\n\n\u003cpre\u003e\n$ ./protect_coins.php --unspent=first\n\n\n-- Listing Unspent Coins --\n\nexecuting: ./src/zcash-cli listunspent \n\n\nResult:\n[\n    {\n        \"txid\": \"2019...a6f1\",\n        \"vout\": 0,\n        \"address\": \"mxFMkDZu19QECvqoCn67FQgvYi2Dbsp71Y\",\n        \"scriptPubKey\": \"2102...32ac\",\n        \"amount\": 50,\n        \"confirmations\": 258,\n        \"spendable\": true\n    }\n]\n\n\n\n-- Unspent Coins Chosen --\n  User's choice: first\n\n\nResult:\n[\n    {\n        \"txid\": \"2019...a6f1\",\n        \"vout\": 0,\n        \"address\": \"mxFMkDZu19QECvqoCn67FQgvYi2Dbsp71Y\",\n        \"scriptPubKey\": \"2102...32ac\",\n        \"amount\": 50,\n        \"confirmations\": 258,\n        \"spendable\": true\n    }\n]\n\n\n\n-- Generating Address --\n\nexecuting: ./src/zcash-cli zcrawkeygen \n\n\nResult:\n{\n    \"zcaddress\": \"20ad....1070\",\n    \"zcsecretkey\": \"20e5...cc92\"\n}\n\n\n\n-- Creating Raw Tx --\n\nexecuting: ./src/zcash-cli createrawtransaction '[{\"txid\":\"2019...a6f1\",\"vout\":0}]' '{}' \n\n\nResult:\n\"0100...0000\"\n\n\n\n-- Calling zcrawpour --\n\nexecuting: ./src/zcash-cli zcrawpour '0100...1070\":49.9}' '50' '0.1' \n\n\nResult:\n{\n    \"encryptedbucket1\": \"04f7...c275\",\n    \"encryptedbucket2\": \"04e5f...d2c4\",\n    \"rawtxn\": \"...\"\n}\n\n\n\n-- Signing Tx --\n\nexecuting: ./src/zcash-cli signrawtransaction '...' \n\n\nResult:\n{\n    \"hex\": \"...\",\n    \"complete\": true\n}\n\n\n\n-- Sending the Tx to ourself --\n\nexecuting: ./src/zcash-cli sendrawtransaction '0200...330a' \n\n\nResult:\n\"9ae8...230b\"\n\n\n\n-- Decrypting the received Tx --\n\nexecuting: ./src/zcash-cli zcrawreceive '20e5...c92' '04f7...c275' \n\n\nResult:\n{\n    \"amount\": 49.9,\n    \"bucket\": \"805b...4c68\",\n    \"exists\": false\n}\n\n\n\n-- Done! --\n\n\n\u003c/pre\u003e\n\n\n\n### Usage\n\n   $ ./protect_coins.php \n\n    protect_coins.php --unspent=\u003carg\u003e\n\n    This script makes public funds (utxo) into private funds.\n\n    Required:\n\n    --unspent=\u003carg\u003e       all|first|last|\u003ctxlist\u003e\n                           all    = convert all unspent outputs\n                           first  = convert first unspent output\n                           last   = convert last unspent output\n                           txlist = one or more txid, comma separated.\n\n    Optional:\n\n    --fee=\u003camt\u003e           fee amount.  default = 0\n\n    --zcash-cli=\u003cpath\u003e    path to zcash-cli.  default = './src/zcash-cli'\n\n    --verbosity=\u003clevel\u003e   silent|results|full|debug   default = full\n\n    --help                display usage information\n\n\n# Requirements\n\nPHP 5.x command-line interpreter installed in your path.\n\n# Installation and Running.\n\n```\n git clone or download/unzip file.\n cd zcash-util\n chmod +x protect_coins.php  ( if necessary )\n ./protect_coins.php --unspent=first\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-da%2Fzcash-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-da%2Fzcash-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-da%2Fzcash-util/lists"}