Skip to content

Clarify default BFV preset and production safety #1837

Description

@0xjei

The repository has conflicting meanings for the default BFV preset. crates/fhe-params/src/presets.rs:78-84 documents the default as the secure production preset, but DEFAULT_BFV_PRESET is InsecureThreshold512. The active circuit and deployment defaults also target insecure-512/minimum.

Decide and document the intended separation between development defaults and production defaults. Align the Rust constant, circuit build defaults, deployment validation, SDK/config defaults, and tests. Add an explicit production safety check so an insecure preset cannot be used by a production deployment path by accident. Preserve compatibility for the existing CI and local development workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptographyConcerned with cryptographysecurityRelevant to securitytechnical debtUnaddressed shortcuts thay will become expensive problems later.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions