--connect-as to specify client pubkey when using --connect to bunker

This commit is contained in:
fiatjaf
2024-02-06 12:47:46 -03:00
parent b7a7e0504f
commit 6626001dd2
3 changed files with 16 additions and 1 deletions

View File

@@ -48,6 +48,11 @@ example:
Name: "connect",
Usage: "sign event using NIP-46, expects a bunker://... URL",
},
&cli.StringFlag{
Name: "connect-as",
Usage: "private key to when communicating with the bunker given on --connect",
DefaultText: "a random key",
},
&cli.BoolFlag{
Name: "envelope",
Usage: "print the event enveloped in a [\"EVENT\", ...] message ready to be sent to a relay",