Code Monkey home page Code Monkey logo

Comments (4)

sloede avatar sloede commented on June 19, 2024

By the way, kudos to implementing this package in pure Julia, this has been a great help to kick around a few ideas 👍

from toyfhe.jl.

Keno avatar Keno commented on June 19, 2024

Whoops, there's a typo in the blog post, obviously, you need to pass the private key to decrypt it. In your MWE:

julia> decrypt(kp.priv, circshift(c, gk))
8-element CKKSEncoding{FixedRational{1099511627776,T} where T} with indices 0:7:
 -18.506166149368628 + 7.60456192425713im
   40.80057950134403 + 8.450631478608264im
 -20.786099653978496 - 5.443269584828531im
  -16.50816701251562 - 0.3042282041572637im
  -19.25951679089231 - 29.497772481885757im
  21.089374991774747 - 16.74889104138221im
  2.5942574658725626 + 9.605495431441932im
   9.309505110847219 - 15.199594797590228im

I'll fix the blog post. Sorry for missing this issue. In the future, please feel free to just ping me directly on issues here.

from toyfhe.jl.

Keno avatar Keno commented on June 19, 2024

Although now that I actually look at the output, the noise obviously took over here. It's been a while since I thought about FHE noise growth, so I'm not quite sure what the issue is.

from toyfhe.jl.

Keno avatar Keno commented on June 19, 2024

Hmm works fine with the parameter choices in the test suite: https://github.com/JuliaCrypto/ToyFHE.jl/blob/master/test/ckks_rotate.jl. Not sure whether there's an actual issue here. Unfortunately, if there is, it'd be something subtle about the noise behavior, which is beyond the level of time commitment I have available to look into issues here. That said, hopefully you should be able to use the parameters in the test suite for experimentation if you want.

from toyfhe.jl.

Related Issues (10)

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.