Skip to main content

Crate yedad_ladder

Crate yedad_ladder 

Source
Expand description

§yedad_ladder

Optimized core implementation of the Yedad ladder hash algorithm.

This library provides structures and methods for generating a hierarchical hash ladder from a private key, producing verifiable proofs, and securely advancing through ladder steps. It is suitable for deterministic key derivation, proof generation, and lightweight cryptographic operations.

Structs§

Account
Represents an account with ladder state derived from a private key.
Slot
Represents a single ladder slot, maintaining current state.
Yedad
Core Yedad ladder structure holding the master seed.

Enums§

YedadError
Errors that can occur in Yedad ladder operations.

Constants§

DEFAULT_LADDER_HEIGHT
Default ladder height (number of steps)
HASH_SIZE
Hash size in bytes (32 bytes for SHA-256)
MASTER_SEED_ROUNDS
Number of rounds used for Master Seed generation
ROOT_GENERATION_ROUNDS
Number of rounds used for root generation

Functions§

double_hash
Public double hash in the step domain.

Type Aliases§

Hash
Type alias for a 32-byte SHA-256 hash