rgb-cln/openingd/opening_wire.csv

6.0 KiB

1#include <common/cryptomsg.h>
2#include <common/channel_config.h>
3#include <common/derive_basepoints.h>
4#include <common/per_peer_state.h>
5msgtype,opening_init,6000
6# Which network are we configured for?
7msgdata,opening_init,chain_hash,bitcoin_blkid,
8# Base configuration we'll offer (channel reserve will vary with amount)
9msgdata,opening_init,our_config,channel_config,
10# Minimum/maximum configuration values we'll accept
11msgdata,opening_init,max_to_self_delay,u32,
12msgdata,opening_init,min_effective_htlc_capacity_msat,amount_msat,
13msgdata,opening_init,pps,per_peer_state,
14msgdata,opening_init,our_basepoints,basepoints,
15msgdata,opening_init,our_funding_pubkey,pubkey,
16# Constraints in case the other end tries to open a channel.
17msgdata,opening_init,minimum_depth,u32,
18msgdata,opening_init,min_feerate,u32,
19msgdata,opening_init,max_feerate,u32,
20msgdata,opening_init,lfeatures_len,u16,
21msgdata,opening_init,lfeatures,u8,lfeatures_len
22msgdata,opening_init,option_static_remotekey,bool,
23# Optional msg to send.
24msgdata,opening_init,len,u16,
25msgdata,opening_init,msg,u8,len
26# Openingd->master: they offered channel, should we continue?
27msgtype,opening_got_offer,6005
28msgdata,opening_got_offer,funding_satoshis,amount_sat,
29msgdata,opening_got_offer,push_msat,amount_msat,
30msgdata,opening_got_offer,dust_limit_satoshis,amount_sat,
31msgdata,opening_got_offer,max_htlc_value_in_flight_msat,amount_msat,
32msgdata,opening_got_offer,channel_reserve_satoshis,amount_sat,
33msgdata,opening_got_offer,htlc_minimum_msat,amount_msat,
34msgdata,opening_got_offer,feerate_per_kw,u32,
35msgdata,opening_got_offer,to_self_delay,u16,
36msgdata,opening_got_offer,max_accepted_htlcs,u16,
37msgdata,opening_got_offer,channel_flags,u8,
38msgdata,opening_got_offer,shutdown_len,u16,
39msgdata,opening_got_offer,shutdown_scriptpubkey,u8,shutdown_len
40# master->openingd: optional rejection message
41msgtype,opening_got_offer_reply,6105
42msgdata,opening_got_offer_reply,rejection,?wirestring,
43#include <common/bip32.h>
44#include <common/htlc_wire.h>
45# Master->openingd: please fund a channel.
46msgtype,opening_funder,6001
47msgdata,opening_funder,funding_satoshis,amount_sat,
48msgdata,opening_funder,push_msat,amount_msat,
49msgdata,opening_funder,feerate_per_kw,u32,
50msgdata,opening_funder,change_satoshis,amount_sat,
51msgdata,opening_funder,change_keyindex,u32,
52msgdata,opening_funder,channel_flags,u8,
53#include <common/utxo.h>
54msgdata,opening_funder,num_inputs,u16,
55msgdata,opening_funder,inputs,utxo,num_inputs
56msgdata,opening_funder,bip32,ext_key,
57# Openingd->master: we've successfully offered channel.
58# This gives their sig, means we can broadcast tx: we're done.
59msgtype,opening_funder_reply,6101
60msgdata,opening_funder_reply,their_config,channel_config,
61msgdata,opening_funder_reply,first_commit,bitcoin_tx,
62msgdata,opening_funder_reply,first_commit_sig,bitcoin_signature,
63msgdata,opening_funder_reply,pps,per_peer_state,
64msgdata,opening_funder_reply,revocation_basepoint,pubkey,
65msgdata,opening_funder_reply,payment_basepoint,pubkey,
66msgdata,opening_funder_reply,htlc_basepoint,pubkey,
67msgdata,opening_funder_reply,delayed_payment_basepoint,pubkey,
68msgdata,opening_funder_reply,their_per_commit_point,pubkey,
69msgdata,opening_funder_reply,minimum_depth,u32,
70msgdata,opening_funder_reply,remote_fundingkey,pubkey,
71msgdata,opening_funder_reply,funding_txid,bitcoin_txid,
72msgdata,opening_funder_reply,funding_txout,u16,
73msgdata,opening_funder_reply,feerate_per_kw,u32,
74msgdata,opening_funder_reply,our_channel_reserve_satoshis,amount_sat,
75msgdata,opening_funder_reply,shutdown_len,u16,
76msgdata,opening_funder_reply,shutdown_scriptpubkey,u8,shutdown_len
77# master->openingd: start channel establishment for a funding
78# tx that will be paid for by an external wallet
79msgtype,opening_funder_start,6002
80msgdata,opening_funder_start,funding_satoshis,amount_sat,
81msgdata,opening_funder_start,push_msat,amount_msat,
82msgdata,opening_funder_start,feerate_per_kw,u32,
83msgdata,opening_funder_start,channel_flags,u8,
84# openingd->master: send back output script for 2-of-2 funding output
85msgtype,opening_funder_start_reply,6102
86msgdata,opening_funder_start_reply,script_len,u8,
87msgdata,opening_funder_start_reply,scriptpubkey,u8,script_len
88# master->openingd: complete channel establishment for a funding
89# tx that will be paid for by an external wallet
90# response to this is a normal `opening_funder_reply` ??
91msgtype,opening_funder_complete,6012
92msgdata,opening_funder_complete,funding_txid,bitcoin_txid,
93msgdata,opening_funder_complete,funding_txout,u16,
94#master->openingd: cancel channel establishment for a funding
95msgtype,opening_funder_cancel,6013
96# Openingd->master: we failed to negotiation channel
97msgtype,opening_funder_failed,6004
98msgdata,opening_funder_failed,reason,wirestring,
99# Openingd->master: they offered channel.
100# This gives their txid and info, means we can send funding_signed: we're done.
101msgtype,opening_fundee,6003
102msgdata,opening_fundee,their_config,channel_config,
103msgdata,opening_fundee,first_commit,bitcoin_tx,
104msgdata,opening_fundee,first_commit_sig,bitcoin_signature,
105msgdata,opening_fundee,pps,per_peer_state,
106msgdata,opening_fundee,revocation_basepoint,pubkey,
107msgdata,opening_fundee,payment_basepoint,pubkey,
108msgdata,opening_fundee,htlc_basepoint,pubkey,
109msgdata,opening_fundee,delayed_payment_basepoint,pubkey,
110msgdata,opening_fundee,their_per_commit_point,pubkey,
111msgdata,opening_fundee,remote_fundingkey,pubkey,
112msgdata,opening_fundee,funding_txid,bitcoin_txid,
113msgdata,opening_fundee,funding_txout,u16,
114msgdata,opening_fundee,funding_satoshis,amount_sat,
115msgdata,opening_fundee,push_msat,amount_msat,
116msgdata,opening_fundee,channel_flags,u8,
117msgdata,opening_fundee,feerate_per_kw,u32,
118# The funding signed message: send this and we're committed.
119msgdata,opening_fundee,msglen,u16,
120msgdata,opening_fundee,funding_signed_msg,u8,msglen
121msgdata,opening_fundee,our_channel_reserve_satoshis,amount_sat,
122msgdata,opening_fundee,shutdown_len,u16,
123msgdata,opening_fundee,shutdown_scriptpubkey,u8,shutdown_len
124# master -> openingd: do you have a memleak?
125msgtype,opening_dev_memleak,6033
126msgtype,opening_dev_memleak_reply,6133
127msgdata,opening_dev_memleak_reply,leak,bool,