const ge_frombytes_m_root_check: FieldElement = fe()
const ge_frombytes_p_root_check: FieldElement = fe()
const ge_frombytes_negx: FieldElement = fe()
-const ge_frombytes_x_sqrtm1: FieldElement = fe()
+const x_sqrtm1: FieldElement = fe()
/**
* Constant-time point negation converted from byte representation.
*
const m_root_check = ge_frombytes_m_root_check
const p_root_check = ge_frombytes_p_root_check
const negx = ge_frombytes_negx
- const x_sqrtm1 = ge_frombytes_x_sqrtm1
let has_m_root: u8
let has_p_root: u8
return i32(has_m_root | has_p_root) - 1
}
-const ge_has_small_order_y_sqrtm1: FieldElement = fe()
+const y_sqrtm1: FieldElement = fe()
const ge_has_small_order_c: FieldElement = fe()
/** return 1 if p has small order else return 0 */
export function ge_has_small_order (p: ge_p3): i32 {
- const y_sqrtm1 = ge_has_small_order_y_sqrtm1
const c = ge_has_small_order_c
let ret: i32 = 0