#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

#38 in #calculate

Download history 41/week @ 2024-07-20 40/week @ 2024-07-27 32/week @ 2024-08-03 35/week @ 2024-08-10 29/week @ 2024-08-17 32/week @ 2024-08-24 29/week @ 2024-08-31 12/week @ 2024-09-07 9/week @ 2024-09-14 53/week @ 2024-09-21 25/week @ 2024-09-28 7/week @ 2024-10-05 29/week @ 2024-10-12 20/week @ 2024-10-19 16/week @ 2024-10-26 18/week @ 2024-11-02

84 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