Giter VIP home page Giter VIP logo

Comments (37)

gitmachtl avatar gitmachtl commented on July 29, 2024

Please take a look at the readme here: https://github.com/gitmachtl/scripts/tree/master/cardano/mainnet#filenames-used

Basically its choosenname.xxx.key

05a will generate the pool-(re)registration-certificat after you have updated the name.pool.json file an ran 05a... name again.

I am working on a small import script to convert over from cli keys made via coincashew.com tutorial... 😃

But please, make the conversion first with your existing cli keys before you try to also bring in the hw-wallet at the same time.

Also please run 05c with the additional parameter REREG at the end, because at this point the scripts (via the name.pool.json) does not know that the pool already exists.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

Also please checkout: https://github.com/gitmachtl/scripts/blob/master/cardano/mainnet/README.md#pool-configuration-file-poolnamepooljson---config-file-for-each-pool

There is a example mypool.pool.json file with the description of each entry.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

Thank you, I am going to match these with my certs, keys... I may have some additional questions because just off the top of my head I don't remember having the quantity of files that you have listed. But I very well could be (and usually am) wrong so I will let you know if there is any confusion..

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

hey, i have made a little import script. do you wanna test it?

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

Sure, I have a pool set up just for testing purposes before I do anything on my main one... I would love to give it go. I will have to do it tonight or tomorrow morning though.

thanks

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

Is this a MainnetPool? Because the datafetching will only work on Mainnet and not on the Testnet.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

Yep, It's mainnet.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

Ok, the script can be found here: https://github.com/gitmachtl/scripts/blob/master/cardano/testnet/0x_importHelper.sh

Basically you just have to run it and give it a name as parameter like "mypool" and your pool-id in bech or hex format. It will create a subdirectory with the same name "mypool". It will ask about the node(cold) key and the vrf key. After that about the owner keys. What the script is doing is just making a copy of them in the right naming scheme in this subdirectory. And also the pool.json file will be automatically filed out and build up with the informations.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

I got up to where it is trying to find my payment.skey and it is giving me an error saying:

image

I do have my payment.skey in the same file... It's been the same since the inception of my pool - I have never edited it or even opened it until today to look at it and make sure there were no glaring errors. Other then that, everything worked up until then. It created, I think, five files so far.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

maybe this will help.
the type on my payment.skey is: 'PaymentExtendedSigningKeyShelley_ed25519_bip32'
looks like your program is verifying for type: 'PaymentSigningKeyShelley_ed25519'

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

also, I was looking ahead a little in your program. my staking key is 'stake.skey'. It looks like you are looking for 'staking.skey' in the program...
I don't know bash that well so if It is suppose to be like that, sorry... lol. Just trying to help.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

maybe this will help.
the type on my payment.skey is: 'PaymentExtendedSigningKeyShelley_ed25519_bip32'
looks like your program is verifying for type: 'PaymentSigningKeyShelley_ed25519'

hmm... i have to check my early keys about that. yes i do a filtering on "PaymentSigningKeyShelley_ed25519" to check about a valid keyfile here so users can't mix it up. i have to check if my early ones are also that kind of type.
how did you create your skey for that one back in the days? was this via a ITN key conversion or so?

about the "stake.skey", this is only the default one. you have to specify your real one. "stake.skey" is used in the coincashew tutorial and other ones so i set the default to this name. but you have to set it to your real one of course. it will be copied to a new one with the xxx.staking.skey naming scheme.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

so you imported that key via the mnemonic method?

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

Yes, I did use the mnemonic method. I have full control over my pledge in my daedalus wallet.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

I did not run a pool in the ITN. I did not do any kind o conversion,,,

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

This is where you can find the coincashew instructions I used:
https://github.com/coincashew/coincashew/blob/dcbd6c354600231bb19794b7e1f7b5d97a5928f7/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node/README.md

they are a little different from the new instructions, the main difference was that these instructions had you building the relays on the same system as the BP node and I had to separate them after setup... but sometimes I have to tweek the commands in the new version to work with my node otherwise they are pretty similar.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

Hi, ok i lowered the check so that "SigningKey" must be included... please download the script again and try again. 😃

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

Congrats, you found a bug in cardano-cli 😃

I will report this back to the developers.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

i received this error: Generating file 'savvy/owner.payment.addr' ... Shelley command failed: address build Error: savvy/owner.staking.vkey: TextEnvelope type error: Expected: StakeVerificationKeyShelley_ed25519 Actual: StakeExtendedVerificationKeyShelley_ed25519_bip32 I am going to try and edit the code so that it will match and go forward... let me know if that is going to mess anything up.. I will let you know what happens..

hi, can you look into your stake.skey please and tell me exact type that is specified in there?

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

ok, and when you input that stake.skey into the script it fails with the error you sent me?

this is also from the same mnemonics method you used back in the days?

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

could you please run the following command for me:
cardanocli key verification-key --signing-key-file stake.skey --verification-key-file /dev/stdout

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

here you go:

anthony@anthony-XPS-2720:~/cardanoSavvy$ cardano-cli key verification-key --signing-key-file stake.skey --verification-key-file /dev/stdout
{
"type": "StakeExtendedVerificationKeyShelley_ed25519_bip32",
"description": "",
"cborHex": "5840..."
}

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

And, yes. I used the mnemonics method (from the older instructions I sent you).

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

ah ok, now it worked... strange. i am using the same command within the script. hmm. can you try to run the 0x_importHelper.sh script again to see if it again fails when you provide the stake.skey at the owner keys stage? Thx!

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

ahhh... wait. i have totally overlooked the error about the address build. ok, let me check something.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

would it be possible that you send me the payment.vkey and the stake.vkey to check the cardanocli against the issue? there is nothing i could do to harm your payment/staking keys with the vkeys.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

thx, i removed the post also... hmm... so your normal vkeys are not extended ones, but the skeys are extended ones. thats interesting. can you also copy&paste the copied ones in your savvy subdirectory. there should be a owner.payment.vkey and a owner.staking.vkey now. the importHelper script has created them there. theses should be extended ones, right?

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

I have updated the 0x_importHelper.sh script, please retry. 😃

It should now convert extended keys automatically into non-extended "normal" ones on the fly.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

still running into the type error:

Path to the 'stake.skey' of 'owner', blank to abort: stake.skey

Copying the file 'stake.skey' to new destination 'savvy/owner.staking.skey' ... OK
Generating file 'savvy/owner.staking.vkey' ... OK

Generating file 'savvy/owner.payment.addr' ... Shelley command failed: address build Error: savvy/owner.staking.vkey: TextEnvelope type error: Expected: StakeVerificationKeyShelley_ed25519 Actual: StakeExtendedVerificationKeyShelley_ed25519_bip32

ERROR (Code 1) !

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

ok, please retry. there was a bug in the if statement... sorry, i am doing this between other stuff right now... but i should work now.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

no problem, me to. i will try now.

from scripts.

stackBlock avatar stackBlock commented on July 29, 2024

looks good. worked all the way through and created all the files.. One questions, the last question about the second owner:
It says to leave blank if there is no second owner but the answer is pre-populated. I backspaced over the pre-populated answer in order to make it blank. Was that correct or did you mean to just hit enter? I ask because with the question about payment key , it says the same thing but in that case I left the prepopulated answer and it worked as if I had changed it to being blank..
Does that make sense?
Otherwise, worked perfect... I will try to finish up the hard-key conversion either tonight or tomorrow and let you know how it goes.. thanks again.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

yep just delete the prepopulted one and hit enter. maybe i should put a question in here to ask if the user wants to add another user or rewards account.

from scripts.

gitmachtl avatar gitmachtl commented on July 29, 2024

hardware wallet conversion with the .hwsfile is currently not supported. it is targeted currently on the beginners with normal cli keys. but of course you can now use the generated files to add the hw wallet and use the scripts as intended. 😄

from scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.