Last active
May 18, 2020 21:27
-
-
Save Willburn/32fb6c5bf69e85258320bc7be7a24db5 to your computer and use it in GitHub Desktop.
Create address vkey skey
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>"~: | |
~!. `!!``,:!!:` ';" ,!" ;^` :!. `!! `:: ':::,` ':::~` '::::: | |
__ ______ __ __ ______ ___ ____ ____ ____ ________________ | |
/ |/ / | / //_// ____/ / | / __ \/ __ \/ __ \/ ____/ ___/ ___/ | |
/ /|_/ / /| | / ,< / __/ / /| | / / / / / / / /_/ / __/ \__ \\__ \ | |
/ / / / ___ |/ /| |/ /___ / ___ |/ /_/ / /_/ / _, _/ /___ ___/ /__/ / | |
/_/__///_/__/////_/_///////__/_/__///_____/_____/_/ |_/_____//____/____/ | |
/ ___// ____/ __ \/ _/ __ \/_ __/ | |
\__ \/ / / /_/ // // /_/ / / / | |
___/ / /___/ _, _// // ____/ / / | |
/____/\____/_/ |_/___/_/ /_/ | |
EOF | |
# ASCII ART http://patorjk.com/software/taag/#p=display&f=Slant&t=TRANSACATION%0ASCRIPT | |
# ASCII IMAGE https://cloudapps.herokuapp.com/imagetoascii/ | |
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 | |
# get name of verification key file | |
echo enter name of verification key file should end with .vkey | |
read verificationkey | |
echo enter name of the signing key file should end with skey | |
read signingkey | |
cardano-cli shelley address key-gen \ | |
--verification-key-file $addr_dir$verificationkey \ | |
--signing-key-file $addr_dir$signingkey | |
echo enter the vkey file that will be used to build address, ends with .vkey | |
echo $(find $addr_dir*.vkey) | |
read vkeyfile | |
echo enter the name of the file where you will store address should end with .addr | |
read addressfile | |
cardano-cli shelley address build-enterprise \ | |
--payment-verification-key-file $addr_dir$vkeyfile > $addr_dir$addressfile | |
echo congratulations you have made address $addressfile with the vkey $verificationkey and the skey $signingkey in directory $addr_dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment