Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Example wallet private key: printf bug? #83

Open
wildmolasses opened this issue Jul 8, 2020 · 0 comments
Open

Example wallet private key: printf bug? #83

wildmolasses opened this issue Jul 8, 2020 · 0 comments

Comments

@wildmolasses
Copy link

wildmolasses commented Jul 8, 2020

Hi! As I'm stepping through this project I'm really admiring the work you've done. I may have found a small bug in the example wallet:

fmt.Printf("Private key (hex):\t%x\n\n", privateKey.Serialize())

It might be the case that privateKey.Serialize() should be printed with %s instead. i.e. fmt.Printf("Private key (hex):\t%s\n\n", privateKey.Serialize()). Something with the underlying byte array I guess.

example with %x:

This is your private key, granting access to all wallet funds. Keep it safe. Use it only when sending Kaspa.
Private key (hex):	 30653434666662646262313565313665653961313830346234613766343162396539326463383038633031623737316235373166303133333562373133356665

These are your public addresses for each network, where money is to be sent.
Address (mainnet):	kaspa:qql35gahdwdjhdtcp8em4ced8fu2dv9fzve6zyy3mp
Address (testnet):	kaspatest:qql35gahdwdjhdtcp8em4ced8fu2dv9fzvfm3y824r
Address (devnet):	kaspadev:qql35gahdwdjhdtcp8em4ced8fu2dv9fzvjkwqzjkw

example with %s:

This is your private key, granting access to all wallet funds. Keep it safe. Use it only when sending Kaspa.
Private key (hex):	b4eb8c3174d394befcdd0a48b3408ccfbf629991047c07d5790a71ec9118c2ae

These are your public addresses for each network, where money is to be sent.
Address (mainnet):	kaspa:qpmunw2emgjj8p8x8wk9elqf6yjkmu06vscyamexu9
Address (testnet):	kaspatest:qpmunw2emgjj8p8x8wk9elqf6yjkmu06vsg9wm6aj8
Address (devnet):	kaspadev:qpmunw2emgjj8p8x8wk9elqf6yjkmu06vsng3ll932
@wildmolasses wildmolasses changed the title Example wallet private key: printf bug Example wallet private key: printf bug? Jul 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant