mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
13 lines
403 B
Go
13 lines
403 B
Go
package circuits
|
|
|
|
import (
|
|
"github.com/tuneinsight/lattigo/v4/ring"
|
|
"github.com/tuneinsight/lattigo/v4/rlwe"
|
|
"github.com/tuneinsight/lattigo/v4/rlwe/ringqp"
|
|
)
|
|
|
|
// Encoder defines a set of common and scheme agnostic method provided by an Encoder struct.
|
|
type Encoder[T any, U *ring.Poly | ringqp.Poly | *rlwe.Plaintext] interface {
|
|
Encode(values []T, metaData *rlwe.MetaData, output U) (err error)
|
|
}
|