e02ad288e0d7b62a8416fd5253ce6ba42372c780
Nostr Signer (formerly Nostr Connect)
A Nostr Signer Extension - sign nostr events on web-apps without giving them your keys. Forked from nos2x with a fancy UI, crafted by Karnage.
Features
Implements NIP-07 and more:
async window.nostr.getPublicKey(): string // returns your public key as hex
async window.nostr.signEvent(event): Event // returns the full event object signed
async window.nostr.getRelays(): { [url: string]: RelayPolicy } // returns a map of relays
async window.nostr.nip04.encrypt(pubkey, plaintext): string // NIP-04 encryption
async window.nostr.nip04.decrypt(pubkey, ciphertext): string // NIP-04 decryption
async window.nostr.nip44.encrypt(pubkey, plaintext): string // NIP-44 encryption
async window.nostr.nip44.decrypt(pubkey, ciphertext): string // NIP-44 decryption
Install
Develop
git clone https://git.reya.su/reya/nostr-connect
cd nostr-connect
npm install
npm run build
Then:
- Go to
chrome://extensions - Enable "developer mode"
- Click "Load unpackaged"
- Select the
extension/output/folder
Commands
npm run dev # Development mode
npm run build # Production build
npm run lint # Lint code
npm run test # Run tests
npm run package:chrome # Package for Chrome
Languages
JavaScript
99.9%