17 lines
269 B
Go
17 lines
269 B
Go
package encryptionkey
|
|
|
|
import "github.com/anytypeio/go-anytype-infrastructure-experiments/util/keys"
|
|
|
|
type PrivKey interface {
|
|
keys.Key
|
|
|
|
Decrypt([]byte) ([]byte, error)
|
|
GetPublic() PubKey
|
|
}
|
|
|
|
type PubKey interface {
|
|
keys.Key
|
|
|
|
Encrypt(data []byte) ([]byte, error)
|
|
}
|