File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,20 @@ import (
4
4
"context"
5
5
6
6
options "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
7
+
8
+ "gx/ipfs/QmdVrMn1LhB4ybb8hMVaMLXnA8XRSewMnK6YqXKXoTcRvN/go-libp2p-peer"
7
9
)
8
10
9
11
// Key specifies the interface to Keys in KeyAPI Keystore
10
12
type Key interface {
11
13
// Key returns key name
12
14
Name () string
15
+
13
16
// Path returns key path
14
17
Path () Path
18
+
19
+ // ID returns key PeerID
20
+ ID () peer.ID
15
21
}
16
22
17
23
// KeyAPI specifies the interface to Keystore
@@ -28,5 +34,5 @@ type KeyAPI interface {
28
34
List (ctx context.Context ) ([]Key , error )
29
35
30
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 )
32
38
}
You can’t perform that action at this time.
0 commit comments