Module bee_message::prelude[][src]

Expand description

A prelude for the bee-message crate.

Re-exports

pub use crate::address::Address;
pub use crate::constants::IOTA_SUPPLY;
pub use crate::input::Input;
pub use crate::output::Output;
pub use crate::parents::Parents;
pub use crate::parents::MESSAGE_PARENTS_RANGE;
pub use crate::payload::indexation::IndexationPayload;
pub use crate::payload::milestone::MilestonePayload;
pub use crate::payload::milestone::MILESTONE_SIGNATURE_LENGTH;
pub use crate::payload::receipt::ReceiptPayload;
pub use crate::payload::transaction::TransactionPayload;
pub use crate::payload::transaction::TransactionPayloadBuilder;
pub use crate::payload::treasury::TreasuryTransactionPayload;
pub use crate::payload::Payload;
pub use crate::signature::SignatureUnlock;
pub use crate::unlock::UnlockBlock;
pub use crate::unlock::UnlockBlocks;

Structs

Ed25519Address

An Ed25519 address.

Ed25519Signature

An Ed25519 signature.

Message

Represent the object that nodes gossip around the network.

MessageBuilder

A builder to build a Message.

MessageId

A message identifier, the BLAKE2b-256 hash of the message bytes. See https://www.blake2.net/ for more information.

MigratedFundsEntry

Describes funds which were migrated from a legacy network.

MilestoneId

A milestone identifier, the BLAKE2b-256 hash of the milestone bytes. See https://www.blake2.net/ for more information.

MilestoneIndex

A wrapper around a u32 that represents a milestone index.

MilestonePayloadEssence

Essence of a milestone payload. This is the signed part of a milestone payload.

OutputId

The identifier of an Output.

PaddedIndex

An indexation payload index padded with 0 up to the maximum length.

ReferenceUnlock

An UnlockBlock that refers to another unlock block.

RegularEssence

A transaction regular essence consuming inputs, creating outputs and carrying an optional payload.

RegularEssenceBuilder

A builder to build a RegularEssence.

SignatureLockedDustAllowanceOutput

A SignatureLockedDustAllowanceOutput functions like a SignatureLockedSingleOutput but as a special property it is used to increase the allowance/amount of dust outputs on a given address.

SignatureLockedSingleOutput

An output type which can be unlocked via a signature. It deposits onto one single address.

TailTransactionHash

Represents a tail transaction hash of a legacy bundle.

TransactionId

A transaction identifier, the BLAKE2b-256 hash of the transaction bytes. See https://www.blake2.net/ for more information.

TreasuryInput

TreasuryInput is an input which references a milestone which generated a TreasuryOutput.

TreasuryOutput

TreasuryOutput is an output which holds the treasury of a network.

UtxoInput

Represents an input referencing an output.

Enums

Error

Error occurring when creating/parsing/validating messages.

Essence

A generic essence that can represent different types defining transaction essences.

Constants

ED25519_ADDRESS_LENGTH

The number of bytes in an Ed25519 address. See https://en.wikipedia.org/wiki/EdDSA#Ed25519 for more information.

MESSAGE_ID_LENGTH

The length of a message identifier.

MESSAGE_LENGTH_MAX

The maximum number of bytes in a message.

MESSAGE_LENGTH_MIN

The minimum number of bytes in a message.

MILESTONE_ID_LENGTH

The length of a milestone identifier.

MILESTONE_MERKLE_PROOF_LENGTH

Length of a milestone merkle proof.

MILESTONE_PUBLIC_KEY_LENGTH

Length of a milestone public key.

OUTPUT_ID_LENGTH

The length of an OutputId.

TAIL_TRANSACTION_HASH_LEN

The length of a tail transaction hash.

TRANSACTION_ID_LENGTH

The length of a transaction identifier.