#numbers #sequence #link #calculate #bamboo #length #lipmaa

no-std lipmaa-link

A function to calculate lipmaa sequence numbers

5 releases

0.2.2 May 10, 2022
0.2.1 May 10, 2022
0.2.0 Nov 9, 2021
0.1.1 Aug 1, 2019
0.1.0 Jul 15, 2019

#40 in #calculate

Download history 72/week @ 2023-12-03 13/week @ 2023-12-10 50/week @ 2023-12-17 28/week @ 2023-12-24 50/week @ 2024-01-07 95/week @ 2024-01-14 127/week @ 2024-01-21 16/week @ 2024-01-28 27/week @ 2024-02-04 23/week @ 2024-02-11 56/week @ 2024-02-18 67/week @ 2024-02-25 52/week @ 2024-03-03 45/week @ 2024-03-10 55/week @ 2024-03-17

220 downloads per month
Used in 5 crates (4 directly)

AGPL-3.0

15KB
115 lines

lipmaa-link

Calculate the bamboo lipmaa link for a given sequence number.


lib.rs:

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);

No runtime deps