{"id":25703424,"url":"https://github.com/dashpay/rs-x11-hash","last_synced_at":"2025-07-20T10:34:46.192Z","repository":{"id":64964573,"uuid":"568803231","full_name":"dashpay/rs-x11-hash","owner":"dashpay","description":"Rust bindings for X11 hash","archived":false,"fork":false,"pushed_at":"2024-04-22T13:23:20.000Z","size":140,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-02T13:48:11.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/dashpay.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":"2022-11-21T12:51:00.000Z","updated_at":"2024-04-21T23:34:36.000Z","dependencies_parsed_at":"2024-06-10T18:13:12.825Z","dependency_job_id":null,"html_url":"https://github.com/dashpay/rs-x11-hash","commit_stats":null,"previous_names":["pankcuf/rs-x11-hash"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dashpay/rs-x11-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Frs-x11-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Frs-x11-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Frs-x11-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Frs-x11-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashpay","download_url":"https://codeload.github.com/dashpay/rs-x11-hash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpay%2Frs-x11-hash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266111439,"owners_count":23877980,"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-25T05:29:32.517Z","updated_at":"2025-07-20T10:34:46.173Z","avatar_url":"https://github.com/dashpay.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rs-x11-hash\nRust bindings for x11 hash\n\u003e Performs the [x11 hashing](https://docs.dash.org/en/latest/introduction/features.html#x11-hash-algorithm) algorithm used in the [Dash cryptocurrency](https://dash.org) in JavaScript.\n\nx11 hashing algorithm sequentially uses:\n\n```\n• BLAKE\n• BLUE MIDNIGHT WISH (BMW)\n• Groestl\n• JH\n• Keccak (An algorithm whose variant gave rise to SHA-3)\n• Skein\n• Luffa\n• CubeHash\n• SHavite-3\n• SIMD\n• ECHO\n```\n\nC-sources taken from [DashSync](https://github.com/dashpay/dashsync-iOS/tree/master/DashSync/shared/crypto/x11)\n\n## Usage\n\nInstall the library as a Cargo crate.\n\n```\n$ cargo install rs-x11-hash\n```\nor use as a dependency in Cargo.toml\n\n```\n[dependencies]\nrs-x11-hash = \"0.1.5\"\n```\n\nReference the library\n\n```rust\nuse hex::{FromHex, ToHex};\nlet x11 = \"020000002cc0081be5039a54b686d24d5d8747ee9770d9973ec1ace02e5c0500000000008d7139724b11c52995db4370284c998b9114154b120ad3486f1a360a1d4253d310d40e55b8f70a1be8e32300\";\nlet x11_vec = Vec::from_hex(x11).unwrap();\nlet md = rs_x11_hash::get_x11_hash(x11_vec);\nprintln!(\"input: {}\", x11);\nprintln!(\"output: {:?}\", md.encode_hex::\u003cString\u003e());\nassert_eq!(md.to_vec(), Vec::from_hex(\"f29c0f286fd8071669286c6987eb941181134ff5f3978bf89f34070000000000\").unwrap())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpay%2Frs-x11-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashpay%2Frs-x11-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpay%2Frs-x11-hash/lists"}