mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
channeld: don't calculate blinding shared secret, let lightningd do it.
It's a premature optimization, and it make modifications more complex. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -196,6 +196,10 @@ static struct tlv_encrypted_data_tlv *decrypt_encmsg(const tal_t *ctx,
|
||||
* - if the `enctlv` is not a valid TLV...
|
||||
* - MUST drop the message.
|
||||
*/
|
||||
/* Note: our parser consider nothing is a valid TLV, but decrypt_encmsg_raw
|
||||
* returns NULL if it couldn't decrypt. */
|
||||
if (!cursor)
|
||||
return NULL;
|
||||
return fromwire_tlv_encrypted_data_tlv(ctx, &cursor, &maxlen);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user