nsecbunker/nip46 is working now.

This commit is contained in:
fiatjaf
2023-12-02 15:32:40 -03:00
parent bc7cd0939c
commit 26b1aa359a
3 changed files with 6 additions and 6 deletions

View File

@@ -64,12 +64,12 @@ var nsecbunker = &cli.Command{
return err
}
npub, _ := nip19.EncodePublicKey(pubkey)
code := fmt.Sprintf("%s#secret?%s", npub, qs.Encode())
log("listening at %s%v%s:\n %spubkey:%s %s\n %snpub:%s %s\n %sconnection code:%s %s\n\n",
log("listening at %s%v%s:\n %spubkey:%s %s\n %snpub:%s %s\n %sconnection code:%s %s\n %sbunker:%s %s\n\n",
BOLD_ON, relayURLs, BOLD_OFF,
BOLD_ON, BOLD_OFF, pubkey,
BOLD_ON, BOLD_OFF, npub,
BOLD_ON, BOLD_OFF, code,
BOLD_ON, BOLD_OFF, fmt.Sprintf("%s#secret?%s", npub, qs.Encode()),
BOLD_ON, BOLD_OFF, fmt.Sprintf("bunker://%s?%s", pubkey, qs.Encode()),
)
alwaysYes := c.Bool("yes")