mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
3.9 KiB
3.9 KiB
1 | #include <common/cryptomsg.h> |
---|---|
2 | #include <common/channel_config.h> |
3 | #include <common/derive_basepoints.h> |
4 | opening_init,6000 |
5 | # Which network are we configured for? |
6 | opening_init,,chain_hash,struct bitcoin_blkid |
7 | # Base configuration we'll offer (channel reserve will vary with amount) |
8 | opening_init,,our_config,struct channel_config |
9 | # Minimum/maximum configuration values we'll accept |
10 | opening_init,,max_to_self_delay,u32 |
11 | opening_init,,min_effective_htlc_capacity_msat,struct amount_msat |
12 | opening_init,,crypto_state,struct crypto_state |
13 | opening_init,,our_basepoints,struct basepoints |
14 | opening_init,,our_funding_pubkey,struct pubkey |
15 | # Constraints in case the other end tries to open a channel. |
16 | opening_init,,minimum_depth,u32 |
17 | opening_init,,min_feerate,u32 |
18 | opening_init,,max_feerate,u32 |
19 | opening_init,,can_open_channel,bool |
20 | opening_init,,lfeatures_len,u16 |
21 | opening_init,,lfeatures,lfeatures_len*u8 |
22 | # Optional msg to send. |
23 | opening_init,,len,u16 |
24 | opening_init,,msg,len*u8 |
25 | # Master->openingd: they can now open a channel if they want. |
26 | opening_can_accept_channel,6002 |
27 | #include <common/bip32.h> |
28 | #include <common/htlc_wire.h> |
29 | # Master->openingd: please fund a channel. |
30 | opening_funder,6001 |
31 | opening_funder,,funding_satoshis,struct amount_sat |
32 | opening_funder,,push_msat,struct amount_msat |
33 | opening_funder,,feerate_per_kw,u32 |
34 | opening_funder,,change_satoshis,struct amount_sat |
35 | opening_funder,,change_keyindex,u32 |
36 | opening_funder,,channel_flags,u8 |
37 | #include <common/utxo.h> |
38 | opening_funder,,num_inputs,u16 |
39 | opening_funder,,inputs,num_inputs*struct utxo |
40 | opening_funder,,bip32,struct ext_key |
41 | # Openingd->master: we've successfully offered channel. |
42 | # This gives their sig, means we can broadcast tx: we're done. |
43 | opening_funder_reply,6101 |
44 | opening_funder_reply,,their_config,struct channel_config |
45 | opening_funder_reply,,first_commit,struct bitcoin_tx |
46 | opening_funder_reply,,first_commit_sig,struct bitcoin_signature |
47 | opening_funder_reply,,crypto_state,struct crypto_state |
48 | opening_funder_reply,,revocation_basepoint,struct pubkey |
49 | opening_funder_reply,,payment_basepoint,struct pubkey |
50 | opening_funder_reply,,htlc_basepoint,struct pubkey |
51 | opening_funder_reply,,delayed_payment_basepoint,struct pubkey |
52 | opening_funder_reply,,their_per_commit_point,struct pubkey |
53 | opening_funder_reply,,minimum_depth,u32 |
54 | opening_funder_reply,,remote_fundingkey,struct pubkey |
55 | opening_funder_reply,,funding_txid,struct bitcoin_txid |
56 | opening_funder_reply,,feerate_per_kw,u32 |
57 | opening_funder_reply,,our_channel_reserve_satoshis,struct amount_sat |
58 | opening_funder_reply,,shutdown_len,u16 |
59 | opening_funder_reply,,shutdown_scriptpubkey,shutdown_len*u8 |
60 | # Openingd->master: we failed to negotiation channel |
61 | opening_funder_failed,6004 |
62 | opening_funder_failed,,reason,wirestring |
63 | # Openingd->master: they offered channel. |
64 | # This gives their txid and info, means we can send funding_signed: we're done. |
65 | opening_fundee,6003 |
66 | opening_fundee,,their_config,struct channel_config |
67 | opening_fundee,,first_commit,struct bitcoin_tx |
68 | opening_fundee,,first_commit_sig,struct bitcoin_signature |
69 | opening_fundee,,crypto_state,struct crypto_state |
70 | opening_fundee,,revocation_basepoint,struct pubkey |
71 | opening_fundee,,payment_basepoint,struct pubkey |
72 | opening_fundee,,htlc_basepoint,struct pubkey |
73 | opening_fundee,,delayed_payment_basepoint,struct pubkey |
74 | opening_fundee,,their_per_commit_point,struct pubkey |
75 | opening_fundee,,remote_fundingkey,struct pubkey |
76 | opening_fundee,,funding_txid,struct bitcoin_txid |
77 | opening_fundee,,funding_txout,u16 |
78 | opening_fundee,,funding_satoshis,struct amount_sat |
79 | opening_fundee,,push_msat,struct amount_msat |
80 | opening_fundee,,channel_flags,u8 |
81 | opening_fundee,,feerate_per_kw,u32 |
82 | # The funding signed message: send this and we're committed. |
83 | opening_fundee,,msglen,u16 |
84 | opening_fundee,,funding_signed_msg,msglen*u8 |
85 | opening_fundee,,our_channel_reserve_satoshis,struct amount_sat |
86 | opening_fundee,,shutdown_len,u16 |
87 | opening_fundee,,shutdown_scriptpubkey,shutdown_len*u8 |
88 | # master -> openingd: do you have a memleak? |
89 | opening_dev_memleak,6033 |
90 | opening_dev_memleak_reply,6133 |
91 | opening_dev_memleak_reply,,leak,bool |