{"id":25417428,"url":"https://github.com/zcloak-network/rescue-hash","last_synced_at":"2025-05-05T20:13:18.742Z","repository":{"id":38097220,"uuid":"498265455","full_name":"zCloak-Network/rescue-hash","owner":"zCloak-Network","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-28T08:41:50.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-05-05T20:13:16.069Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zCloak-Network.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}},"created_at":"2022-05-31T09:15:40.000Z","updated_at":"2022-06-01T03:06:59.000Z","dependencies_parsed_at":"2022-08-18T10:31:28.198Z","dependency_job_id":null,"html_url":"https://github.com/zCloak-Network/rescue-hash","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/zCloak-Network%2Frescue-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zCloak-Network%2Frescue-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zCloak-Network%2Frescue-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zCloak-Network%2Frescue-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zCloak-Network","download_url":"https://codeload.github.com/zCloak-Network/rescue-hash/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252569647,"owners_count":21769517,"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":[],"created_at":"2025-02-16T17:58:48.730Z","updated_at":"2025-05-05T20:13:18.726Z","avatar_url":"https://github.com/zCloak-Network.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rescue-hash\nThis is a wasm version of rescue-hash.\n\n## 1. What this can do?\n1. It can do standardized rescue hash for 2 data. Such as Hash(A,B) =\u003e C (A,B and C shoud be `[u64;4]`, each data should contain 4 `u64` elements).\n2. It can do rescue hash consecutively, in other word, it can Hash(A,B,C,D,....) =\u003e Hash(A,(B,(C,D)...)) Each data should contain 4 `u64` elements as well).\n   \n\n## 2. Input and Outputs\nThe `inputs` specifies the rescue input, it should contain 8 elements or more(over 8 but should be some multiple of 4);\n\nThe `outputs` is the rescue result, which contains 4 elements as `Vec\u003cu64\u003e`.\n\n\n## 3. How to use it ?\n### a. For local test\nRun the following commands:\n\n```bash\nwasm-pack build --target web\n```\n\n```bash\npython -m http.server 8008\n```\n\n\nAnd then you could see the hash result through your browser at `http://localhost:8008/`\n\n### b. For Js\nRun the following commands:\n\n```bash\nwasm-pack build --target nodejs\n```\n\nMove the pkg file to the workspace and run:\n\n\n```bash\nnpm install ./pkg\n```\n\nand then you can use this rescue as a module.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcloak-network%2Frescue-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcloak-network%2Frescue-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcloak-network%2Frescue-hash/lists"}