This guide explains Bitcoin Core rpcauth in plain English. It shows what the command does, what its result means and what it cannot prove.
TL;DR
- What it is: Bitcoin Core rpcauth stores a salted HMAC-based verifier in configuration instead of a reusable cleartext RPC password. Core 0.12 included a canonical generator and allowed multiple users.
- Why it matters: rpcauth avoids storing a directly reusable RPC password in Bitcoin Core configuration, but it does not supply encryption or fine-grained authorisation. Pair it with protected transport, narrow access and rehearsed rotation.
- Current position: Bitcoin Core rpcauth stores a salted HMAC-based verifier in configuration instead of a reusable cleartext RPC password.
Bitcoin Core rpcauth in simple English
Bitcoin Core rpcauth: The configuration entry contains a username, random salt and derived hash. At login Core recomputes and compares the verifier.
Simple example
A node operator is checking Bitcoin Core rpcauth. Possessing the config does not reveal the client password directly, but an attacker can attempt guesses offline.
Key terms in plain English
- Bitcoin Core:
- Widely used software that validates Bitcoin and can provide wallet, network and operator tools.
- RPC:
- A command that software sends to a node to request information or a local action.
- Node:
- A computer running Bitcoin software that checks data and communicates with other peers.
Verifier format
The configuration entry contains a username, random salt and derived hash. At login Core recomputes and compares the verifier. Possessing the config does not reveal the client password directly, but an attacker can attempt guesses offline. Generate high-entropy passwords and protect the verifier as sensitive authentication material.
Canonical generation
Use the generator shipped with the exact release or a verified equivalent, in a controlled terminal. Redirect neither passwords nor shell history into shared logs. Review the output format without displaying secrets in tickets. Transfer client credentials through an approved secret channel.
Multiple identities
Repeated rpcauth entries support separate usernames, improving attribution and rotation. They did not historically provide fine-grained method permissions merely by naming different users. Do not promise least privilege unless the installed release and architecture enforce it elsewhere.
Transport security
RPC authentication does not encrypt HTTP payloads. Wallet addresses, transactions, methods and credentials can be exposed on an untrusted network. Prefer loopback, a protected private network or an authenticated encrypted tunnel. Never bind ordinary RPC directly to the public Internet.
Configuration permissions
bitcoin.conf, deployment templates, backups and configuration-management output may contain verifier material or legacy secrets. Restrict ownership and mode, prevent accidental support-bundle inclusion and examine container environment, command line and mounted-secret exposure.
Rotation without outage
Add a new verifier, distribute the new password, restart or reload as supported, verify every client, then remove the old entry and restart again. Track pool software, monitoring, wallets and failover separately. A shared credential makes it impossible to determine which consumer remains stale.
How specialists test it
Operators test the command on a non-production node first. They check a normal reply, an invalid request, a timeout and a restart. This shows what the response means and prevents one local result from being mistaken for a network-wide outcome.
Frequently asked questions
What is the main point of Bitcoin Core rpcauth?
Bitcoin Core rpcauth: The configuration entry contains a username, random salt and derived hash. At login Core recomputes and compares the verifier.
For Bitcoin Core rpcauth, what should a beginner know about verifier format?
The configuration entry contains a username, random salt and derived hash. At login Core recomputes and compares the verifier.
For Bitcoin Core rpcauth, what should a beginner know about canonical generation?
Use the generator shipped with the exact release or a verified equivalent, in a controlled terminal.
For Bitcoin Core rpcauth, what should a beginner know about multiple identities?
Repeated rpcauth entries support separate usernames, improving attribution and rotation. They did not historically provide fine-grained method permissions merely by naming different users.
Conclusion
rpcauth avoids storing a directly reusable RPC password in Bitcoin Core configuration, but it does not supply encryption or fine-grained authorisation. Pair it with protected transport, narrow access and rehearsed rotation.
Primary sources
Check the current specification status and the documentation for the exact implementation you operate before moving production funds or changing a mining node.
Join the ASIC Mining Discussion
Members can read and join the discussion
Log in to read comments from other miners. Create a free account if you would like to ask a question or share your experience.
Membership helps us protect the discussion from spam and keep answers useful.