Skip to content

Identity / noise refresh #11

Description

@cedoor

Summary

Expose the Identity BDD op as a standalone noise-refresh method on Context.

Background

Identity is a 1w→1w BDD circuit that computes out = a — it does nothing arithmetically but runs the full CGGI bootstrapping pipeline on every bit, producing a fresh ciphertext with reset noise.

It is only meaningful once sub-word operations (issue #10) are available, since those manipulate GLWE coefficients directly without bootstrapping and can accumulate noise. If the sub-word ops feed into a BDD arithmetic op, no explicit refresh is needed — bootstrapping happens automatically. Identity is only required when sub-word ops are the last step before decryption or when noise has accumulated enough that it cannot wait for the next BDD op.

Work

  • Expose as ctx.refresh(&a, &ek) -> Ciphertext<T>
  • Document clearly when it is and isn't needed, with reference to sub-word ops
  • Should be implemented after or alongside issue Sub-word operations #10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions