pub async fn timelock_async(
cadence: Option<TimeLockCadence>,
time: Option<TimeLockTime>,
precision: Option<TimePrecision>,
format: Option<TimeFormat>,
salts: Option<TimeLockSalts>,
kdf: Option<KdfParams>,
params: Option<TimeLockParams>,
) -> Result<TimeLockKey, TimeLockError>Expand description
Derive a 32-byte time-locked key โ unified async entry point.
Async counterpart of [timelock]. Same params-based routing: set
params = Some(header) for the decryption path, or params = None
with all other arguments as Some(...) for the encryption path.
All arguments are taken by value; the blocking KDF work is offloaded to a
Tokio blocking thread.
ยงErrors
Same as [timelock], plus TimeLockError::TaskPanic if the spawned
task panics.