(
&self,
source_network: Network,
amount: Amount,
recipient_address: &str,
depositor_public_key: &PublicKey,
outpoint: OutPoint,
)
| 1522 | } |
| 1523 | |
| 1524 | pub fn generate_presign_pegin_refund_tx( |
| 1525 | &self, |
| 1526 | source_network: Network, |
| 1527 | amount: Amount, |
| 1528 | recipient_address: &str, |
| 1529 | depositor_public_key: &PublicKey, |
| 1530 | outpoint: OutPoint, |
| 1531 | ) -> String { |
| 1532 | let depositor_taproot_key: XOnlyPublicKey = XOnlyPublicKey::from(*depositor_public_key); |
| 1533 | let connector_z = ConnectorZ::new( |
| 1534 | source_network, |
| 1535 | recipient_address, |
| 1536 | &depositor_taproot_key, |
| 1537 | &self |
| 1538 | .operator_context |
| 1539 | .as_ref() |
| 1540 | .unwrap() |
| 1541 | .n_of_n_taproot_public_key, |
| 1542 | ); |
| 1543 | let mut peg_in_refund_tx = PegInRefundTransaction::new_for_validation( |
| 1544 | source_network, |
| 1545 | depositor_public_key, |
| 1546 | &connector_z, |
| 1547 | Input { outpoint, amount }, |
| 1548 | ); |
| 1549 | serialize_hex(&(peg_in_refund_tx.tx_mut())) |
| 1550 | } |
| 1551 | |
| 1552 | pub fn push_verifier_signature(&mut self, graph_id: &GraphId) { |
| 1553 | let verifier = self |
no test coverage detected