<p>In theory, the way that Lightning works allows for the use of a Hardware Security module to perform a lot of the logic which would allow for secret material to be stored externally on a secure device similar to a Trezor. However none exists at the time of writing, and persistent access to many of the files is likely required in the current software. The balance of a Lightning wallet should be for the moment considered to be an extremely hot wallet, rather than long term storage for this reason.</p>

CC BY-SA 4.0
2019-01-31T04:09:38.373Z
2019-01-31T04:09:38.373Z
Claris
<p>I was wondering if there was a way to encrypt the folder that contains the hsm_secret (and a lot of other operational files necessary for constant operation of a C-lightning node) without cutting it off from normal access required by an operational lightning network node?</p>

<bitcoind><private-key><lightning-network><encryption><core-lightning>
C-lightning Implementation password protect hsm while maintaing node access
Next Layer
# C-lightning Implementation password protect hsm while maintaing node access

(Asked by: username_0 on 2019-01-31)

I was wondering if there was a way to encrypt the folder that contains the hsm\_secret (and a lot of other operational files necessary for constant operation of a C-lightning node) without cutting it off from normal access required by an operational lightning network node?

**Tags:** bitcoind, private-key, lightning-network, encryption, core-lightning


---

## 1 answers

### Answer by username_1 on 2019-01-31. Score: 1

In theory, the way that Lightning works allows for the use of a Hardware Security module to perform a lot of the logic which would allow for secret material to be stored externally on a secure device similar to a Trezor. However none exists at the time of writing, and persistent access to many of the files is likely required in the current software. The balance of a Lightning wallet should be for the moment considered to be an extremely hot wallet, rather than long term storage for this reason.


---

