`
/** Seeded controls: each `from` must occur once inside its `fn`. */
-const NO_IDENTITY = [{ file: 'src/assembly/ed25519/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: '\n\tp3_0(r)', to: '' }]
-const STALE_T = [{ file: 'src/assembly/ed25519/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: 'p1p1_to_p3(r, t)', to: 'p1p1_to_p3(r, t)\n\t\t\tfe_mul(r.T, r.X, r.Y)' }]
+const NO_IDENTITY = [{ file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: '\n\tp3_0(r)', to: '' }]
+const STALE_T = [{ file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: 'p1p1_to_p3(r, t)', to: 'p1p1_to_p3(r, t)\n\t\t\tfe_mul(r.T, r.X, r.Y)' }]
const NO_PRECONDITIONS = [
{ file: 'src/assembly/crypto_verify.ts', fn: 'verify_pubkey', from: 'if (ge_is_canonical(pub) != 0) {', to: 'if (false) {' },
{ file: 'src/assembly/crypto_verify.ts', fn: 'verify_signature', from: 'if (ge_is_canonical(sig) != 0) {', to: 'if (false) {' },
- { file: 'src/assembly/ed25519/ge.ts', fn: 'ge_accept_small_order', from: 'return 0 - (malformed | (small_order ^ 1))', to: 'return 0 - (small_order ^ 1)' },
- { file: 'src/assembly/ed25519/ge.ts', fn: 'ge_reject_small_order', from: 'return 0 - (malformed | small_order)', to: 'return 0 - small_order' },
+ { file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_accept_small_order', from: 'return 0 - (malformed | (small_order ^ 1))', to: 'return 0 - (small_order ^ 1)' },
+ { file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_reject_small_order', from: 'return 0 - (malformed | small_order)', to: 'return 0 - small_order' },
]
/** Copies the sources, exports memory, adds the harness, applies any edits, and compiles. */
const asc = new URL('node_modules/assemblyscript/bin/asc.js', root).pathname
const EQUALBYTES = { fn: 'equalbytes', file: 'src/assembly/ed25519/utils.ts', codes: 'ERROR_EQUALBYTES_SELFTEST_' }
-const GE_IS_CANONICAL = { fn: 'ge_is_canonical', file: 'src/assembly/ed25519/ge.ts', codes: 'ERROR_GE_IS_CANONICAL_SELFTEST_' }
+const GE_IS_CANONICAL = { fn: 'ge_is_canonical', file: 'src/assembly/ed25519/ge/ge.ts', codes: 'ERROR_GE_IS_CANONICAL_SELFTEST_' }
const FE_ISZERO = { fn: 'fe_iszero', file: 'src/assembly/ed25519/fe.ts', codes: 'ERROR_FE_ISZERO_SELFTEST_' }
/**