Commit Graph

4 Commits

Author SHA1 Message Date
Gezelligheid cb538eade9
Update wallets.go
When I read the wallet file using the code in the original code, I encountered this error: gob: type elliptic.p256Curve has no exported fields.
This is due to the fact that the elliptic.p256Curve type in the crypto/elliptic package has no exported fields, whereas the Gob encoder requires that all fields in the struct must be exported.
So I defined an exportable type, SerializableWallet, to store the parameters of the elliptic curve, and modified the decoding and encoding parts of the LoadFromFile and SaveToFile methods.
2024-09-20 20:21:29 +08:00
Ivan Kuznetsov 130cf66a90 Fix wallet file name 2017-10-01 10:53:26 +07:00
Ivan Kuznetsov 0c91da0e52 Wallet file name must depend on node ID 2017-10-01 10:48:51 +07:00
Ivan Kuznetsov fc0c819c43 Extract some structs into separate files 2017-09-10 10:54:58 +07:00