|
Electroneum
|
Functions | |
| def | expmod (b, e, m) |
| def | inv (x) |
| def | xrecover (y) |
| def | edwards (P, Q) |
| def | radix255 (x) |
Variables | |
| int | b = 256 |
| int | q = 2**255 - 19 |
| int | l = 2**252 + 27742317777372353535851937790883648493 |
| int | d = -121665 * inv(121666) |
| def | I = expmod(2,(q-1)/4,q) |
| int | By = 4 * inv(5) |
| def | Bx = xrecover(By) |
| list | B = [Bx % q,By % q] |
| list | Bi = B |
| def base2.edwards | ( | P, | |
| Q | |||
| ) |
| def base2.expmod | ( | b, | |
| e, | |||
| m | |||
| ) |
| def base2.inv | ( | x | ) |
| def base2.radix255 | ( | x | ) |
| def base2.xrecover | ( | y | ) |
| int base2.b = 256 |
| def base2.Bi = B |
| int base2.By = 4 * inv(5) |
| int base2.d = -121665 * inv(121666) |
| int base2.l = 2**252 + 27742317777372353535851937790883648493 |
| int base2.q = 2**255 - 19 |