{"id":48654222,"url":"https://github.com/lnbits/nsec-remote-signer","last_synced_at":"2026-04-10T09:00:16.247Z","repository":{"id":317932785,"uuid":"1069020329","full_name":"lnbits/nsec-remote-signer","owner":"lnbits","description":"A remote hardware signer for Nostr","archived":false,"fork":false,"pushed_at":"2025-11-14T11:09:12.000Z","size":9075,"stargazers_count":4,"open_issues_count":8,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-10T09:00:10.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnbits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"sukesh-ak","patreon":"sukeshak","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2025-10-03T09:24:04.000Z","updated_at":"2026-03-06T07:00:31.000Z","dependencies_parsed_at":"2025-10-04T01:19:44.273Z","dependency_job_id":null,"html_url":"https://github.com/lnbits/nsec-remote-signer","commit_stats":null,"previous_names":["lnbits/nsec-remote-signer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lnbits/nsec-remote-signer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnsec-remote-signer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnsec-remote-signer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnsec-remote-signer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnsec-remote-signer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnbits","download_url":"https://codeload.github.com/lnbits/nsec-remote-signer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnsec-remote-signer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31635969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-10T09:00:15.256Z","updated_at":"2026-04-10T09:00:16.227Z","avatar_url":"https://github.com/lnbits.png","language":"C","funding_links":["https://github.com/sponsors/sukesh-ak","https://patreon.com/sukeshak"],"categories":[],"sub_categories":[],"readme":"# Nostr Remote Signer Device\n\nA hardware Nostr remote signer implementing NIP-46 (Nostr Connect) protocol for secure event signing\n\n## Overview\n\nThis is a hardware-based Nostr remote signer built for the Guition JC3248W535 3.5\" ESP32-S3 development board with touch screen display. The device implements the NIP-46 (Nostr Connect) protocol to provide secure remote signing services for Nostr events while keeping private keys isolated on the hardware device.\n\n## Features\n\n- **NIP-46 Remote Signer**: Secure implementation of Nostr Connect protocol\n- **Touch Screen Interface**: 320x480 color touchscreen for user interaction\n- **Hardware Key Storage**: Private keys stored securely on device\n- **Client Authorization**: Manual approval system for connecting applications\n- **Event Signing Confirmation**: User approval required for each signing request\n- **WiFi Connectivity**: Connect to Nostr relays via WiFi\n- **PIN Protection**: Secure access to settings and configuration\n- **Power Management**: Light sleep after a short period of inactivity and deep sleep mode after a longer period of inactivity\n- **Real-time Status**: Connection status and signing request notifications\n\n## Hardware Requirements\n\n- Guition JC3248W535 3.5\" ESP32-S3 development board with touch screen display (320x480)\n- Power supply (USB or battery)\n\n## Getting Started\n\n### Prerequisites\n\n- [PlatformIO](https://platformio.org/) installed\n- Guition JC3248W535 3.5\" touch screen display (320x480)\n\n### Building and Flashing\n\n```bash\n# Clone the repository\ngit clone \u003crepository-url\u003e\ncd \u003crepository-directory\u003e\n\n# Build the project\npio run\n\n# Upload to device\npio run --target upload\n\n# Monitor serial output\npio device monitor\n```\n\n### Documentation\n\n```bash\n# Generate documentation\npio run -t docs\n```\n\n### Initial Setup\n\n1. Power on the device\n2. Use the touch screen interface to navigate to settings\n3. Configure WiFi connection to connect to your network\n4. Generate or import a Nostr private key (nsec format)\n5. Configure relay connection settings\n6. The device will display a bunker URL that applications can use to connect\n7. When applications request to connect, approve them via the touch interface\n8. Authorize signing requests as they come in from connected applications\n\n### Usage\n\n**Connecting Applications:**\n1. Applications use the bunker URL to initiate NIP-46 connections\n2. Device prompts for user authorization of new connections\n3. Approved applications are stored in authorized clients list\n\n**Signing Events:**\n1. Connected applications send signing requests via NIP-46\n2. Device displays event details and prompts for user confirmation\n3. User approves or rejects each signing request individually\n4. Private key never leaves the device\n\n## Architecture\n\nThe application uses a modular architecture with the following components:\n\n- **App**: Central coordinator managing all modules\n- **Display**: LVGL-based UI with LovyanGFX driver\n- **WiFi**: Network connectivity management\n- **RemoteSigner**: NIP-46 protocol implementation and event signing\n- **Settings**: Persistent configuration storage\n- **UI**: User interface screens and interactions\n\n## Development\n\nBuilt with:\n- PlatformIO Arduino framework\n- LVGL graphics library\n- LovyanGFX display driver\n- Custom Nostr protocol implementation (NIP-01, NIP-44, NIP-46)\n- WebSocket communication for relay connections\n- Secp256k1 cryptography for Schnorr signatures\n\n### Code Quality and Analysis\n\n#### Finding Unused Functions\n\nTo analyze the codebase for unused functions, use cppcheck:\n\n```bash\n# Install cppcheck (macOS with Homebrew)\nbrew install cppcheck\n\n# Run analysis to find unused functions\ncppcheck --enable=unusedFunction src/\n\n# For more detailed analysis with all checks\ncppcheck --enable=all --inconclusive src/\n```\n\nThis will identify functions that are defined but never called, helping keep the codebase clean and reducing binary size.\n\n## License\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fnsec-remote-signer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnbits%2Fnsec-remote-signer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fnsec-remote-signer/lists"}