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

Function api_generate_full_tapscripts

bitvm/src/chunk/api.rs:183–192  ·  view source on GitHub ↗

Step 2 given public keys and the partial scripts generated in api_generate_partial_script() it generates the complete disprove scripts

(
    inpubkeys: PublicKeys,
    ops_scripts_per_link: &[ScriptBuf],
)

Source from the content-addressed store, hash-verified

181// given public keys and the partial scripts generated in api_generate_partial_script()
182// it generates the complete disprove scripts
183pub fn api_generate_full_tapscripts(
184 inpubkeys: PublicKeys,
185 ops_scripts_per_link: &[ScriptBuf],
186) -> Vec<ScriptBuf> {
187 println!("api_generate_full_tapscripts; append_bitcom_locking_script_to_partial_scripts");
188 let taps_per_link =
189 append_bitcom_locking_script_to_partial_scripts(inpubkeys, ops_scripts_per_link.to_vec());
190 assert_eq!(ops_scripts_per_link.len(), taps_per_link.len());
191 taps_per_link
192}
193
194// Step 3
195// given public and runtime parameters (proof and scalars) generate Assertions

Callers 7

generate_assert_leavesFunction · 0.85
test_largest_chunksFunction · 0.85
full_e2e_executionFunction · 0.85

Tested by 5

test_largest_chunksFunction · 0.68
full_e2e_executionFunction · 0.68