| 343 | } |
| 344 | |
| 345 | bool simplicity_gej_normalize(frameItem* dst, frameItem src, const txEnv* env) { |
| 346 | (void) env; // env is unused; |
| 347 | |
| 348 | secp256k1_gej a; |
| 349 | secp256k1_ge r; |
| 350 | read_gej(&a, &src); |
| 351 | if (writeBit(dst, !secp256k1_gej_is_infinity(&a))) { |
| 352 | secp256k1_ge_set_gej_var(&r, &a); |
| 353 | write_ge(dst, &r); |
| 354 | } else { |
| 355 | skip_ge(dst); |
| 356 | } |
| 357 | return true; |
| 358 | } |
| 359 | |
| 360 | bool simplicity_gej_negate(frameItem* dst, frameItem src, const txEnv* env) { |
| 361 | (void) env; // env is unused; |
nothing calls this directly
no test coverage detected