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

Function OP_4ROLL

bitvm/src/pseudo.rs:24–32  ·  view source on GitHub ↗

OP_4ROLL The 4 items n back in the stack are moved to the top.

()

Source from the content-addressed store, hash-verified

22/// OP_4ROLL
23/// The 4 items n back in the stack are moved to the top.
24pub fn OP_4ROLL() -> Script {
25 script! {
26 4 OP_ADD
27 OP_DUP OP_ROLL OP_SWAP
28 OP_DUP OP_ROLL OP_SWAP
29 OP_DUP OP_ROLL OP_SWAP
30 OP_1SUB OP_ROLL
31 }
32}
33
34/// Duplicates the top 4 items
35pub fn OP_4DUP() -> Script {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected