eos-go: Got an error when trying to import PVT_K1 format private key
When I’m trying to import PVT_K1 format private key I got the error: “malformed private key”.
keyBag := &eos.KeyBag{}
err := keyBag.ImportPrivateKey(context.Background(), pk)
With old PK format works fine.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 17 (9 by maintainers)
I checked with
eos-ecc
library and indeed, thePVT_K1_
format is quite different than just removing the prefix.The
PUB_K1_
andEOS
however is the exact same and I assume we actually simply ported the logic over toPVT_K1_
but it’s quite wrong.I should be able to fix that.