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

Function simplicity_decompress

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

Source from the content-addressed store, hash-verified

603}
604
605bool simplicity_decompress(frameItem* dst, frameItem src, const txEnv* env) {
606 (void) env; // env is unused;
607
608 secp256k1_fe x;
609 secp256k1_ge r;
610 bool y = readBit(&src);
611 read_fe(&x, &src);
612 if (writeBit(dst, secp256k1_ge_set_xo_var(&r, &x, y))) {
613 write_ge(dst, &r);
614 } else {
615 skip_ge(dst);
616 }
617
618 return true;
619}
620
621bool simplicity_point_verify_1(frameItem* dst, frameItem src, const txEnv* env) {
622 (void) dst; // dst is unused;

Callers

nothing calls this directly

Calls 6

readBitFunction · 0.85
read_feFunction · 0.85
writeBitFunction · 0.85
write_geFunction · 0.85
skip_geFunction · 0.85
secp256k1_ge_set_xo_varFunction · 0.50

Tested by

no test coverage detected