Skip to content

Custom Transactions Tracking Issue #3603

@tankyleo

Description

@tankyleo

Custom Commitment and HTLC Transactions

Build

Validate

Claims Detection

  • Refactor ChannelMonitor
  • Add generate_claims_from_holder_tx
  • Add generate_claims_from_counterparty_tx
  • Add generate_claims_from_revoked_counterparty_tx

Claims Spend

  • Transition from {Ecdsa, Taproot}ChannelSigner methods returning a Signature to ChannelSigner methods returning a Witness
    • sign_holder_commitment
    • sign_justice_revoked_output
    • sign_justice_revoked_htlc_output
    • sign_holder_htlc_transaction
    • sign_counterparty_htlc_transaction
    • sign_holder_anchor_input
  • Create a single call "Alice: here's a claim, and a transaction I am building to claim it, Bob: Here's the witness"

Custom Funding Output and Mutual Close Transaction

Build Funding Output

  • Add get_funding_script_pubkey

Validate Witness Data Provided By Counterparty

  • Move all validation of the counterparty's mutual close partial witness from FundedChannel to XX::validate_closing_partial_witness
    • A partial witness is a full ecdsa signature for ecdsa channels, and a partial sig, nonce pair in musig2 channels.

Build Mutual Close Transaction

  • Add build_final_closing_transaction

Prior Work

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions