nostr-crypto-guide

Implement Nostr cryptography workflows for NIP-06, NIP-44, NIP-46, NIP-49, and NIP-59 in TypeScript.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/accolver/skill-maker --skill nostr-crypto-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nostr-crypto-guide
Source: https://github.com/accolver/skill-maker/tree/main/nostr-crypto-guide
Command: npx skills add https://github.com/accolver/skill-maker --skill nostr-crypto-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Implement Nostr cryptography workflows for key management, encryption, gift wrap, and remote signing across the NIP-06, NIP-44, NIP-46, NIP-49, and NIP-59 standards.

Core Features & Use Cases

  • NIP-44 v2 encryption/decryption with per-message keys derived from a shared conversation key
  • NIP-59 three-layer gift wrap flow (rumor, seal, gift wrap) with proper signing and routing
  • NIP-49 private key encryption using scrypt and XChaCha20-Poly1305 with password normalization
  • NIP-46 remote signing architecture and transport via kind:24133
  • Reference implementations, validators, and test vectors for end-to-end correctness

Quick Start

Install dependencies and run the included TypeScript modules to implement and validate Nostr cryptography workflows.

Frequently Asked Questions about nostr-crypto-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement NIP-44 v2 encryption and decryption in TypeScript?

NIP-44 v2 encryption in TypeScript uses ECDH and HKDF to derive a shared conversation key, generating per-message keys for ChaCha20-Poly1305 encryption. This skill provides reference implementations and test vectors to validate cryptographic correctness.

What is the NIP-59 gift wrap flow for Nostr metadata privacy?

The NIP-59 gift wrap flow is a three-layer process involving a rumor, seal, and gift wrap. It ensures proper signing and routing to protect metadata privacy during Nostr interactions, implemented end-to-end with TypeScript validators and test vectors.

How does NIP-49 private key encryption work with scrypt and XChaCha20-Poly1305?

NIP-49 private key encryption uses scrypt and XChaCha20-Poly1305 with password normalization to secure keys. This skill implements the standard in TypeScript, applying cryptographic correctness checks and test vectors for end-to-end validation.

Can I use this to integrate NIP-46 remote signing via kind:24133?

Yes, you can integrate NIP-46 remote signing in TypeScript via kind:24133 events. This skill implements the remote signing architecture and transport, enforcing cryptographic correctness across the full interaction flow with reference material.

How do I derive Nostr keys using NIP-06 in TypeScript?

NIP-06 key derivation in TypeScript allows hierarchical key generation from a seed. This skill implements the workflow alongside bech32 encoding, providing reference implementations and test vectors to ensure cryptographic correctness.

Does this skill include test vectors for validating Nostr cryptography workflows?

Yes, the skill includes test vectors, validators, and reference implementations for Nostr cryptography workflows. It enforces cryptographic correctness across NIP-44, NIP-59, NIP-49, and NIP-46 standards in TypeScript modules.