{{Header}} {{title|title= Bitcoin Core }} {{#seo: |description=Using Bitcoin Core in {{project_name_long}}. Fully verifying a Bitcoin wallet. Based on the original reference code by Satoshi Nakamoto. |image=Bitcoin234234234.jpg }} [[File:120px-Bitcoin.png|200px]] {{intro| Using Bitcoin Core in {{project_name_short}}. Fully verifying a Bitcoin wallet. Based on the original reference code by Satoshi Nakamoto. }} [[File:Bitcoin-core.png|thumb|Bitcoin Core Logo]] [[File:BC_Logo_.png|thumb|Bitcoin Logo|200px]] = Introduction = {{stub}} == Software Origin == Bitcoin Core is the client software directly descended from the original Bitcoin software client first released by Satoshi Nakamoto. Bitcoin Core consists of both "full-node" software which can fully validate the blockchain, as well as a Bitcoin wallet. https://bitcoincore.org/en/about/ The official open source project that maintains and releases the software can be found [https://bitcoincore.org/ here] ([http://6hasakffvppilxgehrswmffqurlcjjjhd76jgvaqmsg6ul25s7t3rzyd.onion/ .onion]). The project also maintains related software such as cryptographic libraries on GitHub. == Bitcoin Wallet Recommendation == It is impossible to provide a blanket recommendation regarding which Bitcoin wallet to use. This is an individual decision that depends upon: * technical skill * personal risk assignment * financial value in Bitcoin * available time * various other factors Other bitcoin wallets like [[electrum|Electrum]] may have better usability, but they also come with their own issues; see [[Electrum#Warnings|Electrum Warnings]] for example. Despite Bitcoin Core limitations it should be seriously considered for security reasons because it is the official Bitcoin client, particularly if transacting with Bitcoin accounts of significant financial value. Relative strengths include:
https://bitcoinbinary.org/
- a repository of Reproducible Build Proofs for Bitcoin Projects.
* full validating node
** transactions are validated against the complete blockchain - this lowers the probability of servers 'lying' to the client (the client has a higher probability of seeing its true Bitcoin balance)
* higher privacy
** all blocks are downloaded - the locally running node will not tell servers which wallet addresses belong to the node
Good signatureThis output might be followed by a warning as follows. {{Template:GnuPG-Warning}} '''5.''' De-armor the hash sum file. To avoid the following confusing output.
sha256sum --check --ignore-missing SHA256SUMS.asc bitcoin-0.21.1-x86_64-linux-gnu.tar.gz: OK sha256sum: WARNING: 20 lines are improperly formatted{{CodeSelect|code= gpg --decrypt SHA256SUMS.asc > SHA256SUMS }} '''6.''' Perform a hash sum check. {{CodeSelect|code= sha256sum --check --ignore-missing SHA256SUMS }} Expected output.
bitcoin-0.21.1-x86_64-linux-gnu.tar.gz: OK'''7.''' Extract the tar file. {{CodeSelect|code= tar xzf bitcoin-0.21.1-x86_64-linux-gnu.tar.gz }} '''8.''' Done. Download, digital signature verification and extraction of Bitcoin Core is complete. }} == Add a bitcoin-qt Start Menu Entry == Perform the following steps to create a
bitcoin-qt
start menu entry; this procedure is optional.
'''1.''' Create folder ~/.local/share/applications
.
{{CodeSelect|code=
mkdir -p ~/.local/share/applications
}}
'''2.''' Open file ~/.local/share/applications/bitcoin.desktop
in an editor as a regular, non-root user.
{{CodeSelect|code=
mousepad ~/.local/share/applications/bitcoin.desktop
}}
'''3.''' Paste the following contents.
{{CodeSelect|code=
[Desktop Entry]
Name=bitcoin-qt
Comment=bitcoin-qt
Exec=bash -c '~/bitcoin-*/bin/bitcoin-qt'
Terminal=false
Type=Application
Icon=money-manager-ex
StartupWMClass=bitcoin
MimeType=x-scheme-handler/bitcoin;
Categories=Finance;
}}
'''4.''' Save.
'''5.''' {{q_project_name_short}}: perform platform-specific steps.
In dom0
, refresh Qubes' appmenu: VM settings
→ Applications
→ Refresh Applications
→ Add desktop shortcut
.
'''6.''' Done.
The bitcoin-qt
start menu entry should now be available.
== Autostart bitcoin-qt ==
Perform these steps to automatically start bitcoin-qt
; this step is optional.
'''1.''' Apply the [[#Add a bitcoin-qt Start Menu Entry|Add a bitcoin-qt Start Menu Entry]] instructions first.
'''2.''' Create folder ~/.config/autostart
.
{{CodeSelect|code=
mkdir -p ~/.config/autostart
}}
'''3.''' Create a symlink from ~/.local/share/applications/bitcoin.desktop
to ~/.config/autostart/bitcoin.desktop
.
{{CodeSelect|code=
ln -s ~/.local/share/applications/bitcoin.desktop ~/.config/autostart/bitcoin.desktop
}}
'''4.''' Done.
bitcoin-qt
will now automatically start the next time the VM is booted.
== Start from Command Line ==
To start bitcoin-qt
(part of Bitcoin Core) from the command line, run.
{{CodeSelect|code=
~/bitcoin-*/bin/bitcoin-qt
}}
== Creating a Watch-Only Wallet ==
# Start bitcoin-qt
.
# Window
→ Console
# Import address.
Note: replace address
with the actual address to be watched.
{{CodeSelect|code=
importaddress address
}}
== Backup ==
TODO: research {{CodeSelect|code=dumpwallet|inline=true}} (see hdseed=1
and {{CodeSelect|code=sethdseed|inline=true}}
= See Also =
* [[Bitcoin]]
= Donations =
After installing a Bitcoin client, please consider making a [[Donate|donation]] to {{project_name_short}} to help keep it running for many years to come.
{{Pay_Bitcoin_Specific}}
= Footnotes =
{{reflist|close=1}}
{{Footer}}
[[Category:Documentation]]