2023-01-05 15:34:09 +03:00

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)
}