19 lines
245 B
Go
19 lines
245 B
Go
package encryptionkey
|
|
|
|
import (
|
|
"github.com/anytypeio/any-sync/util/keys"
|
|
)
|
|
|
|
type PrivKey interface {
|
|
keys.Key
|
|
|
|
Decrypt([]byte) ([]byte, error)
|
|
GetPublic() PubKey
|
|
}
|
|
|
|
type PubKey interface {
|
|
keys.Key
|
|
|
|
Encrypt(data []byte) ([]byte, error)
|
|
}
|