mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-07 09:17:49 +08:00
keystore: Switch from Bytes() to MarshalPrivateKey()
Bytes is deprecated.
This commit is contained in:
parent
39b9c3a32b
commit
56550c1b61
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user