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

Method new

bridge/src/transactions/peg_out.rs:43–54  ·  view source on GitHub ↗
(context: &OperatorContext, peg_out_event: &PegOutEvent, input_0: Input)

Source from the content-addressed store, hash-verified

41
42impl PegOutTransaction {
43 pub fn new(context: &OperatorContext, peg_out_event: &PegOutEvent, input_0: Input) -> Self {
44 let mut this = Self::new_for_validation(
45 context.network,
46 &context.operator_public_key,
47 peg_out_event,
48 input_0,
49 );
50
51 this.sign_input_0(context);
52
53 this
54 }
55
56 pub fn new_for_validation(
57 network: Network,

Callers

nothing calls this directly

Calls 1

sign_input_0Method · 0.45

Tested by

no test coverage detected