multisig-hsm/reference/setup_btc.sh
mineracks 7a17ffd12e Initial public release — multisig HSM reference + recipe book
Open-source 2-of-3 policy-enforced threshold HSM: auto-signs cold→hot treasury
refills under on-device Coldcard policy, no human in the loop. Includes the full
operator manual + quick-start, the reference coordinator/signing code, and a
signer-host bootstrap. No keys, seeds, or secrets — placeholders only.

Live signet demo: https://multisighsm.mineracks.com

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 13:56:51 +10:00

24 lines
637 B
Bash

#!/usr/bin/env bash
exec > /tmp/btcsetup.log 2>&1
set -x
cd ~
VER=27.0
if [ ! -x ~/bitcoin-$VER/bin/bitcoind ]; then
wget -q https://bitcoincore.org/bin/bitcoin-core-$VER/bitcoin-$VER-x86_64-linux-gnu.tar.gz
tar xzf bitcoin-$VER-x86_64-linux-gnu.tar.gz
fi
DATA=~/cksim/regtest-data; mkdir -p "$DATA"
cat > "$DATA/bitcoin.conf" <<CONF
regtest=1
server=1
fallbackfee=0.0001
[regtest]
rpcuser=ck
rpcpassword=ckms
rpcport=18999
CONF
~/bitcoin-$VER/bin/bitcoind -datadir="$DATA" -daemon
sleep 4
~/bitcoin-$VER/bin/bitcoin-cli -datadir="$DATA" -rpcport=18999 -rpcuser=ck -rpcpassword=ckms getblockchaininfo | head -5
echo "BTC_SETUP_DONE"