MCPcopy Create free account
hub / github.com/BitVM/BitVM / neg

Method neg

bitvm/src/bn254/fq2.rs:152–157  ·  view source on GitHub ↗
(a: u32)

Source from the content-addressed store, hash-verified

150 }
151
152 pub fn neg(a: u32) -> Script {
153 script! {
154 { Fq::neg(a + 1) }
155 { Fq::neg(a + 1) }
156 }
157 }
158
159 pub fn check_validity_and_keep_element() -> Script {
160 script! {

Callers 13

hinted_verifyMethod · 0.45
utils_point_add_evalFunction · 0.45
generate_partial_scriptFunction · 0.45
test_groth16Function · 0.45
verify_pairingFunction · 0.45
verify_pairing_scriptedFunction · 0.45
test_verify_pairingFunction · 0.45
chunk_hash_c_invFunction · 0.45
extract_public_paramsFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_groth16Function · 0.36
test_verify_pairingFunction · 0.36