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

Method is_zero

bitvm/src/bn254/g1.rs:495–503  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493 }
494
495 pub fn is_zero() -> Script {
496 script! {
497 { Fq::is_zero(0) }
498 OP_TOALTSTACK
499 { Fq::is_zero(0) }
500 OP_FROMALTSTACK
501 OP_BOOLAND
502 }
503 }
504
505 pub fn is_zero_keep_element() -> Script {
506 script! {

Callers 7

read_from_stackMethod · 0.45
read_from_stackMethod · 0.45
hinted_check_addMethod · 0.45
hinted_check_doubleMethod · 0.45
utils_point_double_evalFunction · 0.45
utils_point_add_evalFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected