Last active
May 29, 2023 18:32
-
-
Save cardano-apexpool/f37f333eea7f8aac9a76687a94a9cf51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# For mainnet | |
NET=mainnet | |
D_PATH="0H/0H" | |
umask 077 | |
#cardano-address recovery-phrase generate --size 12 > byron-phrase.prv | |
echo "my 12 words recovery phrase" > byron-phrase.prv | |
cat byron-phrase.prv | cardano-address key from-recovery-phrase Byron > byron-rootkey.prv ; chmod 600 byron-rootkey.prv | |
cat byron-rootkey.prv | cardano-address key public --with-chain-code > byron-rootkey.pub | |
cardano-cli key convert-cardano-address-key --byron-payment-key --signing-key-file byron-rootkey.prv --out-file byron-root.skey | |
cardano-cli key verification-key --signing-key-file byron-root.skey --verification-key-file byron-root.vkey | |
cat byron-rootkey.prv | cardano-address key child ${D_PATH} > byron-addr.prv | |
cat byron-addr.prv | cardano-address key public --with-chain-code > byron-addr.pub | |
cardano-cli key convert-cardano-address-key --byron-payment-key --signing-key-file byron-addr.prv --out-file byron-addr.skey | |
cardano-cli key verification-key --signing-key-file byron-addr.skey --verification-key-file byron-addr.vkey | |
cat byron-addr.pub | cardano-address address bootstrap --root $(cat byron-rootkey.pub) --network-tag ${NET} ${D_PATH} > byron-addr.addr | |
echo $(cat byron-addr.addr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment