Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lnbits/horse
hardware remote nostr event signer with webserial
https://github.com/lnbits/horse
Last synced: 24 days ago
JSON representation
hardware remote nostr event signer with webserial
- Host: GitHub
- URL: https://github.com/lnbits/horse
- Owner: lnbits
- Created: 2023-03-11T11:29:53.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T12:21:33.000Z (about 1 year ago)
- Last Synced: 2024-08-04T11:01:29.004Z (4 months ago)
- Language: JavaScript
- Size: 493 KB
- Stars: 37
- Watchers: 8
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nostr - horse - hardware remote nostr event signer with webserial (NIP-07 Browser extensions / Client reviews and/or comparisons)
README
# horse
### hardware remote signer of events
## a bridge to your Nostr hardware signer device
Use this to sign [Nostr](https://github.com/nostr-protocol/nostr) events on web-apps without having to give them your keys.
It implements [NIP-07](https://github.com/nostr-protocol/nips/blob/master/07.md), i.e. 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
```This extension is Chromium-only.
---
Icon by [shmai](https://www.flaticon.com/authors/shmai).