-
Notifications
You must be signed in to change notification settings - Fork 4
/
create_wallet.sh
25 lines (22 loc) · 978 Bytes
/
create_wallet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
NAME="minter"
# Check if a directory does not exist
if [ -d "${NAME}" ]
then
exit 1
else
mkdir -p ${NAME}
fi
cd ${NAME}
cardano-cli address key-gen --verification-key-file ${NAME}_payment.vkey --signing-key-file ${NAME}_payment.skey
# echo "Generating Payment/Enterprise address"/
cardano-cli stake-address key-gen --verification-key-file ${NAME}_stake.vkey --signing-key-file ${NAME}_stake.skey
# echo "Payment/Enterprise address:"
cardano-cli address build --payment-verification-key-file ${NAME}_payment.vkey --mainnet | tee ${NAME}_payment.addr
# echo "Base address:"
cardano-cli address build --payment-verification-key-file ${NAME}_payment.vkey --stake-verification-key-file ${NAME}_stake.vkey --mainnet | tee ${NAME}_base.addr
# echo "Reward address:"
cardano-cli stake-address build --stake-verification-key-file ${NAME}_stake.vkey --mainnet | tee ${NAME}_reward.addr
# echo "Create QR Code"
qr $(cat ${NAME}_base.addr) > ${NAME}"_qrcode.png"