Module iota_lib_rs::utils[][src]

Provides many useful helper functions that are used throughout the library

Modules

constants

Provides constants for use throughout the library

converter

Provides useful conversions between trinary types

input_validator

Provides validation for types used throughout the library

trit_adder

Provides an adder that sums to slices of trits

trytes_converter

Provides a converter between ascii and tryte-encoded strings

unit_converter

Provides unit conversion for Iota

Structs

StopWatch

Provides a stopwatch for measuring how long things take... this might seem like a weird addition to the library, but it was in Jota...so I put it here. If no one uses this, I'll probably remove it later.

Enums

IotaUnits

Provides an enum representing all units of IOTA

Functions

add_checksum

Adds a checksum to provided address

generate_new_seed

Generates a cryptographically secure random seed

is_address_with_checksum

Checks if an address has a checksum

is_address_without_checksum

Checks if an address does not have a checksum

is_bundle

Validates that a slice of transactions is a valid bundle

is_valid_checksum

If an address has a valid checksum

remove_checksum

Removes a checksum from the provided address

right_pad_string

Right pads a string to a certain length in place

right_pad_vec

Right pads a vector to a certain length in place