DEV Community

Discussion on: Building a Blockchain in Go Pt V - Wallets

Collapse
 
maxbridgland profile image
Max Bridgland

I can't seem to find anywhere in your code where you put a MakeWallet function, I see CreateWallets but no MakeWallet. I assumed that it would be something like this:

func MakeWallet() *Wallet {
private, pub := NewKeyPair()
wallet := Wallet{private, pub}
return &wallet
}

Looking forward to your coming tutorials! Thanks for all the hard work

Thread Thread
 
nheindev profile image
Noah Hein

You are entirely correct. I had only checked the repl and not the actual blog post.

My mistake, thanks for catching it!

You are also correct about how the method is implemented. I just updated the post for people that go through it in the future.

Thanks so much for the feedback max!