Christian Decker
def3d77a70
lightningd: Base peer->seed off of the channel ID
...
The peer->seed needs to be unique for each channel, since bitcoin
pubkeys and the shachain are generated from it. However we also need
to guarantee that the same seed is generated for a given channel every
time, e.g., upon a restart. The DB channel ID is guaranteed to be
unique, and will not change throughout the lifetime of a channel, so
we simply mix it in, instead of a separate increasing counter.
We also needed to make sure to store in the DB before deriving the
seed, in order to get an ID assigned by the DB.
Signed-off-by: Christian Decker <decker.christian@gmail.com >
2017-08-23 10:23:54 +09:30
..
2017-08-22 14:56:02 +02:00
2017-08-22 14:56:02 +02:00
2017-08-22 14:56:02 +02:00
2017-08-09 10:01:33 +09:30
2017-08-22 14:56:02 +02:00
2017-08-20 13:06:41 +09:30
2017-08-22 14:56:02 +02:00
2017-08-20 13:06:41 +09:30
2017-05-12 12:59:09 +02:00
2017-08-20 13:06:41 +09:30
2017-08-20 13:06:41 +09:30
2017-06-23 16:02:20 +09:30
2017-06-23 16:02:20 +09:30
2017-04-12 09:09:19 -07:00
2017-08-10 12:34:58 +09:30
2017-08-20 13:06:41 +09:30
2017-07-12 10:21:16 +09:30
2017-08-20 13:06:41 +09:30
2017-08-20 13:06:41 +09:30
2017-06-29 00:08:21 +02:00
2017-06-29 00:08:21 +02:00
2017-06-29 00:08:21 +02:00
2017-05-09 11:43:35 +09:30
2017-07-12 10:21:16 +09:30
2017-06-07 09:19:04 +09:30
2017-05-25 14:24:47 +09:30
2017-02-24 16:22:56 +10:30
2017-06-23 09:29:42 +09:30
2017-06-23 09:29:42 +09:30
2017-08-20 13:06:41 +09:30
2017-05-25 14:24:47 +09:30
2017-05-02 11:47:52 +02:00
2017-05-25 14:24:47 +09:30
2017-03-07 11:33:24 +10:30
2017-08-22 14:56:02 +02:00
2017-01-10 15:38:33 +10:30
2017-05-10 12:37:44 +09:30
2017-05-10 12:37:44 +09:30
2017-08-20 13:06:41 +09:30
2017-06-27 10:25:53 +09:30
2017-06-23 09:29:42 +09:30
2017-06-23 09:29:42 +09:30
2017-08-20 13:06:41 +09:30
2017-08-20 13:06:41 +09:30
2017-08-20 13:06:41 +09:30
2017-08-20 13:06:41 +09:30
2017-06-07 09:19:04 +09:30
2017-08-20 13:06:41 +09:30
2017-08-22 14:56:02 +02:00
2017-08-20 13:06:41 +09:30
2017-08-23 10:23:54 +09:30
2017-08-23 10:23:54 +09:30
2017-08-20 13:06:41 +09:30
2017-04-25 22:00:28 +02:00
2017-04-25 22:00:28 +02:00
2017-08-09 10:01:33 +09:30
2017-05-25 14:24:47 +09:30
2017-06-23 09:29:42 +09:30
2017-06-23 09:29:42 +09:30
2017-08-23 10:23:54 +09:30
2017-08-23 10:23:54 +09:30
2017-07-12 10:21:16 +09:30
2017-02-24 16:22:55 +10:30
2017-08-20 13:06:41 +09:30
2017-08-20 13:06:41 +09:30
2017-07-12 10:21:16 +09:30
2017-04-25 22:00:28 +02:00
2017-04-25 22:00:28 +02:00
2017-08-22 14:56:02 +02:00
2017-08-22 14:56:02 +02:00
2017-06-27 10:25:53 +09:30
2017-03-20 07:50:53 +10:30
2017-08-20 13:06:41 +09:30
2017-08-20 13:06:41 +09:30
2017-05-25 14:24:47 +09:30
2017-06-06 09:16:10 +09:30
2017-06-23 16:02:20 +09:30
2017-06-23 16:02:20 +09:30