{"id":30830661,"url":"https://github.com/psyprotocol/sp1-dogecoin-scrypt-hash","last_synced_at":"2025-09-06T15:56:50.469Z","repository":{"id":294518259,"uuid":"984145091","full_name":"PsyProtocol/sp1-dogecoin-scrypt-hash","owner":"PsyProtocol","description":"Computes scrypt_1024_1_1_256 in a ZKP because we don't have enough compute resources to even do one scrypt_ro_mix on chain 😄","archived":false,"fork":false,"pushed_at":"2025-05-15T13:17:22.000Z","size":142,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T21:04:29.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PsyProtocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","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":"2025-05-15T13:16:44.000Z","updated_at":"2025-05-15T13:17:30.000Z","dependencies_parsed_at":"2025-05-20T21:19:35.589Z","dependency_job_id":null,"html_url":"https://github.com/PsyProtocol/sp1-dogecoin-scrypt-hash","commit_stats":null,"previous_names":["psyprotocol/sp1-dogecoin-scrypt-hash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PsyProtocol/sp1-dogecoin-scrypt-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsyProtocol%2Fsp1-dogecoin-scrypt-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsyProtocol%2Fsp1-dogecoin-scrypt-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsyProtocol%2Fsp1-dogecoin-scrypt-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsyProtocol%2Fsp1-dogecoin-scrypt-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PsyProtocol","download_url":"https://codeload.github.com/PsyProtocol/sp1-dogecoin-scrypt-hash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsyProtocol%2Fsp1-dogecoin-scrypt-hash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273926536,"owners_count":25192318,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2025-09-06T15:56:40.208Z","updated_at":"2025-09-06T15:56:50.461Z","avatar_url":"https://github.com/PsyProtocol.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrypt Block Header Hash Prover for Solana Bridge by Psy\n\n## Motivation\nUnfortunately Solana does not have enough memory/compute resources to compute a single scrypt hash -- but don't fret!\n\nWe can still verify Dogecoin Proof of Work consensus on Solana via a ZKP.\n\n\n\n## IMPORTANT\n** THIS CODE HAS NOT BEEN AUDITED, DO NOT USE IN PRODUCTION **\n\n\n\n### Build the Program\n\nTo build the program, run the following command:\n\n```sh\ncd program\ncargo prove build\n\n```\n\n### Execute the Program to Compute the Scrypt Hash of Some example Dogecoin blocks\n\nTo run the program without generating a proof:\n\n```sh\ncd script\nRUST_LOG=info cargo run --release --bin mg16 -- --input ./data/block_headers_5610384-5610884.json --output ./data/block_headers_5610384-5610884_output.json --execute\n```\n\nThis will execute the program and display the output.\n\n### Generate Proofs (The format == DogeBlockScryptProofOutput for proof work proving worker)\n\nTo generate a scrypt proof for the dogecoin blocks + get vkey for the contract:\n\n```sh\ncd script\nRUST_LOG=info cargo run --release --bin mg16 -- --input ./data/block_headers_5610384-5610884.json --output ./data/block_headers_5610384-5610884_output.json --prove\n```\n\n\nThe MIT License (MIT)\n\nCopyright (c) 2025 Zero Knowledge Labs Limited - Psy.xyz\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyprotocol%2Fsp1-dogecoin-scrypt-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsyprotocol%2Fsp1-dogecoin-scrypt-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyprotocol%2Fsp1-dogecoin-scrypt-hash/lists"}