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

Method new

bridge/src/transactions/challenge.rs:46–63  ·  view source on GitHub ↗
(
        context: &OperatorContext,
        connector_a: &ConnectorA,
        input_0: Input,
        input_amount_crowdfunding: Amount,
    )

Source from the content-addressed store, hash-verified

44
45impl ChallengeTransaction {
46 pub fn new(
47 context: &OperatorContext,
48 connector_a: &ConnectorA,
49 input_0: Input,
50 input_amount_crowdfunding: Amount,
51 ) -> Self {
52 let mut this = Self::new_for_validation(
53 context.network,
54 &context.operator_public_key,
55 connector_a,
56 input_0,
57 input_amount_crowdfunding,
58 );
59
60 this.sign_input_0(context, connector_a);
61
62 this
63 }
64
65 pub fn new_for_validation(
66 network: Network,

Callers

nothing calls this directly

Calls 1

sign_input_0Method · 0.45

Tested by

no test coverage detected