#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

#42 in #calculate

Download history 38/week @ 2024-03-11 60/week @ 2024-03-18 49/week @ 2024-03-25 113/week @ 2024-04-01 66/week @ 2024-04-08 70/week @ 2024-04-15 65/week @ 2024-04-22 49/week @ 2024-04-29 43/week @ 2024-05-06 51/week @ 2024-05-13 159/week @ 2024-05-20 66/week @ 2024-05-27 82/week @ 2024-06-03 70/week @ 2024-06-10 86/week @ 2024-06-17 104/week @ 2024-06-24

353 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