Create C Lightning Modifications authored by Ken Sedgwick's avatar Ken Sedgwick
hsmd_wire.csv:
----------------------------------------------------------------
* We add new HSMD messages:
- `hsmd_new_channel`
- `hsmd_ready_channel`
- `hsmd_validate_commitment_tx`
- `hsmd_validate_revocation`
<br>
* We add fields to existing HSMD messages:
- `hsmd_sign_commitment_tx`, `hsmd_sign_remote_commitment_tx`:
- `commit_num`
- `simple_htlc` [vector]
- `feerate`
<br>
The `simple_htlc` struct is:
```
struct simple_htlc {
enum side side;
struct amount_msat amount;
struct sha256 payment_hash;
u32 cltv_expiry;
};
```
<br>
* We add wallet index metadata to existing messages (fill in existing PSBT fields):
- Added fields to `channeld_wire.csv`:`channeld_init`:
* `final_index`
* `final_ext_key`
<br>
- Added fields to `channeld_wire.csv`:`channeld_send_shutdown`:
* `final_index`
* `final_ext_key`
<br>
- Added fields to `onchaind_wire.csv`:`onchaind_init`:
* `ourwallet_index`
* `ourwallet_ext_key`
<br>
- Added fields to `closingd_wire.csv`:`closingd_init`:
* `local_wallet_index`
* `local_wallet_ext_key`
<br>
In all of the above cases we only care about the `index`, but we update the PSBT sent to the signer and `ext_key` completes the PSBT element.
* Added field to `openingd_wire.csv`:`openingd_got_offer`:
- `our_shutdown_wallet_index`
<br>
* Added field to `openingd_wire.csv`:`openingd_funder_start`:
- `upfront_shutdown_wallet_index`
<br>
\ No newline at end of file