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

Method add

bitvm/src/bn254/fq12.rs:71–79  ·  view source on GitHub ↗
(mut a: u32, mut b: u32)

Source from the content-addressed store, hash-verified

69 }
70
71 pub fn add(mut a: u32, mut b: u32) -> Script {
72 if a < b {
73 (a, b) = (b, a);
74 }
75 script! {
76 { Fq6::add(a + 6, b + 6) }
77 { Fq6::add(a, b + 6) }
78 }
79 }
80
81 pub fn sub(a: u32, b: u32) -> Script {
82 if a > b {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected