View Source Lipmaa (Lipmaa v1.1.0)
Compute Lipmaa backlinks
Link to this section Summary
Functions
A list of the seqeunce numbers to be verified to ensure a consistent forward-looking structure using sequence members.
Compute the sequence number to which to link from a provided sequence number
Link to this section Functions
@spec cert_pool(pos_integer()) :: [pos_integer()]
A list of the seqeunce numbers to be verified to ensure a consistent forward-looking structure using sequence members.
examples
Examples
iex> Lipmaa.cert_pool(1)
[1]
iex> Lipmaa.cert_pool(23)
[40, 39, 26, 25, 24, 23, 22, 21, 17, 13, 4, 1]
@spec linkseq(pos_integer()) :: non_neg_integer() | :error
Compute the sequence number to which to link from a provided sequence number
Provided sequence in the range [1, 2⁶⁴ - 1] Returns in the range [0, 2⁶⁴ - 2]
examples
Examples
iex> Lipmaa.linkseq(1)
0
iex> Lipmaa.linkseq(40)
13