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

Method add_ref_stack

bitvm/src/bigint/add.rs:301–306  ·  view source on GitHub ↗

Add BigInt referenced by the integer (depth) on top of the stack to the BigInt at the top the stack below the depth # Note This function consumes the BigInt on top of the stack below the depth while not consuming the referenced BigInt This does not support addition to self, depth=0

()

Source from the content-addressed store, hash-verified

299 /// consuming the referenced BigInt
300 /// This does not support addition to self, depth=0
301 pub fn add_ref_stack() -> Script {
302 script! {
303 { NMUL(Self::N_LIMBS) }
304 { Self::_add_ref_inner() }
305 }
306 }
307
308 // Underlying add_ref implementation used by both `add_ref` and `add_ref_stack`
309 // functions. The commented section is supposed to handle depth=0, which fails.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected