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

Function OP_4SWAP

bitvm/src/pseudo.rs:49–54  ·  view source on GitHub ↗

Swaps the top two groups of 4 items

()

Source from the content-addressed store, hash-verified

47
48/// Swaps the top two groups of 4 items
49pub fn OP_4SWAP() -> Script {
50 script! {
51 7 OP_ROLL 7 OP_ROLL
52 7 OP_ROLL 7 OP_ROLL
53 }
54}
55
56/// Puts the top 4 items onto the top of the alt stack. Removes them from the main stack.
57pub fn OP_4TOALTSTACK() -> Script {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected