keystore: Switch from Bytes() to MarshalPrivateKey()

Bytes is deprecated.
This commit is contained in:
Hector Sanjuan 2020-03-27 12:57:53 +01:00
parent 39b9c3a32b
commit 56550c1b61

View File

@ -81,7 +81,7 @@ func (ks *FSKeystore) Put(name string, k ci.PrivKey) error {
return err
}
b, err := k.Bytes()
b, err := ci.MarshalPrivateKey(k)
if err != nil {
return err
}