nectar-primitives 0.1.1

Core primitives for Ethereum Swarm: chunks, addresses, and binary merkle trees
Documentation

nectar-primitives

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.

Usage

[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).

License

AGPL-3.0-or-later. See LICENSE.