2022-10-17 02:34:08 +02:00
|
|
|
#ifndef LIGHTNING_COMMON_HSM_VERSION_H
|
|
|
|
#define LIGHTNING_COMMON_HSM_VERSION_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
/* We give a maximum and minimum compatibility version to HSM, to allow
|
|
|
|
* some API adaptation. */
|
2022-10-17 02:35:01 +02:00
|
|
|
|
2023-03-14 06:15:50 +01:00
|
|
|
/* wire/hsmd_wire.csv contents by version:
|
|
|
|
* v1: 409cffa355ab6cc76bd298910adca9936a68223267ddc4815ba16aeac5d0acc3
|
|
|
|
* v2: dd89bf9323dff42200003fb864abb6608f3aa645b636fdae3ec81d804ac05196
|
|
|
|
* v3: edd3d288fc88a5470adc2f99abcbfe4d4af29fae0c7a80b4226f28810a815524
|
2023-03-14 06:16:50 +01:00
|
|
|
* v3 without v1: 3f813898f7de490e9126ab817e1c9a29af79c0413d5e37068acedce3ea7b5429
|
2022-10-17 02:35:01 +02:00
|
|
|
*/
|
2023-03-20 21:26:02 +01:00
|
|
|
#define HSM_MIN_VERSION 3
|
2022-12-14 01:19:49 +01:00
|
|
|
#define HSM_MAX_VERSION 3
|
2022-10-17 02:34:08 +02:00
|
|
|
#endif /* LIGHTNING_COMMON_HSM_VERSION_H */
|