core-lightning/openingd/opening_wire.csv
Rusty Russell cfebe66762 openingd: support receipt of upfront_shutdown_script.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-05-02 01:18:33 +00:00

3.9 KiB

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