core-lightning/lightningd/opening/opening_wire.csv
Rusty Russell 43ec37b865 openingd: fundee: don't send watch command to master.
Instead, send it the funding_signed message; it can watch, save to
database, and send it.

Now the openingd fundee path is a simple request and response, too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-25 14:24:47 +09:30

2.9 KiB

1# These shouldn't happen
2opening_bad_command,0x8000
3opening_key_derivation_failed,0x8001
4opening_bad_param,0x8002
5opening_hsm_failed,0x8003
6# These are due to peer.
7opening_peer_write_failed,0x8010
8opening_peer_read_failed,0x8011
9opening_peer_bad_funding,0x8012
10opening_peer_bad_config,0x8013
11opening_peer_bad_initial_message,0x8014
12#include <lightningd/cryptomsg.h>
13#include <lightningd/channel_config.h>
14opening_init,0
15# Base configuration we'll offer (channel reserve will vary with amount)
16opening_init,0,our_config,struct channel_config
17# Minimum/maximum configuration values we'll accept
18opening_init,36,max_to_self_delay,4
19opening_init,40,min_effective_htlc_capacity_msat,8
20opening_init,48,crypto_state,struct crypto_state
21# Seed to generate all the keys from
22opening_init,196,seed,struct privkey
23# This means we offer the open.
24opening_funder,1
25opening_funder,0,funding_satoshis,8
26opening_funder,8,push_msat,8
27opening_funder,16,feerate_per_kw,4
28opening_funder,20,max_minimum_depth,4
29opening_funder,24,change_satoshis,u64
30opening_funder,32,change_keyindex,u32
31#include <lightningd/utxo.h>
32opening_funder,0,num_inputs,u16
33opening_funder,0,inputs,num_inputs*struct utxo
34opening_funder,0,bip32_len,u16
35opening_funder,0,bip32_seed,bip32_len*u8
36# This gives their sig, means we can broadcast tx: we're done.
37opening_funder_reply,101
38opening_funder_reply,0,their_config,struct channel_config
39opening_funder_reply,36,first_commit_sig,secp256k1_ecdsa_signature
40opening_funder_reply,100,crypto_state,struct crypto_state
41opening_funder_reply,244,revocation_basepoint,33
42opening_funder_reply,277,payment_basepoint,33
43opening_funder_reply,310,delayed_payment_basepoint,33
44opening_funder_reply,343,their_per_commit_point,33
45opening_funder_reply,376,minimum_depth,4
46opening_funder_reply,0,remote_fundingkey,33
47opening_funder_reply,0,funding_txid,struct sha256_double
48# This means they offer the open (contains their offer packet)
49opening_fundee,3
50opening_fundee,0,minimum_depth,4
51opening_fundee,0,min_feerate,4
52opening_fundee,4,max_feerate,4
53opening_fundee,8,len,2
54opening_fundee,10,msg,len*u8
55# This gives their txid and info, means we can send funding_signed: we're done.
56opening_fundee_reply,103
57opening_fundee_reply,0,their_config,struct channel_config
58opening_fundee_reply,36,first_commit_sig,secp256k1_ecdsa_signature
59opening_fundee_reply,100,crypto_state,struct crypto_state
60opening_fundee_reply,244,revocation_basepoint,33
61opening_fundee_reply,277,payment_basepoint,33
62opening_fundee_reply,310,delayed_payment_basepoint,33
63opening_fundee_reply,343,their_per_commit_point,33
64opening_fundee_reply,0,remote_fundingkey,33
65opening_fundee_reply,0,funding_txid,struct sha256_double
66opening_fundee_reply,0,funding_txout,u16
67opening_fundee_reply,0,funding_satoshis,8
68opening_fundee_reply,0,push_msat,8
69# The (encrypted) funding signed message: send this and we're committed.
70opening_fundee_reply,0,msglen,u16
71opening_fundee_reply,0,funding_signed_msg,msglen*u8