N. P. O'Donnell, 2018-2020
Get help:
bitcoin-cli help
First off, to start the CLI, type:
$ monero-wallet-cli
If there's no wallet file in the current directory it will be created for you on startup, otherwise you'll need to choose a wallet name and one will be created for you.
Important: Monero wallets consist of two files, a wallet file and a keys file. For example if your wallet is called my-wallet
, the files will be my-wallet
(wallet data file) and my-wallet.keys
(key file). Both of these files are needed.
Once in the wallet REPL, the following commands are available:
#!/usr/bin/bash | |
INTERVAL=10 | |
SRC_DIRS=( Documents ) | |
DEST_HOST=192.168.0.1 | |
DEST_USER=user | |
DEST_DIR="~/backup" # Quotes are important! | |
if [ -e ~/.syncfiles.lock ]; then | |
echo "lockfile detected" |
Monitor outgoing DNS traffic: | |
``` | |
tcpdump -vvAs0 port 53 | |
``` |
MutableTransactionSignatureCreator
(src/script/sign.cpp) seems to be where the sighash is created. There is one constructor
which takes a transaction (txToIn
), an input index (nInIn
), and amount, and a sighash type (eg. SIGHASH_ALL
).
https://github.com/bitcoin/bitcoin/blob/master/src/script/sign.cpp#L28
https://github.com/bitcoin/bitcoin/blob/master/src/script/interpreter.cpp#L1234
#!/usr/bin/env sh | |
# make-repo | |
# Creates a bare, named git repo on the server side | |
# N. P. O'Donnell, 2020 - 2021 | |
REPO_BASE=/git | |
REPO_NAME=$1 | |
REPO_DIR=$REPO_BASE/$REPO_NAME.git | |
HOSTNAME=$(hostname) |