Skip to content

Commit

Permalink
chore: fix conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
  • Loading branch information
0xivanov committed Aug 1, 2024
1 parent cea8098 commit 28a33c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ type Key interface {
String() string
}

func KeyFromBytes(bytes []byte) (KeyList, error) {
protoKey := &services.KeyList{}
func KeyFromBytes(bytes []byte) (Key, error) {
protoKey := &services.Key{}

err := protobuf.Unmarshal(bytes, protoKey)
if err != nil {
return KeyList{}, err
return nil, err
}

return _KeyListFromProtobuf(protoKey)
return _KeyFromProtobuf(protoKey)
}

func KeyToBytes(key Key) ([]byte, error) {
Expand Down

0 comments on commit 28a33c8

Please sign in to comment.