Module iota_lib_rs::crypto [−][src]
Provides all crypto algorithms and data structures used by Iota
Modules
iss |
Provides access to ISS crypto functionality |
signing |
Provides access to the signing functionality |
Structs
Curl |
The Curl struct is a Sponge that uses the Curl hashing algorithm. |
HMAC |
HMAC uses curl to provide an extra layer of verification to bundles |
Keccak |
This structure should be used to create keccak/sha3 hash. |
Kerl |
The Kerl struct is a Sponge that uses the Keccak hashing algorithm. |
PearlDiver |
The PearlDiver struct allows you to start, stop, and check in on PoW while its working |
Enums
HashMode |
Mode allows for mode selection to rely on rusts type system |
PearlDiverState |
State represents the various states that PearlDiver will be in throughout its life |
Constants
HASH_LENGTH |
The length of a hash in IOTA |
STATE_LENGTH |
The length of the internal state |
Traits
Sponge |
The sponge trait specifys the main functionality of all sponges used throughout IOTA |
Functions
bytes_to_trits |
Converts bytes to trits |
hash_with_mode |
Allows you to hash |
trits_to_bytes |
Converts trits to bytes |