Skip to content

Commit

Permalink
modify ToByte function return value(s) not only byte slice but also e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
owljoa committed Oct 13, 2018
1 parent 57a097b commit 503583e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion key_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Crypto struct {

type Key interface {
ID() KeyID
ToByte() []byte
ToByte() ([]byte, error)
IsPrivate() bool
}

Expand Down

0 comments on commit 503583e

Please sign in to comment.