Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2021 Changes in this version + var ErrUnsupportedSuite = errors.New("non-supported suite") + type Blind group.Scalar + type Blinded = []byte + type Client struct + func NewClient(id SuiteID) (*Client, error) + func NewVerifiableClient(id SuiteID, pkS *PublicKey) (*Client, error) + func (c *Client) Finalize(r *ClientRequest, e *Evaluation) ([][]byte, error) + func (c *Client) Request(inputs [][]byte) (*ClientRequest, error) + func (s *Client) GetMode() Mode + type ClientRequest struct + func (r ClientRequest) BlindedElements() [][]byte + type Evaluation struct + Elements []SerializedElement + Proof *Proof + type Mode = uint8 + const BaseMode + const VerifiableMode + type PrivateKey struct + func DeriveKey(id SuiteID, seed []byte) (*PrivateKey, error) + func GenerateKey(id SuiteID) (*PrivateKey, error) + func (k *PrivateKey) Deserialize(id SuiteID, data []byte) error + func (k *PrivateKey) Public() *PublicKey + func (k *PrivateKey) Serialize() ([]byte, error) + type Proof struct + C []byte + S []byte + type PublicKey struct + func (k *PublicKey) Deserialize(id SuiteID, data []byte) error + func (k *PublicKey) Serialize() ([]byte, error) + type SerializedElement = []byte + type Server struct + func NewServer(id SuiteID, skS *PrivateKey) (*Server, error) + func NewVerifiableServer(id SuiteID, skS *PrivateKey) (*Server, error) + func (s *Server) Evaluate(blindedElements []Blinded) (*Evaluation, error) + func (s *Server) FullEvaluate(input []byte) ([]byte, error) + func (s *Server) GetMode() Mode + func (s *Server) GetPublicKey() *PublicKey + func (s *Server) VerifyFinalize(input, expectedOutput []byte) bool + type SuiteID = uint16 + const OPRFP256 + const OPRFP384 + const OPRFP521