oldcryptogeek / nos2x

nostr signer extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nos2x

notes and other stuff signed by an extension

Nostr Signer Extension

This allows you to sign Nostr events on web-apps without having to give them your keys.

It provides a window.nostr object which has the following methods:

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 // returns ciphertext+iv as specified in nip04
async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext+iv as specified in nip04

Demo Video

screencast.mp4

Install

  • Firefox Add-on
  • Chrome Extension
  • git clone https://github.com/fiatjaf/nos2x && cd nos2x && yarn && yarn run build then load as unpackaged on chrome://extensions with "developer mode" enabled

Screenshots


LICENSE: public domain.

Icon made by Freepik from www.flaticon.com.

About

nostr signer extension


Languages

Language:JavaScript 97.1%Language:HTML 2.9%