core-lightning/lightningd/opening/opening_wire.csv
Christian Decker fbc2b65a3d opening: Pass network_index through to openingd
This is needed in order to open channels with the correct
genesis_blockhash.

Reported-By: @sstone
2017-07-12 11:30:23 +09:30

3.1 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# Which network are we configured for (as index into the chainparams)?
16opening_init,,network_index,4
17# Base configuration we'll offer (channel reserve will vary with amount)
18opening_init,,our_config,struct channel_config
19# Minimum/maximum configuration values we'll accept
20opening_init,,max_to_self_delay,4
21opening_init,,min_effective_htlc_capacity_msat,8
22opening_init,,crypto_state,struct crypto_state
23# Seed to generate all the keys from
24opening_init,,seed,struct privkey
25# This means we offer the open.
26opening_funder,1
27opening_funder,,funding_satoshis,8
28opening_funder,,push_msat,8
29opening_funder,,feerate_per_kw,4
30opening_funder,,max_minimum_depth,4
31opening_funder,,change_satoshis,u64
32opening_funder,,change_keyindex,u32
33opening_funder,,channel_flags,u8
34#include <lightningd/utxo.h>
35opening_funder,,num_inputs,u16
36opening_funder,,inputs,num_inputs*struct utxo
37opening_funder,,bip32_len,u16
38opening_funder,,bip32_seed,bip32_len*u8
39# This gives their sig, means we can broadcast tx: we're done.
40opening_funder_reply,101
41opening_funder_reply,,their_config,struct channel_config
42opening_funder_reply,,first_commit_sig,secp256k1_ecdsa_signature
43opening_funder_reply,,crypto_state,struct crypto_state
44opening_funder_reply,,revocation_basepoint,33
45opening_funder_reply,,payment_basepoint,33
46opening_funder_reply,,delayed_payment_basepoint,33
47opening_funder_reply,,their_per_commit_point,33
48opening_funder_reply,,minimum_depth,4
49opening_funder_reply,,remote_fundingkey,33
50opening_funder_reply,,funding_txid,struct sha256_double
51opening_funder_reply,,feerate_per_kw,4
52# This means they offer the open (contains their offer packet)
53opening_fundee,3
54opening_fundee,,minimum_depth,4
55opening_fundee,,min_feerate,4
56opening_fundee,,max_feerate,4
57opening_fundee,,len,2
58opening_fundee,,msg,len*u8
59# This gives their txid and info, means we can send funding_signed: we're done.
60opening_fundee_reply,103
61opening_fundee_reply,,their_config,struct channel_config
62opening_fundee_reply,,first_commit_sig,secp256k1_ecdsa_signature
63opening_fundee_reply,,crypto_state,struct crypto_state
64opening_fundee_reply,,revocation_basepoint,33
65opening_fundee_reply,,payment_basepoint,33
66opening_fundee_reply,,delayed_payment_basepoint,33
67opening_fundee_reply,,their_per_commit_point,33
68opening_fundee_reply,,remote_fundingkey,33
69opening_fundee_reply,,funding_txid,struct sha256_double
70opening_fundee_reply,,funding_txout,u16
71opening_fundee_reply,,funding_satoshis,8
72opening_fundee_reply,,push_msat,8
73opening_fundee_reply,,channel_flags,u8
74opening_fundee_reply,,feerate_per_kw,4
75# The (encrypted) funding signed message: send this and we're committed.
76opening_fundee_reply,,msglen,u16
77opening_fundee_reply,,funding_signed_msg,msglen*u8