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

Function OP_4PICK

bitvm/src/pseudo.rs:12–20  ·  view source on GitHub ↗

OP_4PICK The 4 items n back in the stack are copied to the top.

()

Source from the content-addressed store, hash-verified

10/// OP_4PICK
11/// The 4 items n back in the stack are copied to the top.
12pub fn OP_4PICK() -> Script {
13 script! {
14 OP_ADD
15 OP_DUP OP_PICK OP_SWAP
16 OP_DUP OP_PICK OP_SWAP
17 OP_DUP OP_PICK OP_SWAP
18 OP_1SUB OP_PICK
19 }
20}
21
22/// OP_4ROLL
23/// The 4 items n back in the stack are moved to the top.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected