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

Method new_for_validation

bridge/src/graphs/peg_in.rs:280–294  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

278 }
279
280 pub fn new_for_validation(&self) -> Self {
281 create_graph_without_signing(
282 self.network,
283 &self.depositor_public_key,
284 &self.depositor_taproot_public_key,
285 &self.n_of_n_public_key,
286 &self.n_of_n_public_keys,
287 &self.n_of_n_taproot_public_key,
288 &self.depositor_evm_address,
289 Input {
290 outpoint: self.peg_in_deposit_transaction.tx().input[0].previous_output, // Self-referencing
291 amount: self.peg_in_deposit_transaction.prev_outs()[0].value, // Self-referencing
292 },
293 )
294 }
295
296 pub fn peg_in_confirm_transaction_ref(&self) -> &PegInConfirmTransaction {
297 &self.peg_in_confirm_transaction

Callers 1

validateMethod · 0.45

Calls 3

txMethod · 0.45
prev_outsMethod · 0.45

Tested by

no test coverage detected