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

Method push

bitvm/src/bn254/g2.rs:110–115  ·  view source on GitHub ↗
(element: ark_bn254::G2Affine)

Source from the content-addressed store, hash-verified

108 }
109
110 pub fn push(element: ark_bn254::G2Affine) -> Script {
111 script! {
112 { Fq2::push(element.x) }
113 { Fq2::push(element.y) }
114 }
115 }
116
117 pub fn read_from_stack(witness: Vec<Vec<u8>>) -> ark_bn254::G2Affine {
118 assert_eq!(witness.len() as u32, Fq::N_LIMBS * 4);

Callers 15

appendMethod · 0.45
recalculate_peaksMethod · 0.45
get_subrootsMethod · 0.45
generate_proofMethod · 0.45
test_mmr_nativeFunction · 0.45
test_mmr_crosscheckFunction · 0.45
appendMethod · 0.45
stark_to_succinctFunction · 0.45
biguint_to_limbsMethod · 0.45
push_u32_leMethod · 0.45
read_u32_leMethod · 0.45
get_transform_stepsMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_mmr_nativeFunction · 0.36
test_mmr_crosscheckFunction · 0.36
test_zipFunction · 0.36
test_copyFunction · 0.36
test_rollFunction · 0.36
test_copy_zipFunction · 0.36
test_limb_to_be_bitsFunction · 0.36
test_limb_to_le_bitsFunction · 0.36
test_ubigint_to_be_bitsFunction · 0.36
test_ubigint_to_le_bitsFunction · 0.36