Function
get_commit_from_assert_commit_tx
(assert_commit_tx: &Transaction)
Source from the content-addressed store, hash-verified
| 334 | } |
| 335 | |
| 336 | pub fn get_commit_from_assert_commit_tx(assert_commit_tx: &Transaction) -> Vec<RawWitness> { |
| 337 | let mut assert_commit_witness = Vec::new(); |
| 338 | for input in assert_commit_tx.input.iter() { |
| 339 | // remove script and control block from witness |
| 340 | let witness = remove_script_and_control_block_from_witness(input.witness.to_vec()); |
| 341 | assert_commit_witness.push(witness); |
| 342 | } |
| 343 | |
| 344 | assert_commit_witness |
| 345 | } |