MCPcopy Create free account
hub / github.com/ElementsProject/elements / simplicity_gej_normalize

Function simplicity_gej_normalize

src/simplicity/jets-secp256k1.c:345–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345bool 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
360bool simplicity_gej_negate(frameItem* dst, frameItem src, const txEnv* env) {
361 (void) env; // env is unused;

Callers

nothing calls this directly

Calls 6

read_gejFunction · 0.85
writeBitFunction · 0.85
write_geFunction · 0.85
skip_geFunction · 0.85
secp256k1_ge_set_gej_varFunction · 0.50

Tested by

no test coverage detected