How to store ECDSA private key in Go

前端 未结 3 1049
鱼传尺愫
鱼传尺愫 2021-02-01 06:23

I am using the ecdsa.GenerateKey method to generate a private/public key pair in Go. I would like to store the private key in a file on the users computer, and load

3条回答
  •  野性不改
    2021-02-01 06:37

    I adapted a really quick and dirty way to do it, as suggested by one of the geth team in late '15 in my library https://github.com/DaveAppleton/ether_go

    it is a far simpler solution (but puts keys in plain sight)

提交回复
热议问题