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

Function bigint_verify_output_script

fuzz/fuzz_targets/bigint/utils.rs:4–13  ·  view source on GitHub ↗

Verifies two bigints of n_element size on the stack

(n_elements: u32)

Source from the content-addressed store, hash-verified

2
3// Verifies two bigints of n_element size on the stack
4pub fn bigint_verify_output_script(n_elements: u32) -> Script {
5 script! {
6 for i in (2..n_elements + 1).rev() {
7 {i}
8 OP_ROLL
9 OP_EQUALVERIFY
10 }
11 OP_EQUAL
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected