Crate bee_tangle[][src]

A crate that contains foundational building blocks for the IOTA Tangle.

Re-exports

pub use ms_tangle::MsTangle;
pub use tangle_worker::TangleWorker;

Modules

config

Types used for tangle configuration.

event

Types that represent tangle events.

flags

Message flags.

metadata

Message data, including message flags.

ms_tangle

Milestone-enabled tangle type.

solid_entry_point

Types used to represent SEPs (Solid Entry Points). A SolidEntryPoint is a [MessageId] of a message that is solid even if we do not have them or their past in the database. They often come from a snapshot file and allow a node to solidify without needing the full tangle history.

storage

Types used for interoperation with a node’s storage layer.

tangle_worker

The overall TangleWorker type. Used as part of the bee runtime in a node.

tip_pool_cleaner_worker

A worker that periodically cleans the tip pool.

traversal

Common tangle traversal functionality. Collection of Tangle traversal functions.

unreferenced_message

Types used to represent unreferenced messages.

urts

The URTS tips pool.

Structs

MessageRef

A thread-safe reference to a Message.

Tangle

A foundational, thread-safe graph datastructure to represent the IOTA Tangle.

Traits

Hooks

A trait used to provide hooks for a tangle. The tangle acts as an in-memory cache and will use hooks to extend its effective volume. When an entry doesn’t exist in the tangle cache and needs fetching, or when an entry gets inserted, the tangle will call out to the hooks in order to fulfil these actions.

Functions

init

Initiate the tangle on top of the given node builder.