{"id":22316454,"url":"https://github.com/rjwalters/keytool","last_synced_at":"2026-05-04T04:31:19.242Z","repository":{"id":264072826,"uuid":"872762434","full_name":"rjwalters/keytool","owner":"rjwalters","description":"Desktop tool for key backup using Shamir's Secret Sharing","archived":false,"fork":false,"pushed_at":"2024-11-21T20:27:54.000Z","size":1493,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T01:51:59.600Z","etag":null,"topics":["cryptocurrency","electron","secret-sharing","shamir-secret-sharing","sveltekit"],"latest_commit_sha":null,"homepage":"","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rjwalters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-10-15T03:08:09.000Z","updated_at":"2024-11-21T20:32:50.000Z","dependencies_parsed_at":"2024-11-21T21:38:13.222Z","dependency_job_id":null,"html_url":"https://github.com/rjwalters/keytool","commit_stats":null,"previous_names":["rjwalters/keytool"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjwalters%2Fkeytool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjwalters%2Fkeytool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjwalters%2Fkeytool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjwalters%2Fkeytool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjwalters","download_url":"https://codeload.github.com/rjwalters/keytool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245581564,"owners_count":20638998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cryptocurrency","electron","secret-sharing","shamir-secret-sharing","sveltekit"],"created_at":"2024-12-03T23:06:37.800Z","updated_at":"2026-05-04T04:31:14.214Z","avatar_url":"https://github.com/rjwalters.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KeyTool\n\nA desktop application for securely splitting and recovering cryptographic keys using Shamir's Secret Sharing scheme. Perfect for creating redundant backups or implementing multi-party recovery schemes for cryptocurrency wallets.\n\n## Features\n\n- Split keys into multiple shares with customizable recovery thresholds\n- Support for both standard and self-indexed share formats\n- BIP39 mnemonic phrase compatibility\n- Information-theoretic security (no computational assumptions)\n- Built-in share recovery verification\n- Cross-platform support (Windows, macOS, Linux)\n- Offline-first design for maximum security\n\n## Download\n\nGet the latest release for your platform from the [GitHub Releases](https://github.com/rjwalters/keytool/releases) page:\n\n- Windows: `KeyTool-Setup.exe`\n- macOS: `KeyTool.dmg` or `KeyTool-mac.zip`\n- Linux: `KeyTool.AppImage`\n\n## Usage Guide\n\n1. Generate Shares:\n\n   - Input your wallet's private key or seed phrase\n   - Choose number of total shares and recovery threshold\n   - Select share format (standard/indexed)\n   - Generate and save shares securely\n\n2. Recover Key:\n   - Input the required number of shares\n   - Verify recovery threshold\n   - Reconstruct original key\n\nFor detailed examples and security recommendations, see the \"Learn More\" tab within the application.\n\n### Tiered Sharing\n\nKeyTool could be used in tiered sharing schemes, in which one or more of the shares is split into subparts. This approach allows you to create a hierarchical access structure for reconstruction. As an example, splitting a secret with a 2-of-3 scheme into parts (a, b, c) and then further splitting part (c) with a 3-of-5 scheme could enforce the requirements:\n\n- 2 admin shares (\"a\" and \"b\"), or\n- 1 admin share (\"a\" or \"b\") plus 3 user shares (any 3 of the five shares created from \"c\")\n\nThis can be achieved by creating a tree of shares, where the secret is first split among admins, and then one admin share is further split among users. This approach, inspired by [codahale/shamir](https://github.com/codahale/shamir), provides flexible access control while maintaining security.\n\n## Security Notes\n\n- Store shares separately and securely\n- Never store all shares in one location\n- Consider physical (paper) backups\n- Test recovery process before deploying\n- Verify checksums when recovering\n\n## Technical Details\n\nKeyTool uses Shamir's Secret Sharing over GF(Q) (prime fields) rather than GF(256) for several reasons:\n\n1. **Simplicity**: The implementation over prime fields is more straightforward and easier to understand.\n2. **128b BIP39 Compatibility**: For 128-bit cryptocurrency seeds, using a 128-bit prime field allows shares to be stored as 12-word BIP39 mnemonic phrases.\n3. **Use Case Optimization**: Since KeyTool is used for occasional key backup and recovery, we prioritize implementation clarity over raw performance.\n\nFor splitting larger secrets (\u003e256-bits), GF(256) implementations like [codahale/shamir](https://github.com/codahale/shamir) would be more appropriate.\n\n### Security Implementation\n\n- Uses polynomial interpolation in finite fields\n- 256-bit keys: Prime field of 2^256 + 297\n- 128-bit keys: Prime field of 2^128 + 51\n- Information-theoretic security\n\n### Dependencies\n\n- Electron for cross-platform desktop support\n- SvelteKit for UI\n- ethers.js for cryptographic operations\n- TailwindCSS for styling\n\n## Building from Source\n\n### Prerequisites\n\n- Node.js (LTS version recommended)\n- npm or yarn\n- git\n\n### Setup\n\n```bash\n# Clone repository\ngit clone https://github.com/rjwalters/keytool.git\ncd keytool\n\n# Install dependencies\nnpm install\n```\n\n### Development\n\n```bash\n# Start development server with hot reload\nnpm run electron-dev\n\n# Run tests\nnpm test\n\n# Lint and format code\nnpm run lint\nnpm run format\n```\n\n### Building\n\n```bash\n# Build for all platforms\nnpm run make\n\n# Build for specific platform\nnpm run make -- --mac\nnpm run make -- --win\nnpm run make -- --linux\n```\n\nBuild outputs will be available in the `dist` directory.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss proposed changes.\n\n## License\n\n[MIT](LICENSE)\n\n## Author\n\nRobb Walters ([GitHub](https://github.com/rjwalters))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjwalters%2Fkeytool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjwalters%2Fkeytool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjwalters%2Fkeytool/lists"}