Skip to content

BOLT 3: Ambiguity in the ordering of commitment tx outputs #448

@pm47

Description

@pm47

I was investigating a sig mismatch between eclair and lnd and I think we need to better specify how the outputs are to be ordered in the commitment tx.

BOLT 3 only refers to BIP 69, but I think it is not sufficient, because offered htlcs with the same amount, same payment_hash and a different cltv_expiry will have the same pubkey script but a different HTLC-Timeout (given that only the latter depends on cltv_expiry), resulting in different incompatible sigs.

I'm not entirely sure of this, but if I'm right fix is easy, e.g. we could just order following BIP69, and then by cltv_expiry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions