Core primitives for Ethereum Swarm: content-addressed and single-owner chunks, Swarm addresses, and the Binary Merkle Tree (BMT) hasher with proof generation.
Part of the nectar workspace, a collection of low-level Ethereum Swarm primitives in Rust. See the workspace README for the full crate list and project context.
[dependencies]
nectar-primitives = "0.1"use nectar_primitives::DefaultContentChunk;
let chunk = DefaultContentChunk::new(b"Hello, world!".as_slice()).unwrap();
let address = chunk.address();This crate is no_std compatible (default features enable std).
AGPL-3.0-or-later. See LICENSE.