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

Function write_fe

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

Write a secp256k1 field element value to the 'dst' frame, advancing the cursor 256 cells. * The field value 'r' is normalized as a side-effect. * * Precondition: '*dst' is a valid write frame for 256 more cells; * NULL != r; */

Source from the content-addressed store, hash-verified

43 * NULL != r;
44 */
45static inline void write_fe(frameItem* dst, secp256k1_fe* r) {
46 unsigned char buf[32];
47
48 secp256k1_fe_normalize_var(r);
49 secp256k1_fe_get_b32(buf, r);
50 write8s(dst, buf, 32);
51}
52
53/* Skip 256 cells, the size of a secp256k1 field element value, in the 'dst' frame.
54 *

Callers 11

write_geFunction · 0.85
write_gejFunction · 0.85
simplicity_fe_normalizeFunction · 0.85
simplicity_fe_negateFunction · 0.85
simplicity_fe_addFunction · 0.85
simplicity_fe_squareFunction · 0.85
simplicity_fe_multiplyFunction · 0.85
simplicity_fe_invertFunction · 0.85
simplicity_gej_ge_add_exFunction · 0.85

Calls 3

write8sFunction · 0.85
secp256k1_fe_get_b32Function · 0.50

Tested by

no test coverage detected