mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
9c0bb444b7
Now that connectd does the crypto, no need to hand around crypto_state. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
16 lines
366 B
C
16 lines
366 B
C
#ifndef LIGHTNING_COMMON_CRYPTO_STATE_H
|
|
#define LIGHTNING_COMMON_CRYPTO_STATE_H
|
|
#include "config.h"
|
|
#include <bitcoin/privkey.h>
|
|
|
|
struct crypto_state {
|
|
/* Received and sent nonces. */
|
|
u64 rn, sn;
|
|
/* Sending and receiving keys. */
|
|
struct secret sk, rk;
|
|
/* Chaining key for re-keying */
|
|
struct secret s_ck, r_ck;
|
|
};
|
|
|
|
#endif /* LIGHTNING_COMMON_CRYPTO_STATE_H */
|