Christian Decker
2d9cd4759e
hsm: Make the master simply a client with special capabilities
2017-12-03 17:06:13 +01:00
Christian Decker
8ff69e0307
hsm: channeld now also just uses the handle_client entry point
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2017-12-03 17:06:13 +01:00
Christian Decker
6ce264d3a2
hsm: Remove special case of hsmfd_ecdh, replaced with client and cap
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2017-12-03 17:06:13 +01:00
Christian Decker
5482acb837
hsm: Unifying the client creation and adding client capabilities
...
We had a number of entry points into the HSM, all with different
behavior, so this is my attempt at unifying the way we handle
clients. Every client, except master, now takes the same path entry
point to the HSM and we use capability bit flags to indicate whether
the client is allowed to execute a set of operations.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2017-12-03 17:06:13 +01:00
Christian Decker
2fd78362ad
hsm: Log incoming client messages
2017-11-29 14:39:12 +01:00
Rusty Russell
af7e6158af
Makefile: clean needs to do more, distclean should remove everything.
...
I checked this with git status --ignored after a full build and 'make distclean'.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-11-24 13:29:03 +01:00
Rusty Russell
f9c6f6413f
hsmd: invoice signing support.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-11-01 01:09:23 +00:00
Rusty Russell
ffaa15c7da
hsm: remove unique_id.
...
It was only for error messages, so replace it with pubkey.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-10-24 16:12:22 +02:00
Rusty Russell
32631b4278
generate-wire.py: add --bolt arg, use size->type hacks only when that's specified.
...
For our own internal comms CSVs, we should always name explicit types.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-29 14:40:34 +02:00
Rusty Russell
1398a208f8
hsmd: add debugging into io_loop.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-29 10:20:08 +09:30
Rusty Russell
7e1154e1ec
hsmd: use debug for backtraces.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-12 23:00:53 +02:00
Rusty Russell
ef28b6112c
status: use common status codes for all the failures.
...
This change is really to allow us to have a --dev-fail-on-subdaemon-fail option
so we can handle failures from subdaemons generically.
It also neatens handling so we can have an explicit callback for "peer
did something wrong" (which matters if we want to close the channel in
that case).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-12 23:00:53 +02:00
Rusty Russell
bbed5e3411
Rename subdaemons, move them into top level.
...
We leave the *build* results in lightningd/ for ease of in-place testing though.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-29 17:54:14 +02:00