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

Function api_generate_partial_script

bitvm/src/chunk/api.rs:176–178  ·  view source on GitHub ↗

Step 1 The function takes public parameters (here verifying key) and generates partial script partial script is essentially disprove script minus the bitcommitment locking script

(vk: &ark_groth16::VerifyingKey<Bn254>)

Source from the content-addressed store, hash-verified

174// The function takes public parameters (here verifying key) and generates partial script
175// partial script is essentially disprove script minus the bitcommitment locking script
176pub fn api_generate_partial_script(vk: &ark_groth16::VerifyingKey<Bn254>) -> Vec<ScriptBuf> {
177 generate_partial_script(vk)
178}
179
180// Step 2
181// given public keys and the partial scripts generated in api_generate_partial_script()

Callers 5

generate_assert_leavesFunction · 0.85
test_largest_chunksFunction · 0.85
full_e2e_executionFunction · 0.85
test_fn_compileFunction · 0.85

Calls 1

generate_partial_scriptFunction · 0.85

Tested by 3

test_largest_chunksFunction · 0.68
full_e2e_executionFunction · 0.68
test_fn_compileFunction · 0.68