p2panda-rs 0.7.0

All the things a panda needs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: AGPL-3.0-or-later

//! Hash type of p2panda using BLAKE3 algorithm wrapped in [`YASMF`]
//! "Yet-Another-Smol-Multi-Format".
//!
//! The original Bamboo specification calls for [`YAMF`] hashes, which have 512 bit Blake2b hashes.
//! We are using YASMF, which has shorter, 256 bit Blake3 hashes.
//!
//! [`YASMF`]: https://github.com/bamboo-rs/yasmf-hash
//! [`YAMF`]: https://github.com/bamboo-rs/yamf-hash
pub mod error;
#[allow(clippy::module_inception)]
mod hash;

#[cfg(any(feature = "test-utils", test))]
pub use hash::Blake3ArrayVec;
pub use hash::{Hash, HASH_SIZE};