Versions in this module Expand all Collapse all v0 v0.1.0 Jun 20, 2026 Changes in this version + const MaxFrame + var ErrEmptyContext = errors.New("tessera: empty record context") + var ErrEmptyVaultKey = errors.New("tessera: empty vault key") + var ErrMalformedEnvelope = errors.New("tessera: malformed or unauthentic vault envelope") + var ErrUnsupportedVersion = errors.New("tessera: unsupported vault envelope version") + func BlindIndex(email string) []byte + func BlindIndexString(email string) string + func NormalizeEmail(email string) string + func Open(vaultKey []byte, context string, envelope []byte) ([]byte, error) + func Seal(vaultKey []byte, context string, plaintext []byte) ([]byte, error) + type Client struct + func NewClient(socketPath string, opts ...Option) *Client + func (c *Client) Close() error + func (c *Client) LoginFinish(ctx context.Context, loginID, finalizationB64 string) (sessionKeyB64 string, err error) + func (c *Client) LoginStart(ctx context.Context, requestB64 string, passwordFileB64 *string, ...) (loginID, responseB64 string, err error) + func (c *Client) RegisterFinish(ctx context.Context, uploadB64 string) (passwordFileB64 string, err error) + func (c *Client) RegisterStart(ctx context.Context, requestB64, credentialID string) (responseB64 string, err error) + type Option func(*config) + func WithDialTimeout(d time.Duration) Option + func WithPoolSize(n int) Option + type SidecarError struct + Code string + Message string + func (e *SidecarError) Error() string