core-lightning/wallet
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
..
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db.c wallet: unique_id is not the same as dbid 2017-08-23 10:23:54 +09:30
db.h db: Add a hexval helper to decode hex values from db into fields 2017-08-10 12:34:58 +09:30
db_tests.c unittests: Test some more of the db primitives. 2017-06-23 16:02:20 +09:30
Makefile wallet: Created a simple persisted shachain unit-test 2017-08-10 12:34:58 +09:30
test_utils.h wallet: Add wallet_tests and simplify db_tests 2017-06-06 09:16:10 +09:30
wallet.c lightningd: Base peer->seed off of the channel ID 2017-08-23 10:23:54 +09:30
wallet.h lightningd: Load persisted channels on startup 2017-08-23 10:23:54 +09:30
wallet_tests.c wallet: Moving wallet_channel->peer_id into the peer struct 2017-08-23 10:23:54 +09:30
walletrpc.c fix: Typo in the error message for adding an output to DB 2017-08-18 14:40:34 +02:00
walletrpc.h walletrpc: Implemented the withdrawal flow 2017-06-23 16:02:20 +09:30