Skip to content

Commit

Permalink
do not output seed and private key on get-info.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Apr 5, 2022
1 parent 6a489d3 commit 8c0293c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/scala/cliche/Commands.scala
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ object Commands {
def getInfo(): Either[String, JObject] = {
Right(
// @formatter:off
("keys" ->
(("pub" -> LNParams.secret.keys.ourNodePrivateKey.publicKey.toString) ~~
("priv" -> LNParams.secret.keys.ourNodePrivateKey.value.toHex) ~~
("mnemonics" -> LNParams.secret.mnemonic.mkString(" ")))
) ~~
("main_pubkey" -> LNParams.secret.keys.ourNodePrivateKey.publicKey.toString) ~~
("block_height" -> LNParams.blockCount.get()) ~~
("wallets" ->
LNParams.chainWallets.wallets.map { w =>
Expand Down

0 comments on commit 8c0293c

Please sign in to comment.