Skip to content

Nostr Notifications

Nostr notifications provide the highest level of privacy, delivering encrypted direct messages to your Nostr identity.

What is Nostr?

Nostr (Notes and Other Stuff Transmitted by Relays) is a decentralized protocol for social networking. It uses public-key cryptography for identity and message encryption.

Key Concepts: - npub - Your public key (identity) - nsec - Your private key (keep secret!) - Relays - Servers that store and forward messages - DMs - Encrypted direct messages between users

Setup

Prerequisites

You need: - A Nostr public key (npub) - A Nostr client to receive DMs - Configured relays

Adding Nostr Channel

  1. Go to Settings → Notifications → Add Channel
  2. Select Nostr
  3. Enter your npub
  4. Select encryption method (NIP-04 or NIP-17)
  5. Click Save

Encryption Methods

Method Description Compatibility
NIP-04 Original DM encryption Wide support
NIP-17 Gift-wrapped DMs, better privacy Newer clients

Recommendation: Use NIP-04 for maximum compatibility, NIP-17 for maximum privacy.

How It Works

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Vigil     │────▶│   Nostr     │────▶│    Your     │
│   Server    │     │   Relays    │     │   Client    │
└─────────────┘     └─────────────┘     └─────────────┘
                    Encrypted DM
                    (only you can read)
  1. Vigil creates a notification message
  2. Message is encrypted to your npub
  3. Encrypted message sent to Nostr relays
  4. Your client fetches and decrypts the message

Notification Format

NIP-04 DM Example

From: Vigil Notifications (npub1vigil...)
To: You (npub1your...)

🔔 Deposit Detected

Wallet: My Cold Storage
Amount: +0.05 BTC
Address: bc1qxyz...
Status: Unconfirmed

TX: abc123...
https://mempool.space/tx/abc123...

NIP-17 Gift-Wrapped

NIP-17 messages appear the same to you but have additional privacy: - Message timestamps are hidden - Reduced metadata exposure compared to traditional DMs - Better metadata protection

Vigil's Nostr Identity

Vigil sends from: - npub: npub1vigil... (full key in app) - Relays: Multiple public relays

Add Vigil's npub to your contacts for easy identification.

Relay Configuration

Vigil delivers DMs via a set of Nostr relays. Relay availability can change over time, so if you’re not receiving messages:

  • Make sure your client is connected to commonly-used public relays
  • Try a different client that supports the protocol you selected (NIP-04 or NIP-17)

Nostr Clients

Platform Client Notes
iOS Damus Full-featured, NIP-04 support
Android Amethyst Good DM support
Web Snort, Iris Browser-based
Desktop Gossip Privacy-focused

Client Configuration

Ensure your client: - Has your nsec configured - Is connected to relays Vigil sends to - Has DM notifications enabled

Privacy Benefits

vs. Email

Aspect Email Nostr
Identity Email address Pseudonymous npub
Encryption TLS to server End-to-end
Provider access Can read emails Cannot read DMs
Metadata Visible to provider Minimal (especially NIP-17)

What Vigil Knows

  • Your npub (public)
  • That we sent you a notification

What Relay Operators Know (NIP-04)

  • Vigil's npub sent a message
  • Your npub received a message
  • Message timestamp

What Relay Operators Know (NIP-17)

  • A message was sent
  • (Sender/recipient hidden)
  • (Timestamp hidden)

Troubleshooting

Not Receiving DMs

  1. Check relay overlap
  2. Ensure your client uses relays Vigil sends to
  3. Or configure custom relays in Vigil

  4. Check client DM settings

  5. Ensure DMs from unknown contacts are visible
  6. Some clients filter unknown senders

  7. Verify npub is correct

  8. Double-check the npub in settings
  9. npubs start with npub1

  10. Send a test

  11. Go to Nostr channel settings
  12. Click the Test button
  13. Check your client

Message Decryption Issues

  • Ensure your nsec is correctly configured in your client
  • Try a different Nostr client
  • Check that the client supports the encryption method you selected

Delayed Messages

Nostr messages may be delayed if: - Relays are slow or offline - Your client isn't connected - Network issues

Messages are stored on relays and delivered when your client connects.

Security Considerations

Protect Your nsec

Your nsec (private key) is like your seed phrase: - Never share it - Store it securely - Use a dedicated key for notifications if paranoid

npub is Public

Your npub is safe to share—it's like a Bitcoin address: - Anyone can send you messages - Does not reveal your identity (unless you link it)


Back to: Notification Channels →