mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
struct secret: use everywhere.
We alternated between using a sha256 and using a privkey, but there are numerous places where we have a random 32 bytes which are neither. This fixes many of them (plus, struct privkey is now defined in terms of struct secret). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -62,7 +62,7 @@ static void json_dev_newhtlc(struct command *cmd,
|
||||
u8 *onion;
|
||||
struct htlc_end *hend;
|
||||
struct pubkey *path = tal_arrz(cmd, struct pubkey, 1);
|
||||
struct sha256 *shared_secrets;
|
||||
struct secret *shared_secrets;
|
||||
|
||||
if (!json_get_params(buffer, params,
|
||||
"peerid", &peeridtok,
|
||||
|
||||
Reference in New Issue
Block a user