Skip to content

Commit

Permalink
coreapi: key: some changes to match command functionality
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>


This commit was moved from ipfs/interface-go-ipfs-core@12537a6
  • Loading branch information
magik6k committed Aug 6, 2018
1 parent 3bb8c05 commit f9afe98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion coreiface/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ import (
"context"

options "github.com/ipfs/go-ipfs/core/coreapi/interface/options"

"gx/ipfs/QmdVrMn1LhB4ybb8hMVaMLXnA8XRSewMnK6YqXKXoTcRvN/go-libp2p-peer"
)

// Key specifies the interface to Keys in KeyAPI Keystore
type Key interface {
// Key returns key name
Name() string

// Path returns key path
Path() Path

// Id returns key PeerID
Id() peer.ID
}

// KeyAPI specifies the interface to Keystore
Expand All @@ -28,5 +34,5 @@ type KeyAPI interface {
List(ctx context.Context) ([]Key, error)

// Remove removes keys from keystore. Returns ipns path of the removed key
Remove(ctx context.Context, name string) (Path, error)
Remove(ctx context.Context, name string) (Key, error)
}

0 comments on commit f9afe98

Please sign in to comment.