{"id":21177275,"url":"https://github.com/codechain-io/rust-iblt","last_synced_at":"2025-07-09T22:30:31.831Z","repository":{"id":57634470,"uuid":"132282709","full_name":"CodeChain-io/rust-iblt","owner":"CodeChain-io","description":"Invertible bloom lookup table implementation in Rust","archived":false,"fork":false,"pushed_at":"2019-10-17T02:09:50.000Z","size":11,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-08T20:54:09.516Z","etag":null,"topics":["iblt","rust"],"latest_commit_sha":null,"homepage":"","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/CodeChain-io.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}},"created_at":"2018-05-05T20:37:40.000Z","updated_at":"2024-12-02T07:43:43.000Z","dependencies_parsed_at":"2022-09-16T03:50:13.189Z","dependency_job_id":null,"html_url":"https://github.com/CodeChain-io/rust-iblt","commit_stats":null,"previous_names":["kais-dkm/rust-iblt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeChain-io/rust-iblt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Frust-iblt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Frust-iblt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Frust-iblt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Frust-iblt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeChain-io","download_url":"https://codeload.github.com/CodeChain-io/rust-iblt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Frust-iblt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504569,"owners_count":23618824,"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":["iblt","rust"],"created_at":"2024-11-20T17:15:23.027Z","updated_at":"2025-07-09T22:30:31.578Z","avatar_url":"https://github.com/CodeChain-io.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IBLT\n\nInvertible bloom lookup table implementation in rust.\n\n`IBLT` uses bincode for serialization/deserialization of key and values, so both key and value type must implement `Serialize` and `Deserialize`. If two serialized values have different length, zero padding is added at the end of shorter value for xor operation.\n\nHash function can be specified by creating `IBLT` with `with_hasher` function. Hash value for `hash_sum` is calculated as `hash(val)`, and index is calculated as `hash(hash(val)), hash(hash(hash(val))), ...`. If hasher is not specified, `DefaultHasher` from `std::collections::hash_map` is used.\n\n## Example\n```rust\n  /// encoding\n  let mut iblt = IBLT::new(10, 3);\n  target.insert(\"378b8bc3\".to_string(), \"4725a63a\".to_string());\n  target.insert(\"3f84ef5a\".to_string(), \"fbfc32d3\".to_string());\n  target.insert(\"8afb596f\".to_string(), \"40abfd05\".to_string());\n  target.insert(\"ec276396\".to_string(), \"a866db2e\".to_string());\n  target.insert(\"e785c851\".to_string(), \"0603063c\".to_string());\n\n  /// decoding\n  match iblt.decode() {\n    Ok((left, right)) =\u003e { ... },\n    Err(e) =\u003e { ... },\n  }\n```\n\n## TODO\n* Subtraction and set reconciliation\n* Unsafe serialize/deserialize with std\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Frust-iblt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodechain-io%2Frust-iblt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Frust-iblt/lists"}