Expand description

A function to calculate lipmaa sequence numbers.

From the bamboo spec: “The lipmaalinks are chosen such that for any pair of entries there is a path from the newer to the older one of a length logarithmic in their distance.”

use lipmaa_link::lipmaa;

let result = lipmaa(13);
assert_eq!(result, 4);

Constants

The number of lipmaa links needed to traverse from u64::MAX back to 0;

Functions

Get all the lipmaa link numbers back to some other lipmaa_link in descending order

Get all the lipmaa link numbers between n and 0

Will n create a “skip” link rather than just n - 1

Calculates the lipmaa link number given the current sequence number.