Closed thomaseizinger closed 4 years ago
Can't just get codin', need to update the HTLC hex first...
Can't just get codin', need to update the HTLC hex first...
Sure? Each party could hash the pubkey after receiving it. Then it would be an implementation detail of the current HTLC that would be removed once we move to miniscript.
I think you only need to change the internals and once handed the pubkey to the htlc generation you create the hash.
//edit// the HTLC should be out of scope for this ticket
Right now our we use the "pubkey hash" as the identity in RFC005. This is the wrong choice for two reasons:
You would probably want to start by changing this line to a
PublicKey
:https://github.com/comit-network/comit-rs/blob/5702e0a207784745e5bb256014487cb6cce1b20f/cnd/src/swap_protocols/ledger/bitcoin.rs#L31
and simply follow the compile errors :)