Skip to content

SeedSigner/independent_custody_guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

SeedSigner Independent Custody Guide

(Some Notes on Titling: I almost chose "The SeedSigner Manifesto" as a grab-your-attention title with a little bit of cheekiness baked in. As I think more and more about bitcoin custody and how it has evolved over time, the term "manifesto" seems increasingly appropriate to use for some of the ideas that underlie this guide. Manifestos commonly challenge conventional ways of thinking and can be threatening to incumbents and status quo beliefs.

As I view the longer arc of bitcoin custody, I think of it in three epochs. The first is the epoch characterized by Bitcoin Core and paper wallets, Core being of course the earliest way to store bitcoin, and paper wallets being representative of early creative attempts at facilitating storage with improved security assurances.

I consider the second epoch to be the hardware wallet era; that is, the era of proprietary, USB-connected, secure element equipped, separate hardware devices that represented a big advance in bitcoin custodial security assurances, but with significant compromises, some of which involve varying degrees of reliance on third parties. The second epoch was facilitated by the hierarchical deterministic wallet and the BIP39 seed phrase standards.

In my view, the third custody epoch is being ushered in by the PSBT (partially signed bitcoin transaction) standard, the implementation and refinement of multi-signature wallet standards, and the ongoing re-thinking of how we can increase the separation between devices/software that interact with the bitcoin protocol, and devices/software that interact with private keys. I believe that stateless signing devices (like SeedSigner) which leverage transparently airgapped communication (read QR-exchange protocol rather than NFC), with a focus on facilitating user-accessible multi-signature wallet use, will emerge as emblematic of this third epoch. The DIY approach of SeedSigner, leveraging general purpose hardware and Free-And-Open-Source code, will also serve to shift control away from purveyors of purpose-built, proprietary hardware wallets, moving that power back into the hands of users.

This "manifesto" then seeks to advance the idea that with the right mix of design inputs, users can have access to simple, user-friendly bitcoin self-custody, with solid security assurances, using inexpensive, discreetly-acquired hardware, & FOSS code.)





Quick Links (if you want to skip ahead):

Introduction

Most bitcoiners understand the importance of self-custody within the the larger bitcoin ecosystem -- as a digital bearer asset, being able to have personal custody of your coins is a huge part of the ethos of bitcoin (not your keys...not your coins). And holding one's own private keys is not merely some kind of bitcoiner virtue signaling exercise, but actually serves several important functions:

  • Protects bitcoin owners from loss of funds due to custodial service thefts or rugpulls
  • Allows users to send bitcoin to any recipient without the need for permission from anyone
  • Foundational to privacy-conscious bitcoin usage
  • Protects bitcoin as a financial asset from rehypothication & other forms of value dilution
  • Helps bitcoin users understand the network's technical fundamentals (when done properly)

Understandably, the first reason above, that is securing one's assets, is the primary concern for most people wanting to hold their own keys -- where your money goes, your mind follows. But for many of those earnestly wanting to get to the self-custody finish line, things can get in the way, life happens. A lot of it can have to do with uncertainty and analysis-paralysis. What hardware do I need? Which software is the best? Where should I store backups? What security trade-offs make sense for me?

I am assembling this guide as a living document to (hopefully) help people get to that self-custody finish line, using the custody framework that has evolved over time to make the most sense to me. When engineering a self-custody system, there are numerous variables to consider -- I've tried to minimize the branches of the decision tree in this guide to make the process less overwhelming for people who might be prone to obsessing over the details. I'll also attempt to justify these choices wherever I can. Depending on your situation, it may be appropriate to work through this guide with some kind of "Uncle Jim" or self-custody "coach", who can provide further context and answer questions along the way. However with a few select supplemental materials, this document may also serve as a guide for those intent on pursuing a more self-guided custody journey.

I should also note that early on in this guide, portions of it may read more like an essay and less like a technical guide. Though I initially set out to write a more step-oriented instructional document, questions of "why" and "how" persistently kept coming up. To get the full picture of what makes SeedSigner so different from most bitcoin storage devices, and in turn what makes the SeedSigner model so valuable, it made sense to go into the thinking behind some of the engineering choices that have brought the project to where it currently stands. Further, if people don't understand the "why" behind their actions, they're not going to have a high degree of confidence in, or conviction about, what they're doing. And because I believe confidence is a huge part of executing a bitcoin savings plan, I'm going to allow for a fair amount of digression, tangents and detours.

But back to nuts and bolts; at this point it's useful to list some assumptions this guide makes about its intended audience:

This Guide's Assumptions About Users:

  • You have a basic understanding of the mechanics of sending & receiving bitcoin
  • You are seeking to secure what is, or you expect to become, a significant amount of value
  • You are willing to spend a reasonable amount of time & energy to create a self-custody system
  • You are willing to spend at a bare minimum ~$100 on the necessary hardware & supplies
  • You have access to at least two remote, secure locations for key storage
  • You are comfortable with SeedSigner's overall security model (more on this below)

It also makes sense to list what you'll need early on so you can have an idea of what you're getting into:

Necessary Items:

  • A webcam-equipped computer running Sparrow bitcoin Wallet (https://sparrowwallet.com)
  • An assembled SeedSigner bitcoin signing device (https://seedsigner.com)
  • A printer with paper
  • Some sort of metal backup solution (optional, but strongly recommended)
Before we get started, a quick sidebar: Why Sparrow for this guide? (click the triangle on the left to expand)

Sparrow is a software program that runs on each of the Big-3 computer OS platforms (Windows, Mac, Linux), and that can be described as a bitcoin "wallet coordinator". What this designation means is that while you can absolutely use it for single-signature wallets, a big part of Sparrow's value proposition is that you can use it to take multiple bitcoin private keys and "coordinate" them into a multi-signature wallet. Sparrow is designed to be run on a computer with an active intenet connection, and also manages your wallet's interaction with the larger bitcoin protocol.

"Specter Desktop" (https://specter.solutions) is another high-quality software program that can be used to create and manage multi-signature bitcoin wallets, with functionality similar to Sparrow (side note: Specter also created & maintains an an airgapped DIY bitcoin signing device project that was a big part of the inspiration for SeedSigner; more info at https://github.com/cryptoadvance/specter-diy). Specter Desktop generally requires users to have/operate a full bitcoin node, which could be a standalone, purpose-built computer, or could be an instance of the bitcoin core software (https://github.com/bitcoin/bitcoin/releases) running on the same system where Specter Desktop is installed. Though running a full node is unarguably a more secure, more private way to access the bitcoin protocol (and something I personally think that most bitcoiners should do, or aspire to do), I didn't want it to be a deal-breaking requirement for this guide. As it also is with privacy, digging into bitcoin is a process and people should understand that you don't have to accomplish everything to become the "perfect" bitcoiner all at once. Responsibly undertaking self-custody in the proper way is a big enough task in and of itself.

"BlueWallet" (https://bluewallet.io) is another software program that can be used to create and manage multi-signature bitcoin wallets, but differently from Sparrow and Specter, BlueWallet is primarily intended for use on iOS and Android devices (though there is a Mac version too). BlueWallet also does not require the use of a full node. Being a mobile-based coordinator is what makes BlueWallet so compelling given that in many parts of the world, mobile devices are the primary way people interact with bitcoin as well as the broader internet. BlueWallet is a high-quality, feature-ful application (you can use the Lightning network with it too!) but in my opinion BlueWallet's achilles heel, at least for the purposes of this guide, is that it does not support bitcoin testnet. (But more on Testnet in a bit...)

Update: Since the creation of this guide, these additional mobile coordinators that are compatible with SeedSigner are available:

"Nunchuk" (https://nunchuk.io) "Keeper" (https://bitcoinkeeper.app)

The bottom line here is this: all of the options above will work great, but for the sake of keeping instructions from getting too overwhelming I have elected to use Sparrow for this guide.

Why Multi-signature Wallets?

Multi-signature wallets have gotten a bad reputation. Several years ago when the core concept of "multi-signature" storage started to gain traction in the bitcoin ecosystem, the hype and value proposition were real but it it took a fair amount of time for proper tools to be developed. And like most tools, the earliest versions necessarily targeted a more-technical audience, and by the time those tools had emerged the larger hype around multi-signature wallets had died down. This progression of events has seemingly resulted in multi-signature bitcoin storage being perceived as a more niche self-custody option only suited to sufficiently-technical individuals.

One of the primary goals of this guide is to shatter and discard the notion that multi-signature wallets are too complex for most, if not all, bitcoiners -- full stop. If a given multi-signature wallet seems too complex and is practically too difficult for most bitcoiners to use, that is the fault of the wallet's creators, who need to proverbially "return to the drawing board".

The most approachable way I've found for many people to think about multi-signature storage is to consider a multi-signature wallet as a kind of corporate board (sometimes referred to in technical-speak as a "quorum"). Your funds are the board's treasury, and those funds can only be accessed or moved with the approval of a certain number of board members (sometimes referred to as "co-signers"). Usually the number of co-signers required to access funds constitutes a majority of the total signers (think 3-of-5) but the chartering documents that are laid out when the board was created (sometimes referred to as the "multisig policy") dictate how many votes are needed to access funds. (Note that a board that only required one member to be able to approve the movement of funds wouldn't make a lot of sense, and in most scenarios a board that required every member to approve transactions would be difficult to manage.)

Like most analogies, this one breaks down as you get deeper into the technical details, but it still serves as a good starting point for most people. But now with a general idea of how multi-signature wallets work, what are the advantages & disadvantages?

Multi-signature wallet advantages:

  • Introduces fault-tolerance to bitcoin storage (no more single-point-of-failure)
  • Allows for physical, geographic distribution of the keys that make up a given wallet
  • Facilitates the distibution of custody among multiple, disparate parties
  • Allows for the use of muliple different hardware/software security models among cosigners

Multi-signature wallet disadvantages:

  • Increased techncial complexity that could result in loss of funds
  • Increased volume of information that needs to be stored/maintained
  • Users making multiple mistakes could still result in loss of funds

To expand on the first advantage of fault-tolerance -- with a single-signature wallet, the go-to strategy to mitigate the risk of losing a key is to keep a second copy of the secret that secures your bitcoin. This second copy of the secret is often kept in a separate location with an emphasis on physical security, as the other copy is often protected by some kind of technological access safeguard (secure element, PIN, etc.). But the mere existence of this second copy ironically increases the risk of the private key being not lost, but rather disclosed, to a potentially malicious third party (think of a rogue bank employee snooping in safe deposit boxes, or perhaps a more targeted malicious attack on a "remote-but-secure" location). The core advantage of multi-signature storage is that it allows for a scenario where the loss or the disclosure of a secret does not necessarily result in catastrophe.

It is my view that the fault tolerance afforded by a multi-signature storage strategy outweighs the necessary added complexity & information management requirement, especially when attempting to safeguard a substantial amount of value. Others are welcome to have differing opinions on these trade-offs, but if you are convinced of the appropriateness of multi-signature storage for your circumstances, I welcome you to read on.

What's the story with this SeedSigner thing anyway?

When I initially set out to write this guide, I didn't intend to tell the broader story of how SeedSigner came about, but as I thought more on the device's unique characteristics, the story behind its creation helps provide context for the various design decisions that were made as SeedSigner came into being. So once-upon-a-time...

As I was trying to improve my bitcoin storage security posture, I found myself in the camp of believers who felt that the benefits of multi-signature storage outweighed the costs/risks. But I am frugal, or put more bluntly, a cheapskate. The prospect of spending $500 or more on hardware wallets was unappealing to me. This position is actually a mistake because depending on the amount of value you are attempting to secure, it absolutely makes sense spend a reasonable proportion of that value to add safeguards to protect against theft or loss. But my inner-cheapskate was convinced that there should be a way to set up and operate multi-signature storage without the absolute need for several devices.

Enter Specter-DIY, as referenced above. While I'd been researching Specter desktop and other emerging multi-signature storage tools, I came across the Specter-DIY, a do-it-yourself bitcoin wallet made from easily acquire-able electronic components. One of the most interesting aspects of the Specter-DIY for me was it's use of animated QR code sets to communicate proposed transaction information from the multi-signature wallet coordinator software (in this case Specter Desktop) to the Specter-DIY, where the wallet's private key was available. If the given transaction was approved, an updated proposed transaction was then passed back to the multi-signature coordinator software from the Specter-DIY, again using QR codes (more on this rough-draft transaction mechanism, which in technical jargon is referred to as a "partially signed bitcoin transaction", to come).

This procedure made so much sense to me given my background in digital forensics (with a little bit of information security training sprinkled in). How the private key (whose security must be absolutely safe-guarded in any bitcoin storage scheme) could be stored and used on a device that was physically separate from the multi-signature coordinator, with only a very narrow QR-exchange communication protocol used to facilitate communication between them (instead of a USB connection), was such an elegant and relatively simple solution. In the digital forensics realm, great care and attention is given to when and how evidentiary devices are permitted to connect with evidence-collection devices; this great care arises from the broader criminal forensic discipline's reliance on Locard's "exchange principle". The exchange principle dictates that when there is physical contact between two given items, there will be an exchange of microscopic material between them that remains as evidence of the contact. Loosely applied to the discipline of digital forensics, when you connect two electronic devices, "things can happen" that involve either the transfer of data, or the creation of new data, as a result of the connection. Digital forensic practitioners seek to control, document and explain the results of connecting to evidentiary devices wherever possible.

My interest in Specter-DIY led me to begin casually interacting with members of the Specter team, as well as security researcher Michael Flaxman, author of the "10x Bitcoin Security Guide" (https://btcguide.github.io/). Flaxman had put out a public call for some kind of enclosure to be created for the DIY, and having previously tinkered with 3D printing and computer-aided design, I tried my hand at creating a simple printable enclosure. While interacting with Flaxman, he shared an idea for a simple device that integrated a Raspberry Pi Zero single board computer with a display-plus-controls module. The proposed device would allow users to input seed words they had randomly selected from the BIP39 list, and then use the device to calculate a seed phrase's final word, which acts as a kind of checksum against the words that precede it. (This checksum mechanism is intended to alert users to errors they might make when transcribing a seed phrase and subsequently entering the seed into a given device.) The beauty part of Flaxman's idea was that the proposed device used a specific version of the Raspberry Pi Zero, the version 1.3, that did not include the physical hardware components necessary for the Pi to connect to other devices via WiFi or Bluetooth.

When conducting a digital forensic examination of a given mobile electronic device (read phone, or tablet), the practice of radio isolation (using "Faraday" enclosures a la Michael Faraday) is often implemented to prevent devices subject to examination from connecting to wireless networks (via WiFi or cellular connection) or from connecting to other devices (via Bluetooth). This isolation prevents incoming data from causing changes on the device (the worst of which being a "death from above" remote wipe signal) and allows for a more controlled examination/acquisition of a mobile electronic device, with a more static data set. I should also note that for security reasons, the digital forensic lab in which I work utilized an internal, offline network that was specifically architected to not connect to the internet. Forensic evidentiary data could thus be shared by machines in different parts of the lab, but data travel beyond the lab's internal network was not possible. There were several reasons for this segregation, but it basically boiled down to not wanting any of our private data to be able to get out, nor wanting any undesirable data from the open internet to be able to get in.

Flaxman's idea of using a computer with no means of wireless communication to calculate final seed words enforced the same kind of network isolation we had used in the forensic lab and ensured that the private data comprised by the seed phrase would remain private, in a kind of "can't be evil" way. I ordered the necessary components and set to work translating my rudimentary coding skills into a proof-of-concept. Without too much trouble I cobbled together a device that would allow a user to enter 23 BIP39 seed words, and used a Python bitcoin library called Embit (h/t to Stepan Snigerev of Specter) to generate an appropriate checksum word to create a full, proper seed phrase.

After coding a supplemental dice-to-seed module that would convert 99 dice rolls into a 24-word seed phrase, I started to look for more use cases for my new "toy". I realized that with the addition of an inexpensive, Raspberry Pi-compatible camera, I might be able to replicate the core air-gapped transaction-signing ability of the Specter-DIY.

With some more stackoverflow-intensive research and coding, I was able to replicate the DIY's basic QR-exchange signing process, and at this point the full concept of SeedSigner had been born. An issue still remained however relative to private keys: would you really want this little device to remember your private keys? Given the absence of any kind of secure enclave technology in the Raspberry Pi platform that would be able to provide users with some assurance their private key was being stored securely, the resounding answer was a "no" -- you would definiely not want this device storing secrets that safeguard your bitcoin.

The solution to this problem was once again found in my experiences in the forensic lab. To acquire data from hard drives in a forensically defensible manner, examiners will commonly use linux-based "live" operating systems. These forensic live-OS tools allow you to power on an evidentiary computer, connect an evidentiary-collection hard drive, and essentially use a “bad guy’s” computer to acquire the data from its own internal storage location(s). The defining characteristic of these forensic live operating systems is that they operate entirely in the target computer's memory such that after you power the target system off, no persistent, residual data from the acquisition process is left behind. This process is possible because data in computer RAM/memory is “volatile”, meaning it is permanently lost when power is removed from the hardware. If my little handheld signing device was engineeried explicity to not remember private keys (only utilizing the keys as python variables in active memory), the issue of securely storing a key on the signing device could be avoided altogether. And not storing keys meant that the device could in theory be safely used with multiple keys, obviating the need for a dedicated hardware device for each private key within a multi-signature wallet!

The bill-of-materials cost for my physically-disconnected, wireless-incapable, amnesiac device came to approximately $35, a satifying result for my inner cheapskate. But as I shared my idea for a signing device with others bitcoiners, privacy-related advantages associated with the tool also emerged. Because a SeedSigner is not built from any components that are recognizably identified as bitcoin-specific by most people, they can be acquired without signaling an intention to build a bitcoin signing device to a merchant or anyone else, or a desire to interact with the bitcoin network. For those with strong privacy concerns, this is a highly desirable feature. And for those living in parts of the world where bitcoin use is discouraged or outright banned (thus making it difficult to securely and reliably source hardware wallets) SeedSigner can provide a more secure way to secretly save with bitcoin.

The story behind how SeedSigner came into existence highlights the device's advantages, but to condense them more explicitly:

  • Operation-in-isolation (no USB/WiFi/Bluetooth) dramatically reduces attack vectors
  • Low build cost makes the device accessible to more people in more parts of the world
  • Statelessness makes using SeedSigner with multiple seeds and/or multiple wallets feasible
  • Underlying fully-FOSS softare architecture makes independent build-yourself-from-source possible
  • Use of non-bitcoin-specific hardware can greatly enhance user privacy

Alright, But There's Got to Be a Catch, Right?

No technology, especially security-related technologies, are ALL positive, there have to be trade-offs or vulnerabilities. What follows is a list of the criticisms/vulnerabilities of SeedSigner of which I am aware; I will also briefly provide my perspective on each of them:

Direct access to seeds increases their disclosure opportunity: This is a criticism that is reasonable and that I agree with. Though some people that appreciate the SeedSigner model have begun using it for more day-to-day storage needs, the larger model was designed with cold storage in mind, meaning that I anticipate bitcoin savers using the SeedSigner model might typically need to make outgoing transactions 1-2 times a year (for larger spends, or perhaps to consolidate UTXOs). Deposits to a multi-signature wallet, including to newly-generated receive addresses, can of course be made without accessing private keys. So this means that your seed phrases should typically stay in some kind of remote, physically secure, non-visibly secure, tamper-evident storage spot. When you do access your seed phrases, obvious care should be taken to access them in areas that they will not be seen by unwanted persons, or in areas that are subject to visual surveillance, etc. It should also be noted that the use of a BIP39 passphrase in conjunction with your seeds can serve as an excellent mitigator to the risk of private key disclosure during seed access.

Reliance on a single software/hardware set for multiple keys in a quorum: This is an absolutely reasonable concern -- the idea behind it is that if a single device is used for all members of a multi-signature quorum, should should some critical flaw be found in a private key storage/signing mechanism, the security of the entire quorum could be jeopardized. Best practice would be to use multiple different software/hardware profiles to represent the cosigners of a multi-signature wallet, so should a vulnerability be found, a critical majority of the members would not be compromised. In this guide, in exchange for relying on a single device, a user obtains the cost-savings of not having to acquire several different hardware wallets, as well as the advantage of not needing to learn to become fluent in the proper use & maintenance of several different bitcoin storage/signing devices. Given some of SeedSigner's unique design elements, I believe our model effectively manages the downside risk of this issue, but individual users will have to decide whether they agree with this trade-off. As I often tell people, it's important not to let the perfect be the enemy of the really good as you consider different trade-offs.

A full linux installation has a large attack surface: This is another reasonable criticism. Bitcoin hardware security devices written using languages that run on "bare-metal" unarguably have fewer attack vectors and opportunities to introduce code with malicious intent. For SeedSigner, once the operating system image has been written to the MicroSD card that is installed in the signer, I believe that operating the device in isolation from the internet and other devices provides sufficient assurances that malicious code intended to exploit vulnerabilities in the Raspberry Pi OS can't be inadvertently introduced by a SeedSigner user.

Airgapped communication is security theatre that results in a worse user experience: I wholeheartedly disagree with the first part of this. Once the MicroSD card is installed in SeedSigner, the only way the device can communicate with the outside world is via the attached camera (input), and via the display screen (output). The QR exchange protocol is an effective means of using those two components to facilitate two-way communication with an extremely limited scope. It is technically possible for private key information to be communicated via QR codes displayed on the devices screen, but for an attacker to take advantage of such a situation, both the SeedSigner installation would need to be compromised, and the computer being used with SeedSigner would need to be compromised in some way so as to recognize, capture, and externally communicate the secret. As for user experience, QR exchange is unarguably less convenient and efficient than other methods of communication, but I consider it to be a more than acceptable trade-off given the importance of maintaining the secrecy and isolation of private keys.

Unpaid developers don't have time time/expertise/care to properly "do security": Many of Bitcoin Core's most sophisticated contributors have made their contributions while not being employed by a company sponsoring their work on the protocol. This kind of blanket statement is sloppy, bordering on malicious, criticism. As a fully FOSS (Free and Open Source Software) project, the SeedSigner code is available to audit and interested parties can suggest additions or modifications as they deem necessary. Security vulnerabilities are further discovered in code written by "professionals" all of the time.

Lack of software validity assurances leave open the possibility of malicious code installation: I'd classify this criticism as generally valid but mitigate-able. The meat of this criticism is that because the Pi Zero has no security mechanism to validate installed software as coming from a "trusted source", users might inadvertently download and install a rogue version of the SeedSigner software from a malicious source. Such malicious software could attempt to accumulate a user's private keys, replace addresses in partially signed transactions, as well as other mischevious schemes. Just as self-custody calls upon you to take ultimate responsibility for your bitcoin stack, you are the SeedSigner software validation mechanism and are responsible for ensuring that authentic software is installed on the device. I have published a PGP public key and sign a message containing a SHA256 hash of each prepared release; step-by-step instructions on how to properly download, verify and write a SeedSigner release image to MicroSD are also provided in the repository's "Read-Me" file.

An evil maid could use malicious code to exfiltrate private keys: The "evil maid" attack typically describes a malevolent third party who has access to a given individual's private space, and happens to inadvertently & secretly come across sensitive or valuable items or information that they subsequently steal or otherwise exploit. In the context of SeedSigner, this attack might be renamed the "evil adversary that can create sophisticated malware, and then secretly accesses your signing device on multiple occasions, installing undetectable rogue software, and subsequently secretly returning to abscond with your private key(s)... attack". I don't want to write this type of attack off as far-fetched, but reasonable countermeasures are to store your SeedSigner in a relatively secure place, use tamper-evident packaging if you feel it to be necessary given your home environment, and if for some specific reason you become concerned that your SeedSigner software may have been tampered with, simply zero out your MicroSD and re-write the SeedSigner prepared release image to your memory card.

The Broadcom BCM2835 chip used in Pi Zero is closed source and potentially compromised: This is perhaps the most vague criticism of SeedSigner I have come across. I haven't located any information to indicate a specific backdoor or other vulnerability relating to the Broadcom chip used on the Raspberry Pi Zero that would create a security vulnerability relating to SeedSigner.

Portions of the Raspberry Pi firmware are closed source: Part of Raspberry Pi's foundational firmware related to the board's GPU is closed source, and while it is a small portion of the device's firmware, it's a fair criticism that the Raspberry Pi firmware is not fully open source and that this could create risk (just like you can't be "a little bit" pregnant, something is either open source, or it's not). For malicious code insertion to be possible via this avenue, the entire global Raspberry Pi software supply chain would need to be compromised so that every single device was loaded with the malicious functionality, because it is not known which individual devices throughout the world are destined to become signing devices. Given that a miniscule proportion of Raspberry Pi boards are used to build SeedSigners, relative to the total amount of boards produced and being used throughout the world, an attacker's motivation to attempt this kind of exploit is reasonably quite low. But the next question is, specifically how would such an attack work? An exploit somehow preserving key material on the Raspberry Pi board would require attackers to discern where compromised devices were being used as signers, and then of course gain physical access to the compromised devices in hopes they contained key material -- a pretty high bar for prospective attack. And given the isolated nature of a SeedSigner's operation, a simple key leak via QR code would also require the partner computer or mobile device to be compromised as well so the leaked key could be collected -- another pretty high bar for prospective attack. Please see the next bullet for additional perspective on this attack vector.

A final thought on these criticisms/vulnerabilities, and on higher level threat modeling: If you are attempting to mitigate state-level threats that have the ability to covertly compromise entire hardware and software supply chains, please reference the graphic below that was taken from The Hitchhiker’s Guide to Online Anonymity (see: https://anonymousplanet.org/guide.html). All hardware devices are vulnerable to this level of interference, and corporate hardware wallets that are purpose-built and marketed/distributed specifically to secure private keys would be a much more productive target for the extensive resources required to successfully execute such an attack.

So What Does This SeedSigner Thing Actually Do?

Generally speaking, SeedSigner helps bitcoiners accomplish three important independent custody tasks:

  • Creating secure private keys in a trust-minimized way
  • Generating extended public keys used during initial wallet configuration
  • Securely signing transactions via animated QR code sets

Each one of these tasks deserves some elaboration, so here we go...

Creating Secure Private Keys in a Trust-Minimized Way

What makes a bitcoin private key secure? Simply put, ensuring that the private key is generated from information that is un-predictable, un-reproduceable, and un-guessable. These characteristics pretty well nail down what comprises the mathematical concept of entropy, i.e. randomness. Though there have been advances in the ability of software to generate unpredictable data, disagreements persist on the theoretical ability of truly random data to arise from organized, logical code created by human beings. (This may go without saying, but it's not a best practice to trust a private key generated by a bitcoin storage device that does not incorporate some kind of user input into the process.)

It turns out that the simplest, easiest, and perhaps best way to capture entropic data is via the randomness inherent in the movements of the physical world that surrounds us. The best example of this phenomenon I have come across are fingerprints. Human fingerprints, which are created with almost innumerable inputs that include: in utero blood pressure, blood oxygen levels, maternal nutrition, hormone levels, amniotic fluid density & composition, fetal position & movement, and even the sum of maternal movement during pregnancy. All of these variables shape the tiny ridges we all have on our finger tips. Given the amount of inputs, it would be virtually impossible to recreate these variables twice, which is why fingerprints are thought to be absolutely unique to a given individual, with no two individuals ever having had identical prints.

Rather than waiting the 9-months it takes to form human fingerpints, bitcoiners need a more quick-and-dirty way of capturing some physically generated entropy for use in private key generation. With the creation of the BIP39 seed phrase standard, the most common way for bitcoiners wanting to privately generate a private key was to randomly select 11 or 23 "seed" words (often literally out of a hat) and then use some kind of tool to calculate the aforementioned final "checksum" word. SeedSigner of course supports this method. It should be noted that this is the most trust-less way to create a private key with SeedSigner; you’re essentially just trusting the tool to calculate the correct final word (a calculation that can be verified using another offline tool, should you desire to verify it). You can find a printable & cut-able list the BIP39 word list here: https://seedxor.com/files/wordlist.pdf

Another way of creating a private key from physical inputs is to capture entropy from the results of dice-rolls and convert those results into a private key, and in turn a seed phrase for documentation. SeedSigner supports this method of generating a private key, and does so in a way that is verifiable using other tools, like those produced by Ian Coleman (https://iancoleman.io/bip39/) and Coinkite (https://coldcard.com/docs/verifying-dice-roll-math).

The last way of creating a private key with SeedSigner is to use the entropy from a digital photograph taken using the device's on-board camera. The entropy captured from this process is a "more than meets the eye" feature because not only the pixels in the photograph are used to determine the private key, but also the data from each preview image frame that is rendered on the screen after the feature is activated, as well as the Pi Zero's unique serial number, and the number of milliseconds the device has been powered on. The randomness from these variables is aggregated to capture the entropy that goes into a private key generated with this approach. It should be noted that while this method is a very convenient way of quickly converting real-world entropy into a secure private key, of the three methods it is the one that places the most trust in SeedSigner’s code.

Generating Extended Public Keys Used During Initial Wallet Configuration

This is beginning to get into the nuts and bolts of multi-signature wallets, with some asymmetric key cryptography sprinkled in, but understanding at a high level what's going on when you set up a multi-signature wallet is helpful as users piece the puzzle together.

As I’ve already alluded, private keys are the “secret” information that secures your bitcoin. Private keys are part of a landmark cryptographic framework that emerged during the 1970’s called “public key cryptography” (or sometimes also referred to as “asymmetric key cryptography”). In this framework, once a private key has been created, a unique public key can be mathematically derived from the private key. The relationship between the two exists as a one-way function, meaning that given just a private key, it is relatively trivial to derive the unique public key associated with the private key. But given just a public key, it is much more difficult to guess the private key from which it was derived (and commonly considered computationally impossible if complex enough math is used to define the relationship between the two values).

So in the bitcoin system, amounts of bitcoin are generally associated with public key values, and only those that hold the corresponding private key values are able to reassign (or “transfer”) bitcoin to be associated with a different public key value.

But what does this have to do with “extended” public keys and setting up a wallet? Early bitcoin wallets were actually made up of a collection of unrelated private keys, each of which had its own corresponding public key. To ensure you didn’t lose any of your bitcoin, you had to make sure to consistently maintain an up-to-date collection of all of the private keys you’d created with public keys that were storing any amount of bitcoin. Thankfully through a BIP (“Bitcoin Improvement Proposal”) a system was implemented where bitcoin wallets could be created using a “master” or “extended” private key, from which a predictable sequence of child private keys could be derived. The public version of this extended private key can of course be referred to as an “extended” public key (or XPUB), which contains sufficient information to derive a predictable sequence of child public keys, of course to which quantities of bitcoin can be associated (cha-ching!).

This concept gets extended up one level when multi-signature wallets are used, whereby several extended public keys can be coordinated together to create a multi-signature wallet. The collection of extended public keys, as well as the information on specifically how the keys are to be combined, can be referred to as a “wallet descriptor” (more on this to come). For now it’s just useful to know that SeedSigner allows you to take those aforementioned “extended” private keys (that people now generally just refer to simply as “private keys”) and generate the extended public keys needed to set up wallets.

Securely signing transactions via animated QR code sets

If you are going to enforce separation between the multi-signature wallet coordinator software that interfaces with the bitcoin network, and a different offline device that interacts with private keys (the signer), you need some way to move information between them. To standardize this process, another BIP (this time BIP 174) proposed a formalized format for what is referred to as a Partially Signed Bitcoin Transaction (PSBT). You can think of think of a PSBT as a kind of “rough draft” for a transaction that is ultimately intended to be broadcast to the bitcoin network for subsequent inclusion in the blockchain.

That rough draft includes all of the basic information that makes up a transaction; most importantly the input and output amounts and keys to be used, as well as the network fee to be spent. I refer to it as a draft though, because in the beginning it doesn’t include the information necessary to spend the funds, it is essentially just a proposal.

To move the proposed transaction from the multi-signature wallet coordinator software to the signer (while maintaining the air-gap of separation between the two) the transaction data is broken up and packaged into a set of QR codes that are displayed on your computer’s screen. SeedSigner is able to read the QR codes in, re-assembles them, decodes the transaction information within them, and then displays the proposed transaction information on the signer’s screen for the user to review. If the user elects to approve the proposed spend, and the nuance of this next step is important, SeedSigner inserts the necessary signatures into the proposed transaction. The private key(s) that are active in SeedSigner’s memory are used to generate cryptographic proof that signing device has the necessary information to authorize the spend, but the private keys themselves are not placed in the proposed transaction and don’t leave the device.

The final step of communicating the necessary signatures back to the multi-signature wallet coordinator software is for the updated PSBT to be encoded back into a set of QR codes, that are displayed on SeedSigner’s screen, and read back into the coordinator using your computer’s web camera. The coordinator will then parse and review the PSBT to determine if it now contains the necessary proof to spend the funds. For a multi-signature wallet, this process is repeated for as many signers as are necessary to authorize the transaction.

At this point it’s useful to note some reasons why this seemingly cumbersome method of exchanging QR code sets is preferable from a security standpoint. These reasons include that this communication process is limited in scope and duration, the information exchanged is auditable, and it’s explicitly apparent when communication is taking place. Unlike with a USB connection or a Bluetooth/NFC exchange, it is very apparent to the user when information is being exchanged between the computer that hosts the multi-signature wallet coordinator, and the signing device (and just as importantly, it’s apparent when there is no communication taking place, which isn’t commonly discernible when a USB/Bluetooth/NFC connection is being used). If a user suspects there is any “funny business” between the two devices, with the right tools, all of the transaction information can be decoded and viewed using third-party software (this process is currently more manual than I would like, but tools are starting to emerge, a great one being https://bip174.org). Most importantly when or if a user wishes to abort any exchange of information between the coordinator and signer, the way to end that exchange is apparent, and can be immediately executed.

(It is also worth noting that the QR code exchange process, while technically solid, is still early in terms of usability, with continuous refinements being made on either side of the exchange to improve the speed and accuracy of the scanning process.)

Alright, alright, this all sounds pretty cool. How can I get my hands on a SeedSigner to try it out?

Whew, after quite a bit of this more technical, foundational information, we are getting to some of the meat of this guide.

The three core components that make up a SeedSigner are:

  • Raspberry Pi Zero, version 1.3
  • Waveshare 1.3” 240x240 display/controls hat
  • Raspberry Pi compatible camera (with a Zero-compatible cable)

And of course, let’s look at these one by one:

Raspberry Pi Zero, version 1.3

Raspberry Pi has become almost synonymous with the Single Board Computer (SBC), and over time the Raspberry Pi ecosystem has evolved to offer multiple SBC profiles. The flagship Raspberry Pi model is commonly used by many to build stand-alone bitcoin nodes, but the Raspberry Pi Zero was first introduced in 2015 as a smaller, more streamlined version of the Raspberry Pi.

As previously noted, the absence of WiFi/Bluetooth hardware makes the 1.3 version ideal for use as an inherently air-gapped system. It should also be noted that SeedSigner is confirmed to be compatible with several other versions of Raspberry Pi SBCs:

  • Raspberry Pi 2/3/4
  • Raspberry Pi Zero W/WH/2W

Some of the above alternative models generally come with wireless technology pre-installed. As availability of the Pi Zero v1.3 waned throughout 2021, as of SeedSigner version 4.5.0, the software modules necessary for WiFi & Bluetooth use have been excluded from the prepared releases available in the SeedSigner GitHub repository. The result of this exclusion is that when using SeedSigner version 0.4.5 or above with one of the above-listed alternative Raspberry Pi models, a “software air-gap” is in place. Use of this software air-gap however entails placing additional trust in the prepared release, so the use of a Zero v1.3 is recommended for full assurance that wireless communication is not possible with SeedSigner.

Given the scarcity of the Zero v1.3, community members sprang into action, intent to figure out a way to physically disable the wireless communication capabilities in the various Raspberry Pi SMB models. Multiple approaches have emerged for the various boards, and can be found outlined here:

https://github.com/DesobedienteTecnologico/rpi_disable_wifi_and_bt_by_hardware

As SeedSigner evolves, we will aspire to support additional SBC platforms, but given the historical ubiquity of Raspberry Pi devices, we are currently focused on the Raspberry Pi Zero platform.

(A few notes on the Pi Zero’s ports: The Pi Zero is equipped with three user-accessible ports: two MicroUSB-compatible ports, and one mini-HDMI video-out port.

The MicroUSB ports appear identical to the naked eye, but it’s important to note that the port nearest the SeedSigner’s thumb-stick is engineered to accommodate power-ONLY, and the one next to it is engineered to carry power+data. This distinction is important when choosing which port to power your SeedSigner; most users will want to use the power-ONLY port, however developers and testers may choose to use the power+data port to conveniently communicate with their SeedSigner via SSH-over-USB.

** It may go without saying, but using the above-described power-ONLY port will ensure no data can be sent/received via USB while using a SeedSigner **

The mini-HDMI port is also commonly used by developers and testers to interact with the Pi Zero via terminal commands, however this port will not be useful to the majority of SeedSigner users)

Waveshare 1.3” 240x240 display + controls hat

There is not much terribly special about the Waveshare display + controls hat that we currently support. Specifics on the module can be found here:

https://www.waveshare.com/1.3inch-lcd-hat.htm

This display + controls module can commonly be acquired for $15 or less, though it will likely have to be ordered via the internet. One of the biggest advantages of this hardware module is that Waveshare has made a python-friendly driver publicly available; this driver made it easy to hit the ground running with the hardware and begin experimenting. I initially started working with a slightly different 120x120 pixel display + controls module, but it quickly became apparent that given the small screen size, the additional pixels would come in handy.

Builders purchasing their own components should be ensure the display + controls module they order has the 240x240 pixel designation, as Waveshare offers several display + control modules with similar hardware profiles, but that will not be compatible with the released SeedSigner software.

Raspberry Pi compatible camera (with a Zero-compatible cable)

Though most any Raspberry-Pi Zero compatible camera should be compatible with the SeedSigner software, most users opt for a very inexpensive, stock, Zero-compatible camera with an OV5647 sensor (capable of 5MP/1080p).

This camera can commonly be acquired for $10 or less and is quite capable given its low price-point. One thing to watch for when ordering this camera is to make sure you acquire a Zero-compatible ribbon cable if you intend to use it with a Pi Zero (these cables are typically gold in color, and narrower than a standard Raspberry Pi camera cable).

It should be noted that the above camera is also manufactured in a more compact build profile that is specifically designed for the Pi Zero and has some of the electrical components built into the ribbon cable itself:

It is helpful to know what kind of enclosure you plan to use, before selecting which camera to purchase (more on build enclosures to come).

Notes on “Micro” components:

I typically do not include these items in the SeedSigner “bill of materials” because most people tend to have several of them laying around their homes, but to operate a SeedSigner you will also need a MicroSD-profile memory card and a MicroUSB cable. The MicroSD memory card will need to have a minimum data capacity of 1GB, but beyond that no specific class or brand is required and any card with a larger storage capacity will work fine. There is also nothing special about the MicroUSB cable needed. For power, a common mobile phone power adapter will provide ample power, as will a laptop computer’s USB ports. USB-compatible mobile power banks can also be a convenient way to power SeedSigner with more mobility than a wall outlet will allow for. Please note that while it is sometimes possible to use SeedSigner with a 9V-to-USB power adapter, this setup commonly does not provide ample power for the SeedSigner’s camera and various malfunctions will result.

Keeping it all together:

Once you have all of the necessary components together for a build, there are multiple enclosure solutions to enhance SeedSigner’s durability and visual appeal.

Several 3d-printable enclosure designs are available within the SeedSigner repo at:

https://github.com/SeedSigner/seedsigner/tree/dev/enclosures

Note that each enclosure type is accompanied by an information page that details the enclosure's characteristics and which specific hardware components it is designed to accommodate.

Alternative “Barebones” builds: You can also use commercially manufactured acrylic protectors to keep your SeedSigner together and protected. These builds typically use the aforementioned alternative & more compact Pi Zero camera, and use a collection of screws and nuts to hold everything in place. Here is an example of this kind of build from Keith Mukai, our lead developer:

Testnet is the Best Way to, Well, Test:

For developers and others who want to experiment and conduct development testing with the bitcoin protocol without risking real funds, there are a few options out there, the most realistic and user-accessible of which is testnet. Testnet was technically the first “altcoin” and exists as a separate implementation of the bitcoin protocol. Testnet is an entirely separate network from the main bitcoin network, with its own nodes and miners, with the main difference being that testnet coins are intended to have zero value. Even though testnet is a powerful tool with which to learn and practice using bitcoin, the great majority of bitcoin users haven’t had any first-hand experience with it. This may partly be due to the fact that unfortunately not all wallets and other protocol-related tools support Testnet.

The good news is that Sparrow supports Testnet and it's super simple to set up and use. The key step is to launch Sparrow from your system’s terminal / command prompt using a flag that specifies that you’d like to use testnet:

  • In Windows: Sparrow.exe -n testnet
  • In MacOS: open Sparrow.app --args -n testnet
  • In Linux: Sparrow/bin/Sparrow -n testnet

(check this source for more information: https://sparrowwallet.com/docs/faq.html#how-can-i-run-testnet)

Sparrow should pre-populate the necessary settings to connect to a default public testnet server, but if you have trouble connecting to the pre-populated server, or if for whatever reason you’d like to connect to a different one, you can find several alternate testnet servers within this list:

You’ll also need testnet coins to begin experimenting with the network; here is the best source I've found where testnet coins can be quickly and easily acquired for free:

I emphatically suggest that as a critical part of creating and implementing your new multi-signature wallet, that you test and practice with Testnet. We can’t be skillful or truly confident about anything until we’ve practiced it, and an important part of implementing your own custody solution and holding bitcoin over the long-term is being confident in your storage scheme.

The first “cold storage” setup that I created in 2013-14 was simply a series of offline-created private and public key pairs that I generated and printed onto slips of paper (courtesy of https://www.bitaddress.org/). And while this means of storage proved to be secure during the period of time I was using it, over time I became anxious about my setup because I had only minimally tested it and didn’t really have any opportunity to practice any sort of redemption/spending. Over time, as bitcoin tends to appreciate in value, I sincerely believe a kind of anxiety can set it and savers can begin to wonder if their accumulated value is “real”, or if they’ll be able to access their bitcoin when they want/need to. For me, this anxiety grew over a long bear market (2014-2016), and after bitcoin’s exchange rate started rising again the anxiety culminated in me moving all of my coins from cold storage into an exchange account, where they were subsequently sold in early 2017 during the “fork-wars” (a good resource to learn more about this period of time is The Blocksize War: The battle for control over Bitcoin’s protocol rules by Jonathan Bier). It goes without saying that I own a lot less bitcoin now, and what I do own was all purchased at higher prices than those at which I panic sold.

A big part of my mission with SeedSigner is to help people avoid making a similar mistake — friends don’t let friends sell bitcoin. Don’t be weak-handed like I was. Take the time to think through how you’ll be most comfortable holding your coins over the long term. And then bring that hypothetical setup into reality.

Can we get started with the actual guide already?!?

Alright, alright, so you have Sparrow running in testnet-mode, and you have a built, functioning SeedSigner — its finally time to get down to brass tacks, as they say. Let’s go over the process of setting up a simple 2-of-3 multi-signature wallet.

The first step will be to create the private keys that you intend to use for your multi-signature wallet. I’ve already provided an overview of the three ways that you can introduce physical entropy to SeedSigner to create a private key, for this guide we’ll just create them quickly using SeedSigner’s seed-from-image function.

With SeedSigner, from the main menu navigate to:

Seeds –> Create a seed —> New seed (first option with the camera icon) —> click joystick —> reshoot | accept

After choosing the length of your mmemonic, you will then be presented with a screen detailling your 12 or 24 word seed that represent the private key you just created. Write these words down and double-check the accuracy of what you copied using the "Verify Backup" option. After verifying you've correctly written the words down, you have the option to apply an additional (BIP-39) passphrase to the seed phrase before finalizing it for use on the device. Use a passphrase won't be covered in this guide, but just be aware that if you choose to add a passphrase to a given seed, the passphrase transforms the private key represented by your seed into a completely new private key that can't be accessed without both the seed phrase AND the correct passprase.

After selected "Done" to finalize the seed, next, you will have the opportunity to access SeedSigner's manual transcription interface in order to export your private key in the form of a SeedQR. This process is optional but recommended, because the process allows you to record your seed phrase as a single-frame QR code that can be used to quickly and easily import your private key into SeedSigner in the future. To begin the transcription process, from your loaded seed menu navigate to:

Backup Seed –> Export as SeedQR –> select desired format

The process to manually create a SeedQR typically takes about 10 minutes. It is worth noting at this point that your QR-encoded seed phrase should never be scanned into any device that connects to the internet; SeedSigner should likely be the only device that you ever use to scan your SeedQR, unless perhaps at some point in the future you might use it to enter your seed into another QR-enabled signing device or hardware wallet. Your SeedQR should never be scanned into your computer’s webcam, or scanned with your mobile phone’s camera as it represents secret information that could be used to access your funds. It should also be noted that for users leery of encoding your private key into QR-form, your seed words can be manually entered into SeedSigner at any point to set up a new wallet or authorize bitcoin transactions.

Examples of the SeedQR transcription interface:

Several user-printable options for documenting seed phrases and SeedQRs can be found in the official repo's “docs” folder (https://github.com/SeedSigner/seedsigner/tree/main/docs)

Here is an example of a seed phrase and transcribed SeedQR using one of the forms available in the repo:

After you exit the QR transcription interface, you will have the option to verify that the SeedQR has been properly transcribed by selecting "Confirm SeedQR". Selecting this option will activate the camera, and you can scan the freshly-created SeedQR to confirm it has been transcribed correctly.

For the 2-of-3 wallet we’ll be setting up for testing, you will need to repeat this process two more times to create a total of three private keys. The good news is that as long as you’re comfortable you’ve maintained the secrecy of these keys during your testing, you can use them for your mainnet long-term Bitcoin storage wallet if you like.

Once that you have the necessary three keys created and documented, it’s time to create your testnet wallet in Sparrow. First, if you didn't start Sparrow in testnet using the terminal commands above, you can also switch from mainnet to testnet by navigating to Tools —> Restart in Testnet:

With Sparrow operating in testnet mode, to create the wallet navigate to File —> New Wallet

Give the wallet an appropriate name:

Select “Multi signature” as the wallet Policy Type

Making this selection will make the configurable option “Cosigners” appear in the upper righthand corner of the window:

In the above image, you can see that the sliders are positioned such that the created wallet will have a total of three cosigners, and will require a minimum of two of the members to authorize a given transaction.

For the purposes of this guide, we will leave the Script Type as the “Native Segwit (P2WSH)” format.

The next step is to add each of the cosigners, which are referred to as the wallet’s “Keystores” in the Sparrow interface. For this wallet, there are three tabs in the Keystores section, each representing one of the cosigners in the multi-signature wallet quorum. Under the “Keystore 1” tab, you can select the “Airgapped Hardware Wallet” button, which will lead to a list of air-gapped hardware devices:

Important Step: Return to your SeedSigner, and ensure that "Network" is set to "Testnet" within the SeedSigner settings. From the home menu, navigate to Settings —> Advanced —> Bitcoin Network —> Testnet

Now follow this menu sequence, which assumes you have temporarily saved the seed(s) you want to use in SeedSigner:

Seeds —> select your seed —> Export Xpub —> Multisig —> Native Segwit —> ...

... Sparrow —> Export Xpub

After the Xpub Details review screen, one or more QR codes will be displayed on the screen that represent your seed's extended public key.

Now return to Sparrow and select the SeedSigner “Scan” button, which should activate your system's web-camera. Now scan the QR code(s) displayed on your SeedSigner into your computer:

Important Note: If the screen from your SeedSigner is causing a glare in the webcam preview window, you can press up or down on the SeedSigner thumb-stick to adjust the brightness of the displayed QR code; ambient lighting can also have an impact on your webcam's ability to focus. It should be noted that some low-budget laptops may not have a sufficiently high-resolution camera to scan SeedSigner's QR codes. Adjusting the "QR Density" setting to "Low" may also resolve webcam scanning difficulties. With some low-quality cameras, advanced techniques can be used to tweak settings and make the camera workable (This is a good resource: https://www.addictivetips.com/windows-tips/access-advanced-settings-for-the-integrated-webcam-on-windows-10/amp/).

After the QR code(s) representing the extended public key have been scanned into Sparrow, the keystore tab will be renamed "SeedSigner" and information about the public key will be displayed in the Sparrow interface:

Because this setup is using SeedSigner with three different keys, you can modify the keystore's "Label" to read "SeedSigner 1". After repeating the above process for the second and third keys in your quorum, your wallet configuration window should look similarly to:

You may now click the "Apply" button in the lower right portion of the window to finalize the settings; Sparrow will display a final prompt asking if you would like to add a password to your wallet:

For the purposes of this guide, we will leave these password fields blank and click "No Password".

Not much will appear to change within the Sparrow interface, but your new wallet has been created! The very first thing you want to do with your wallet is to create a static backup of the full wallet descriptor. As previously noted, this descriptor contains a copy of each extended public key, as well as very specific configuration on how the keys are being combined to create the multi-signature wallet. The reasons for preserving this information are two-fold:

  • If you ever lose one of your three seeds / private keys, having a copy of the full wallet descriptor is essential to not lose access to your funds. If you lose one of your cosigner private keys and do not have full wallet descriptor, your funds will be permanently lost
  • If you subsequently want to verify that receive or change addresses belong to your multi-signature wallet as it was originally configured, a historical record of the wallet's configuration information is your best resource. As a stateless device, SeedSigner will not retain your wallet configuration information, and should your coordinator software (that's Sparrow in this guide) become somehow compromised, an attacker might try to provide a falsified wallet descriptor as part of an attempt to thwart address verification and steal funds

It should be noted that your full wallet descriptor is designated as private but not secret information. This means that the information within the wallet descriptor, if acquired by a third party, could be used to monitor any and all of the transactions made with your wallet. But the wallet descriptor does not contain the information necessary to access any of your funds. This knowledge may impact how and where you choose to store your wallet descriptor; printed hard copies are of course fully acceptable, but you may also choose to store a copy of your wallet descriptor on your computer, over even in "the cloud" (aka, someone else's computer).

SeedSigner is currently compatible with Specter's wallet descriptor format. To export a wallet descriptor using that format in Sparrow, with your wallet loaded, navigate to File —> Export Wallet:

A dialogue box will appear with various wallet descriptor export formats visible, scroll down to the bottom where you will see an entry for "Specter Desktop":

The "Show" option will display a QR code that contains the full wallet descriptor; you can screen-capture this QR code and print or save it as a file for future use:

This QR formatting of the wallet descriptor will be useful when you want to verify a receive or change address using SeedSigner. You can also choose the "Export File" option, and you will have the opportunity to save a .json-formatted file that can also be used to recreate your multi-signature wallet should recovery ever be necessary.

Now that you have created a multi-signature wallet and saved the wallet's descriptor, you're ready to receive some coins! To do so, you just need to visit the "Receive" section of the Sparrow wallet, along the left-hand side of the main window:

From this section of the Sparrow interface you can access receive addresses as you require them without any need for any of your seed phrases. In this way, Sparrow can be used to accumulate bitcoin over the long term without needing to have immediate access to any of your private keys.

When you are ready to make a spend, visit the "Send" section of the Sparrow interface. Here you can enter the destination address, a label for the transaction, and of course the amount for the spend:

The next step is to click "Create Transaction" in the lower-right portion of the window, which then gives you an overview of the transaction as it has been constructed:

From this screen you can also inspect the transaction's inputs and outputs. If you're satisfied with the details, now click the large button at the bottom of the window that reads: "Finalize Transaction for Signing". Pressing this button makes the different signing options visible:

From these options, first select "Show QR", which will bring up a window displaying an animated QR code:

These animated QR codes contain the already discussed "rough draft" of a transaction, also referred to as a "PSBT". Now, with the animated QR code displayed, return to your SeedSigner and select "Scan QR" from the main menu. Aim your SeedSigner's camera at the animated QR code, using the live-display as a guide, and scan the transaction into the signer:

Once the transaction is fully scanned in, SeedSigner will display the transaction details. You will then navigate through the steps:

Review PSBT —> PSBT Math —> Will Send (recipients) —> Your Change

Please note that some of the specific details displayed, such as the change amount and network fee amount, will likely be different. If the details don't look right, to abort the signing process just click the thumbstick to the left. If all of the details look correct and you would like to authorize the spend, click on: Approve PSBT

SeedSigner will add the necessary signature(s) to the PSBT, encode a revised version of it back into animated QR frames, and display an animated QR code containing the added signatures on SeedSigner's screen.

To get those signatures authorizing the transaction back into Sparrow, close the window displaying the animated QR code if you've not done so already, and select "Scan QR" from the Sparrow interface. Selecting this option will activate you webcam and allow you to scan the QR codes displayed on your SeedSigner into your computer:

Once the SeedSigner QR set is fully scanned back into Sparrow, you will notice in the "Signatures" section that "SeedSigner 1" has now been shaded blue, indicating this member of your quorum has supplied the necessary signatures to authorize the spend:

Repeat the preceding steps with your SeedSigner to sign with either "SeedSigner 2" or "SeedSigner 3" and the other "Signatures" section should become shaded in as well:

Congratulations! You should now be able to click the "Broadcast Transaction" button, which is the final step in the spending process. This step communicates your transaction, including the signatures generated with your SeedSigner, to other members of the bitcoin network and enters it into the queue for inclusion in a block. You will notice that in transaction window, the "Status" will be referenced as "Unconfirmed" until the transaction is incorporated into a bitcoin block.

Variables to Consider

In the above steps, I've illustrated the basic processes of creating private keys, creating a multi-signature wallet using extended public keys, and signing transactions using your SeedSigner. As you contemplate setting up a multi-signature wallet for long term bitcoin storage, there are a number of variables that deserve careful consideration. To conclude this guide, I am going to touch on several of these variables and offer some perspective on each of them.

Electrum or Full Node?: When you use your wallet coordinator to connect to a server managed by a third-party, you are implicitly trusting that source to provide up-to-date, accurate, honest information about the state of the bitcoin network. Interacting with a third-party server can also constitute a significant privacy leak given the nature of your coordinator's communication with it. Using your own full node is much more private and trust-less, but you'll either have to be willing to set up a dedicated computer to serve as your node, or utilize several hundred gigabytes of space on your local hard drive to run a full node there (note: it is possible to run a "pruned" node that does not contain a full historical copy of the entire bitcoin blockchain; there are some trade-offs with this approach but it may be a good compromise for some users).

How Many Members Does Your Board Have?: Even though this guide illustrates a simple 2-of-3 multi-signature quorum (with 3-of-5 being another popular choice), the possibilities here are literally endless. For example, our development fund is a 4-of-6 quorum where four individual stake-holders in the project hold a single key, and I as the founder of the project hold the remaining two, giving me a little more influence over potential spends. But as long as the other four members don't lose their keys, I could disappear and the funds would still be accessible.

12- or 24-word Seeds?: This issue can be a rabbit hole in and of itself. Technically a 24-word seed captures significantly more entropy than a 12-word seed, but given that you are likely going to be using a multi-signature wallet that incorporates at least three cosigners, I am of an opinion that multiple 12-word seeds provide adequate inputs for sufficient entropy (for a single-signature wallet I would probably choose a 24-word seed). Part of the reason to consider this variable carefully is that 24-word seeds will require a bit more work if you are planning on using QR-encoded seeds.

To Passphrase or Not To Passphrase?: The most important thing to understand about this decision is that adding a passphrase to your seed is to understand that doing so transforms the private key associated with the seed into a wholly new private key that cannot be accessed without knowing the exact passphrase. Using a BIP39 passphrase can be an extremely powerful method of protecting your seeds from inadvertent or malicious disclosure, but the trade-off is that you are taking on the additional requirement that you need to be able to produce the correct passphrase when you want to make a spend. Each key in your quorum can have the same or a different passphrase, which creates additional safeguards, as well as additional complexity. If you are particularly concerned about key disclosure, the addition of a passphrase may be a good addition to your setup.

Duress/Decoy Funds?: The idea here is to take a seed (probably the one you will be storing in your home), create a single-signature wallet from that seed, and deposit some amount of bitcoin to the wallet. The idea behind this technique is that if someone attempts to coerce you (usually in-person, with physical violence) to give them your bitcoin, you can produce this wallet as "all you have" in an attempt to convince the attacker to leave. As this is a commonly-known technique, you'll have to decide whether it makes sense for your setup. The amount associated with the seed in your home is intended to be enough to either convince the attacker it is all of the bitcoin you own, or at least enough to convince them it is worth their while to "take the money and run".

Do You Like Heavy Metal?: Over the long-term pen and marker can fade depending on the type and quality of writing device you are using, as well as the type and quality of the paper/cardboard you have selected, however regardless of how well you choose writing materials they are all succeptible to damge by fire. Metal QR solutions are likely to increase in quality and availability over time, but even a low-cost metal-washer backup is adequate to safeguard your seed words. If you end up selecting a 3-of-5 quorum, how likely is it that three of your seeds might be destroyed by fire, rendering your bitcoin holdings inaccessible? Only you can decide whether recording your seeds with metal is worth the additional time, trouble and expense.

How many copies of each key?: People will have differing opinions on this question, but I'm a big believer in having only one copy of each key in a quorum (almost definitely on some kind of metal back-up). As previously noted, with two copies you may halve your chances of loss, but if you are storing them in two different locations, you may be doubling your chances of disclosure. Also, given that one of the strengths of multi-signature wallets is the ability to lose a key without losing funds, for me it only makes sense to have one copy of each.

Where to Store the Keys?: The primary two storage location possibilities that come to mind are safe deposit boxes and in-home safes, and you'll of course want to implement some kind of geographic distribution of the keys (should they be in the same neighborhood? the same city? the same region? even in the same country?). The geographic distribution should take into account how often you think you may want to access the funds. The fire-resistance precautions put into place should also be taken into consideration, especially if you have not decided to preserve your seeds on metal. Friends with gun safes, especially large ones, can be a good option. Also make sure you plan to periodically do "key checks" to make sure your seeds are secure.

Tamper-Resistant and Tamper Evident?: Even though bank employees shouldn't be able to snoop through safe deposit boxes, when your keys are out of sight, you really don't know whether anyone else might be accessing them. Tamper-resistance of course implies a secondary layer of protection to prevent your seeds from being accessed (think a small box with a lock), but it would also be nice to be able to tell if someone had accessed, or even attempted to access your seeds, and that is where tamper-evident packaging comes in. There are not a ton of great solutions available but consider obtaining the same type of sealable bags law enforcement services use to package evidence (and don't forget to mark the seal with your initials or another unique marking).

Mixing in Other Signing Devices?: Though beyond the scope of this guide, some would argue that a mix of hardware wallets / signing devices from different manufacturers and/or with different code bases and security mechanisms can improve one's overall security posture (and I'm actually sympathetic to this argument). If I had to play devil's advocate regarding this position, I'd ask whether learning to become proficient with several hardware profiles justifies the advantages they bring in terms of technical diversity. A complimentary perspective is to not let the perfect be the enemy of the sufficiently good. You'll have to weigh the costs and benefits and decide for yourself how many different device profiles belong in your quorum.

Closing Thoughts

As already stated, this guide is intended as a living document. As the SeedSigner project grows, the information in this guide will be updated (hopefully) in real-time. From the start, I welcome your suggestions, even small grammar tweaks and spelling corrections -- please submit these in the form of either "pull requests" or "issues" within this repo.

Before closing this out, I would like to thank my collaborators Nick & Keith for being willing to jump into this adventure with me head-first, and I'd also like to to thank ALL of the people who have contributed to SeedSigner, in the wide variety of ways that people have. I also appreciate @jevidon (Twitter) for his early review of this document.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published