@cryptotaxi247 / kubo / commits / e4f5db5aa

coreapi: key: some changes to match command functionality

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@12537a60f5318fec2fdf2c02a3afd3786b673f07 This commit was moved from ipfs/boxo@f9afe981175685c29705b480a2a68688d14c3a3b

Łukasz Magiera committed Aug 3, 2018 at 16:46 UTC e4f5db5aa62f7982c2361a80b111d636de4640a4
1 file changed +7 -1
core/coreiface/key.go
+7 -1
@@ -4,14 +4,20 @@ import (
4 "context"
5
6 options "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
7 +
8 + "gx/ipfs/QmdVrMn1LhB4ybb8hMVaMLXnA8XRSewMnK6YqXKXoTcRvN/go-libp2p-peer"
9 )
10
11 // Key specifies the interface to Keys in KeyAPI Keystore
12 type Key interface {
13 // Key returns key name
14 Name() string
15 +
16 // Path returns key path
17 Path() Path
18 +
19 + // Id returns key PeerID
20 + Id() peer.ID
21 }
22
23 // KeyAPI specifies the interface to Keystore
@@ -28,5 +34,5 @@ type KeyAPI interface {
34 List(ctx context.Context) ([]Key, error)
35
36 // Remove removes keys from keystore. Returns ipns path of the removed key
31 - Remove(ctx context.Context, name string) (Path, error)
37 + Remove(ctx context.Context, name string) (Key, error)
38 }