https://github.com/murphsicles/murmur3
Zeta crate: murmur3
https://github.com/murphsicles/murmur3
Last synced: 22 days ago
JSON representation
Zeta crate: murmur3
- Host: GitHub
- URL: https://github.com/murphsicles/murmur3
- Owner: murphsicles
- License: mit
- Created: 2026-05-16T17:39:13.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-17T15:13:32.000Z (2 months ago)
- Last Synced: 2026-05-17T17:37:03.926Z (2 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @crypto/murmur3
MurmurHash3 32-bit for Zeta — used in BSV P2P bloom filters.
## Why This Exists
BSV nodes use bloom filters for lightweight transaction filtering (SPV). MurmurHash3 32-bit is the hash function used in the bloom filter implementation.
This crate provides a clean, minimal implementation of MurmurHash3 for Zeta.
## Usage
```zeta
use @crypto/murmur3::{murmur3_32, Murmur3_32};
// Function interface
let hash: u32 = murmur3_32(key, seed);
// Struct interface
let hash = Murmur3_32::hash(key, seed);
let value: u32 = hash.value();
```
## API
### Functions
```zeta
pub fn murmur3_32(key: &[u8], seed: u32) -> u32
```
### Types
```zeta
pub struct Murmur3_32 {
fn hash(data: &[u8], seed: u32) -> Self;
fn value(self) -> u32;
}
```
## Reference
- [SMHasher](https://github.com/aappleby/smhasher) — original MurmurHash3 implementation
- BSV P2P protocol for bloom filter integration
## License
MIT
For nour. For Dark Factory. For BSV.