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

Method new

bridge/src/transactions/take_1.rs:84–112  ·  view source on GitHub ↗
(
        context: &OperatorContext,
        connector_0: &Connector0,
        connector_3: &Connector3,
        connector_a: &ConnectorA,
        connector_b: &ConnectorB,
        input_0: Input,
   

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

sign_input_1Method · 0.45
sign_input_2Method · 0.45

Tested by

no test coverage detected