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

Method new

bridge/src/transactions/take_2.rs:85–112  ·  view source on GitHub ↗
(
        context: &OperatorContext,
        connector_0: &Connector0,
        connector_4: &Connector4,
        connector_5: &Connector5,
        connector_c: &ConnectorC,
        input_0: Input,
   

Source from the content-addressed store, hash-verified

83impl Take2Transaction {
84 #[allow(clippy::too_many_arguments)]
85 pub fn new(
86 context: &OperatorContext,
87 connector_0: &Connector0,
88 connector_4: &Connector4,
89 connector_5: &Connector5,
90 connector_c: &ConnectorC,
91 input_0: Input,
92 input_1: Input,
93 input_2: Input,
94 input_3: Input,
95 ) -> Self {
96 let mut this = Self::new_for_validation(
97 context.network,
98 &context.operator_public_key,
99 connector_0,
100 connector_4,
101 connector_5,
102 connector_c,
103 input_0,
104 input_1,
105 input_2,
106 input_3,
107 );
108
109 this.sign_input_1(context);
110
111 this
112 }
113
114 #[allow(clippy::too_many_arguments)]
115 pub fn new_for_validation(

Callers

nothing calls this directly

Calls 1

sign_input_1Method · 0.45

Tested by

no test coverage detected