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

Function get_commit_from_assert_commit_tx

bridge/src/connectors/connector_c.rs:336–345  ·  view source on GitHub ↗
(assert_commit_tx: &Transaction)

Source from the content-addressed store, hash-verified

334}
335
336pub 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}

Callers 2

disproveMethod · 0.85
test_disprove_successFunction · 0.85

Calls 2

pushMethod · 0.45

Tested by 1

test_disprove_successFunction · 0.68