@cryptotaxi247 / kubo / commits / 56550c1b6

keystore: Switch from Bytes() to MarshalPrivateKey()

Bytes is deprecated.

Hector Sanjuan committed Mar 27, 2020 at 12:57 UTC 56550c1b6104dd073d405c1a021a6b552bb58e34
1 file changed +1 -1
keystore/keystore.go
+1 -1
@@ -81,7 +81,7 @@ func (ks *FSKeystore) Put(name string, k ci.PrivKey) error {
81 return err
82 }
83
84 - b, err := k.Bytes()
84 + b, err := ci.MarshalPrivateKey(k)
85 if err != nil {
86 return err
87 }