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],
)
| 181 | // given public keys and the partial scripts generated in api_generate_partial_script() |
| 182 | // it generates the complete disprove scripts |
| 183 | pub 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 |