So let’s say you have this fancy Ord Wallet set up with some sweet Bitcoin in it. You want to make sure you don’t lose all those precious digital coins if your computer crashes, right? Well, lucky for us, Ord Wallet has a handy feature that lets us export our wallet as a “descriptor” file.
Before anything else: open up your fancy Ord Wallet and click on the little gear icon in the top right corner to bring up the settings menu. From there, select “Export Descriptor”. This will give you a popup window with some options for customizing your descriptor file (like whether or not you want to include all of your wallet’s addresses).
Now let’s say we want to export our Bitcoin wallet as a descriptor file. We click on the little checkbox next to “Bitcoin” and then hit that big blue “Export Descriptor” button at the bottom. Ord Wallet will generate a new file in your default download directory (usually something like Downloads or Documents) called “wallet_descriptor.txt”.
So what’s inside this fancy descriptor file, you ask? Well, let me break it down for ya:
// This script is used to generate a wallet descriptor file for Ord Wallet.
// It includes a public key hash and a range of addresses to be used.
// The wpkh function is used to specify the type of address to be generated, in this case, a segwit address.
// The sha256 function is used to generate a hash of the specified public key.
// The public key used in this script is "0479be66f31bcf55ace4ef3a7ba5ebeece9d8e1c74dafeffabdcfc6edae414dac".
[wpkh(sha256("0479be66f31bcf55ace4ef3a7ba5ebeece9d8e1c74dafeffabdcfc6edae414dac"))]
// This segment specifies the range of addresses to be generated.
// The first number (0) represents the starting index of the range.
// The second number (21) represents the number of addresses to be generated.
(0, 21)
This is just one example of what a descriptor file might look like. The first line tells us that we’re dealing with a “wpkh” (or “witness program hash”) address type for Bitcoin. The second line specifies the number of bytes to skip at the beginning of each transaction output (in this case, 0) and the number of bytes to include in each output script (21).
So what does all that mean? Well, let’s say you have a wallet with multiple addresses for Bitcoin. Ord Wallet will generate a descriptor file that includes information about all those addresses, like their public keys and how many bytes to skip/include when looking at transaction outputs. This makes it easy to share your wallet with other people or backup your data in case something goes wrong.
Exporting Wallet Descriptors with Ord Wallet is a super simple way to keep track of all your fancy cryptocurrencies and make sure they don’t get lost if your computer crashes.