Code Monkey home page Code Monkey logo

Comments (2)

crockeea avatar crockeea commented on September 24, 2024

Currently, encryptRowVec() takes the row vector to encrypt (as columns) _and* the width of the encoding unit (so we know how many times to replicate it). This seems unnecessary: we know the encoding unit from context, so we can derive the number of columns.

from homomorphic-implementors-toolkit.

crockeea avatar crockeea commented on September 24, 2024

The full paper describes a formalized encoding system for linear algebra objects as CKKS plaintexts with respect to an encoding unit. It also describes basic linear algebra operations using this encoding. A single linear algebra object is encoded as one or more plaintexts, depending on the encoding and the size of the linear algebra objects. This induces extra work for linear algebra operations. For example, if we encode a matrix as several plaintexts, then the linear algebra operation of “multiply the matrix by a constant c” amounts to multiplying each plaintext by the constant c.
Putting this level of detail into a homomorphic algorithm unnecessarily complicates the algorithm and makes it harder to reason about. As a concrete example of this problem, the Python compiler/code generator only supports objects encoded as a single ciphertext due to the complexity of dealing with coordinating the individual plaintexts that make up a linear algebra object.
To make writing homomorphic linear algebra operations as easy as possible, we will create a higher-level linear algebra (LA) API on top of the existing CKKSEvaluator API. The LA API will directly call the CKKSEvaluator API. As a result:

  • Existing ciphertext objects will become simpler because they will no longer contain linear algebra meta-data
  • New types for CKKSMatrix and CKKSVector will be introduced. They will hold a vector of ciphertexts, but users can treat them as a single object.

from homomorphic-implementors-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.