{"repo":"square/subzero","free":true,"listed":false,"github":"https://github.com/square/subzero","clone":"git clone https://github.com/square/subzero.git","description":"Block's Bitcoin Cold Storage solution.","language":"C","stars":695,"topics":["bitcoin","cold-storage","hsm","hardware-security-module","btc","crypto","cryptocurrency"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"HSM Cold Storage For security, Square stores a reserve of Bitcoins in an offline setting. By having these funds offline, we reduce attack surface and risk of theft. Square's solution is unique, specifically, we leverage FIPS certified Hardware Security Modules (HSMs) to protect the private key material. We decided to use such HSMs because we already own, operate, and trust these devices for other payment-related needs. Funds can be sent from online systems to the cold storage at any time. Moving funds out of cold storage requires a multi-party signing ceremony. In addition, the offline HSMs are able to enforce business logic rules, for instance we only allow sending funds to Square-owned addresses. Such a scheme is usually called defense in depth or an onion model. We maintain the online/offline isolation by importing transaction metadata and exporting signatures using QR codes. HSMs have the ability to share key material. This enables the ability to store our backups in encrypted form and restore a wallet at any location. This repo contains our design documents as well as specific technical information. We are sharing our source code, with the caveat that the code is currently only useful if you have the exact same hardware setup. We are willing to make the code more modular over time, as long as the broader community shows interest to implement support for additional hardware vendors. See also Open Sourcing Subzero (blog post) Documentation https://subzero.readthedocs.io Li","default_branch":null,"files":null,"tree":[],"storefront":"/r/square","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/square/subzero/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}