Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melvincarvalho/noskey
generate nostr key
https://github.com/melvincarvalho/noskey
nostr
Last synced: 14 days ago
JSON representation
generate nostr key
- Host: GitHub
- URL: https://github.com/melvincarvalho/noskey
- Owner: melvincarvalho
- License: mit
- Created: 2023-01-04T20:32:18.000Z (almost 2 years ago)
- Default Branch: gh-pages
- Last Pushed: 2024-10-29T06:58:53.000Z (16 days ago)
- Last Synced: 2024-10-29T07:08:14.708Z (16 days ago)
- Topics: nostr
- Language: JavaScript
- Homepage: https://melvincarvalho.github.io/noskey/
- Size: 1.02 MB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
noskey
Generate nostr keys from command line---
Getting Started
---[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![npm](https://img.shields.io/npm/v/noskey)](https://npmjs.com/package/noskey)
[![npm](https://img.shields.io/npm/dw/noskey.svg)](https://npmjs.com/package/noskey)
[![Github Stars](https://img.shields.io/github/stars/melvincarvalho/noskey.svg)](https://github.com/melvincarvalho/noskey/)## ⚡️ Features
✓ Generate Private Key
✓ Generate nsec Private Key
✓ Generate Public Key
✓ Generate compressed Public Key
✓ Generate bitcoin address
✓ Generate bitcoin testnet3 address
✓ Generate npub Public Key
✓ Generate nrepo Public Key
✓ Generate taproot Public Key
✓ Generate taproot test Public Key
✓ Generate ed25519 Public Key
✓ Generate pubky Public Key
✓ Generate ed25519 openssh Public Key
✓ Generate ed25519 openssh Private Key PEM
✓ Generate from private key
✓ Generate from nsec
✓ Vanity Keys
✓ Run with npx or install## ✍️ Getting Started
---
Generate random keys
```bash
npx noskey
```Generate a vanity key
```bash
npx noskey --vanity 123
```Generate a from private key
```bash
npx noskey -p 123
```Install locally
```bash
sudo npm install -g noskey
```---
## Usage
```
Usage: noskey [options]Options:
--version Show version number
-v, --vanity Vanity string
-p, --priv Private key
-s, --nsec From nsec
-h, --help Show help
```## Example Output
```json
{
"privkey": "096267c08957fe0a83399d3e6be45fb283aefed6487fac55350d828142362f68",
"nsec": "nsec1p93x0syf2llq4qeen5lxhezlk2p6alkkfpl6c4f4pkpgzs3k9a5qs7nk3j",
"pubkey": "3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333",
"pubkeycompressed": "033104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333",
"bitcoinPubkey": "1LcHKWvoVW7ZXVtVf7cX3JS6hqvWNnphaB",
"bitcoinTestnet3Pubkey": "n18Eca1nJXYpJcN7NgatsDeRZqXDJ8EwFD",
"npub": "npub1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qvesle5tfn",
"nrepo": "nrepo1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qveskz7ewj",
"taproot": "bc1p1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qvesx55cr2",
"taproottestnet": "tb1p1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qves66y2cu",
"liquidtaproot": "ex1p1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qvesdq02p7",
"ed25519pubkey": "c6fcabb4927adf2eb64beb2a99004c836c71944220fe8b7568e04616eac34c29",
"pubky": "a56kzpr1xmx17p1m7cij1yncops8dfnnrd9es7mehbdbp4sdjowo",
"openSSHed25519pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMb8q7SSet8utkvrKpkATINscZRCIP6LdWjgRhbqw0wp",
"openSSHed25519privkey": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW\nQyNTUxOQAAACADAQAEAAAAAwAABgAFBgYFAAEACQIAAAAAAwMAAAUAAAAAAIiJTFkeiUxZ\nHgAAAAtzc2gtZWQyNTUxOQAAACADAQAEAAAAAwAABgAFBgYFAAEACQIAAAAAAwMAAAUAAA\nAAAEAACQYCBgcAAAgJBQcAAAAACAMDCQkAAwAGAAAEBQAAAgMBAAQAAAADAAAGAAUGBgUA\nAQAJAgAAAAADAwAABQAAAAAAAAECAwQF\n-----END OPENSSH PRIVATE KEY-----\n"
}
```## 📚 Documentation
Check out the documentation for noskey in the docs directory. There, you can find more detailed information about the features and usage of this tool.
[Documenatation](https://melvincarvalho.github.io/noskey/docs/)
## ⚖️ License
This project is under the MIT License. See the [LICENSE](https://github.com/melvincarvalho/noskey/blob/gh-pages/LICENSE) file for the full license text.