Created
May 24, 2020 00:12
-
-
Save Willburn/1ce06c2616fd212f6c653457bb923264 to your computer and use it in GitHub Desktop.
create pool keys script
This file contains 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
cat << "EOF" | |
``.'",,:>*r!~'` | |
`',,,,,,,:::::^/^!!~` | |
`.'"",,'',:~!^::!:=;;>ii!' | |
`.',''.`````:....';,,~::=vvl^` | |
.',,'....'',::,,::::::::>;ri|\\:` | |
`.,,,''` ',.```````,.'',,~^^:!^>iJ?` | |
`'''.````',. `.':,,,"~:!ii7l7v7Jr` | |
',,,':::~,.....!::,,,,',,!":::::|7!:;>` | |
',,,'.:'.`` :,.```.',:v;!:!^r?xv|il; | |
`,":,,,,''',',,":::,::*\**^^!!:!*>!:!::rl` | |
,:::"~,,,,,,::.`````..,r,,,,"~~:!\!;r?/l{: | |
`,,,:,,::;::!^^*\~.,:"~~:::::::!:::!!il7\:>\ | |
` '` ,"",:!:,:!r:~:;,:c:';,,,,,"~~~~!!::::|llz^>s. | |
a! .@L `~::!>?zi:~!^::;!!^t::~~::::::::!*;rr?ll/7cvz' | |
"@K .@L '"~:;r\u6{,:|;::!!!l|"""""::~~~::::::!7/:;)lC' | |
UB@, '6Rd@/ ~OHg^ :::!^*{wdgr;L>~:!^^^zr^rr;;?r>>rrr>>>?z7|/7sv` | |
.@rUe OD`.@L `:d# ~":!^>ue$Bu">*:!!!!!v::)!::::!^>?)L!:!^>|iv}? | |
}Q:c@, Qu .@L /By8Q `'!>^>?|/yw6WE\7l*|\//cxr=7|?\LlzsJzzc|Ll7vvlvz/r!,` | |
,@wFFQA wB,"@L RH.eQ ``.'''..',,,,,:!!;!:"""":!rrr^rr^!~:!^rrr^:'`` | |
rk` >X.`vp6u! ,ad4C `.```````.'.......`````````` | |
:!' `::``,:^^!' '^!!:~.`:!!!:!.:!. `!; `~^rr!' `:!>*;, `,:r=^:`,!, | |
^lL:`//`!\^,://,,l=,!||`,"*\:,`ri,`,i\ .?L,,\L'^\;'"\/,:\^',\i~:l~ | |
rc>L*)i.cl' `rl:~l|:r|! /L. >/|^/)l .ci;!l\'ll'``>l:>)"``^l::l! | |
rl,'|l)`=l?^rL/.~|="||. LL. >i,`'il .)L",'` ^|=r>L*`~c\*>L)':l>"~: | |
~!. `!!``,:!!:` ';" ,!" ;^` :!. `!! `:: ':::,` ':::~` '::::: a | |
__________ _________ ____________ ____ ____ ____ __ | |
/ ____/ __ \/ ____/ |/_ __/ ____/ / __ \/ __ \/ __ \/ / | |
/ / / /_/ / __/ / /| | / / / __/ / /_/ / / / / / / / / | |
/ /___/ _, _/ /___/ ___ |/ / / /___ / ____/ /_/ / /_/ / /___ | |
\________|_________/_______ /_______ ____________________________ | |
/ //_// ____/\ \/ / ___/ / ___// ____/ __ \/ _/ __ \/_ __/ | |
/ ,< / __/ \ /\__ \ \__ \/ / / /_/ // // /_/ / / / | |
/ /| |/ /___ / /___/ / ___/ / /___/ _, _// // ____/ / / | |
/_/ |_/_____/ /_//____/ /____/\____/_/ |_/___/_/ /_/ | |
EOF | |
# ASCII ART http://patorjk.com/software/taag/#p=display&f=Slant&t=CREATE%20POOL%0AKEYS%20SCRIPT | |
# ASCII IMAGE https://cloudapps.herokuapp.com/imagetoascii/ | |
source ~/.profile | |
addr_dir=$CNODEDIRADDR | |
if [ -z "$CNODEDIRADDR" ]; then | |
echo CNODEDIRADDR env variable set to $CNODEDIRADDR | |
echo what is your address/skey/vkey default directory | |
read addr_dir | |
fi | |
networkmagic=$CNODENETWORKMAGIC | |
if [ -z "$CNODENETWORKMAGIC" ]; then | |
echo CNODENETWORKMAGIC env variable was set to $CNODENETWORKMAGIC | |
echo what is your network magic number? | |
read networkmagic | |
fi | |
kes_dir=$CNODEKESDIR | |
if [ -z "$CNODEKESDIR" ]; then | |
echo CNODEKESDIR env variable was set to $CNODEKESDIR | |
echo what is your kes directory absolute path? | |
read kes_dir | |
fi | |
cold_dir=$CNODECOLDDIR | |
if [ -z "$CNODECOLDDIR" ]; then | |
echo CNODECOLDDIR env variable was set to $CNODECOLDDIR | |
echo what is your cold keys directory absolute path? | |
read cold_dir | |
fi | |
cert_dir=$CNODECERTDIR | |
if [ -z "$CNODECERTDIR" ]; then | |
echo CNODECERTDIR env variable was set to $CNODECERTDIR | |
echo what is your certification directory absolute path? | |
read cert_dir | |
fi | |
vrf_dir=$CNODEVRFDIR | |
if [ -z "$CNODEVRFDIR" ]; then | |
echo CNODEVRFDIR env variable was set to $CNODEVRFDIR | |
echo what is your VRF directory absolute path? | |
read vrf_dir | |
fi | |
# STEP 1 GENERATE COLD KEYS | |
echo what do you want to name cold keys no file ending | |
read coldname | |
cardano-cli shelley node key-gen \ | |
--verification-key-file $cold_dir$coldname.vkey \ | |
--signing-key-file $cold_dir$coldname.skey \ | |
--operational-certificate-issue-counter $cold_dir$coldname.counter | |
# STEP 2 GENERATE VRF KEYS | |
echo what vrf key name do you want only name not ending | |
read vrfkeyname | |
cardano-cli shelley node key-gen-VRF \ | |
--verification-key-file $vrf_dir$vrfkeyname.vkey \ | |
--signing-key-file $vrf_dir$vrfkeyname.skey | |
# STEP 3 GENERATE KES KEYS | |
echo what do you want to name the kes files, no file ending | |
read kesname | |
cardano-cli shelley node key-gen-KES \ | |
--verification-key-file $kes_dir$kesname.vkey \ | |
--signing-key-file $kes_dir$kesname.skey | |
# STEP 4 GENERATE NODE CERT | |
echo what do you want to name the pool op cert | |
read nameop | |
cardano-cli shelley node issue-op-cert \ | |
--hot-kes-verification-key-file $CNODEKESVKEY \ | |
--cold-signing-key-file $CNODECOLDSKEY \ | |
--operational-certificate-issue-counter $CNODECOUNTER \ | |
--kes-period 0 \ | |
--out-file $cert_dir$nameop.cert | |
# STEP 5 CHANGE CONFIG | |
echo you are soon good to go | |
echo you just need to edit your run script or command for cardano-nodo | |
echo add --skelley-kes-key with your kes.skey | |
echo add --shelley-vrf-key with your vrf.skey | |
echo add --shelley-operational-certificate with your certificate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment