You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A comprehensive TypeScript library designed to make Nostr keys more human-readable and easier to manage. By converting `nsec` keys to mnemonic seed phrases, this library simplifies the process of storing and re-entering keys into Nostr applications.
This library handles cryptographic keys and seed phrases that are critical for securing your Nostr identity and data. Just like Bitcoin, any seed phrase or private key (`nsec`) generated by this library must be stored with the utmost security and care.
13
-
14
-
Developers using this library must inform their users about the critical nature of managing seed phrases, `nsec`, and hex keys. It is the user's responsibility to securely store and manage these keys. The library and its authors disclaim any responsibility or liability for lost keys, seed phrases, or data resulting from mismanagement.
14
+
A comprehensive TypeScript library for managing Nostr keys with seed phrases, including event signing, verification, and WebSocket utilities.
15
15
16
16
## Installation
17
17
@@ -35,16 +35,18 @@ Full API documentation is available at [https://humanjavaenterprises.github.io/n
35
35
36
36
## Features
37
37
38
-
- Generate secure BIP39 mnemonics for Nostr key pairs
39
-
- Create nsec private keys from hex format
40
-
- Convert between nsec/npub and hex representations
41
-
- TypeScript support with comprehensive type definitions
42
-
- Secure key management utilities
43
-
- Extensive testing and documentation
38
+
- 🔑 Generate and manage seed phrases for Nostr keys
39
+
- 🔄 Convert between different key formats (hex, nsec, npub)
40
+
- ✍️ Sign and verify messages
41
+
- 📝 Create and verify Nostr events
42
+
- 🌐 WebSocket utilities for Nostr applications
43
+
- 📦 TypeScript support with full type definitions
44
+
- ✅ Comprehensive test coverage
45
+
- 🔒 Secure key management practices
44
46
45
47
## Usage
46
48
47
-
### Basic Key Generation
49
+
### Key Generation and Management
48
50
49
51
```typescript
50
52
import {
@@ -57,181 +59,91 @@ import {
57
59
seedPhraseToKeyPair
58
60
} from'nostr-nsec-seedphrase';
59
61
60
-
// Generate new keys with seed phrase
62
+
// Generate a new key pair with seed phrase
61
63
const keyPair =generateKeyPairWithSeed();
62
64
console.log(keyPair);
63
65
// {
64
-
//seedPhrase: "your twelve word seed phrase here",
-`verifyEvent(event: NostrEvent)`: Verify a Nostr event
211
133
212
134
## Contributing
213
135
214
-
We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details.
215
-
216
-
## Testing
217
-
218
-
Run the test suite:
219
-
220
-
```bash
221
-
npm test
222
-
```
136
+
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
223
137
224
138
## License
225
139
226
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
227
-
228
-
## Support
140
+
[MIT](LICENSE)
229
141
230
-
- Create an [Issue](https://github.com/HumanjavaEnterprises/nostr-nsec-seedphrase/issues)
231
-
- Follow on [Nostr](https://snort.social/p/npub12xyl6w6aacmqa3gmmzwrr9m3u0ldx3dwqhczuascswvew9am9q4sfg99cx)
232
-
- Follow on [X (Twitter)](https://x.com/vveerrgg)
142
+
## Author
233
143
234
-
## Acknowledgments
144
+
[Vergel Evans](https://github.com/vergelevans)
235
145
236
-
-[nostr-tools](https://github.com/nbd-wtf/nostr-tools) - For Nostr protocol utilities
237
-
-[bip39](https://github.com/bitcoinjs/bip39) - For mnemonic generation
146
+
---
147
+
<divalign="center">
148
+
Made with ❤️ by <ahref="https://github.com/humanjavaenterprises">Human Java Enterprises</a>
0 commit comments