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

Function push_to_stack

bitvm/src/pseudo.rs:148–154  ·  view source on GitHub ↗
(element: usize, n: usize)

Source from the content-addressed store, hash-verified

146}
147
148pub fn push_to_stack(element: usize, n: usize) -> Script {
149 script! {
150 if n >= 1{
151 {element} {OP_NDUP(n - 1)}
152 }
153 }
154}
155
156pub fn NMUL(n: u32) -> Script {
157 let n_bits = u32::BITS - n.leading_zeros();

Callers 1

push_zeroMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected