{"id":16340795,"url":"https://github.com/casey/nice-wallet","last_synced_at":"2026-03-18T19:02:56.213Z","repository":{"id":81087719,"uuid":"369406206","full_name":"casey/nice-wallet","owner":"casey","description":"Wallet Desiderata","archived":false,"fork":false,"pushed_at":"2021-06-08T01:56:07.000Z","size":10,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T14:40:33.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/casey.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":"2021-05-21T03:47:30.000Z","updated_at":"2021-12-19T13:33:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a694093-f8e9-4e57-b40d-c751848beaa4","html_url":"https://github.com/casey/nice-wallet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casey/nice-wallet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fnice-wallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fnice-wallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fnice-wallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fnice-wallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casey","download_url":"https://codeload.github.com/casey/nice-wallet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fnice-wallet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29122607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2024-10-10T23:57:54.573Z","updated_at":"2026-02-05T13:31:49.491Z","avatar_url":"https://github.com/casey.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nice Wallet\n\n## Table of Contents\n\n\u003c!--ts--\u003e\n* [Nice Wallet](#nice-wallet)\n   * [Notes, To-Do, and Junk](#notes-to-do-and-junk)\n      * [Prior Art](#prior-art)\n      * [Notes](#notes)\n   * [Disclaimer and Prolegomenon](#disclaimer-and-prolegomenon)\n      * [Deposits](#deposits)\n      * [Withdrawals and Spends](#withdrawals-and-spends)\n      * [Discussion](#discussion)\n\u003c!--te--\u003e\n\n## Introduction\n\nThis document introduces a hypothetical Bitcoin wallet architecture.\n\nThe two primary features of the architecture are:\n\n- Wallet frontends communicate with wallet backends using a standard protocol.\n\n- Wallet backends track user balances with an eCash-like blinded signature\n  scheme.\n\nIn tandem, these features provide numerous benefits, including:\n\n- Backends can be non-custodial, custodial, or somewhere in between.\n\n- Wallet backends do not know how many users they have, or what their balances\n  are.\n\n- Many users may use a single wallet backend, making backends robust\n  against external surveillance. This is especially true when off-chain\n  payments are used, for example via the Lightning Network.\n\n- Wallet frontends can be developed independently of wallet backends, increasing\n  competition between wallet frontend developers.\n\n- Launching a backend provider service becomes straightforward, as only\n  standard infrastructure components need to be deployed and managed.\n\n- Users may switch backend providers, without changing their wallet frontend\n  and user interface, increasing competition between backend providers.\n\n- Users may switch from a custodial backend provider to a self-hosted,\n  non-custodial backend, improving user sovereignty.\n\n## eCash\n\n[eCash](https://en.wikipedia.org/wiki/Ecash) was an anonymous cryptographic\nelectronic cash system invent in 1983 by David Chaum which operated as a\nmicropayment system at a US bank between 1995 and 1998.\n\nAlthough centralized, eCash had extremely attractive privacy properties, even\nwhen compared with more recently developed privacy-preserving cryptocurrencies,\nand, due to its centralization, eCash transactions can be performed quickly\nenough to be used at scale.\n\nAdditionally, cryptographic techniques developed in the intervening years can\nenhance an eCash-like system's properties\n\n### Deposits\n\n1. User tells the custodian that they would like to make a deposit.\n2. Custodian gives the user a bitcoin address `A` that they control.\n3. User sends `N` BTC to `A`.\n4. Custodian gives user a token `T`, which commits to `N`, and which is\n   unforgeable by anyone who is not the Custodian.\n\n### Withdrawals and Spends\n\n1. User takes `T` from an earlier deposit of `D` coins and blinds it to produce\n   `Tb`.\n2. User presents `Tb`, bitcoin withdrawal address `W`, and amount `N` and\n   requests that the custodian transfer `N` coins to `W`.\n3. Custodian checks that `Tb` is genuine, and that it commits to at least `N`\n   coins. However, the custodian cannot tell what `D` is, or that `Tb` was\n   derived from `T`.\n4. Custodian transfers `N` bitcoin to to `W`, and remembers that they have seen\n   `Tb`, so that it cannot be reused in the future.\n5. Custodian provides the user with a new token, `S`, that commits to `N - D`.\n\n### Discussion\n\nIn addition to the custodian not knowing user balances, if the users don't leak\ninformation through another channel (like their network identity, avoided if\nthey connect over a network like Tor) the custodian can't tell how many users\nthere are. Every time a user shows up with a token, the custodian can tell that\nthe token is valid and that it commits to at least as many coins as the user is\nrequesting to withdraw, but can't link it back to a previously issued token.\n\nAdditionally, if users deposit and withdraw over the Lightning Network, privacy\nis probably even better. Users can perform routing-client side, so the\ncustodian doesn't know the source or destination of funds, and can't make\ninferences based on on-chain addresses.\n\n### Prior Art and References\n\n- [Bitcoin Wiki: Wallet Protocol](https://en.bitcoin.it/wiki/Wallet_protocol)\n- [Wikipedia: Blind Signature](https://en.wikipedia.org/wiki/Blind_signature)\n- [Wikipedia: eCash](https://en.wikipedia.org/wiki/Ecash)\n- [Hosted Channels RFC](https://github.com/btcontract/hosted-channels-rfc)\n- [Danake](https://lightweight.money)\n- [Chaumian eCash for Custodial Bitcoin Wallets](https://nopara73.medium.com/chaumian-e-cash-for-custodial-bitcoin-wallets-and-services-to-scale-bitcoin-8977d9a03064)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Fnice-wallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasey%2Fnice-wallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Fnice-wallet/lists"}