2 ms·
Pretty cool: https://github.com/facebookresearch/Cupcake/blob/main/examples/basic.rs https://github.com/facebookresearch/Cupcake/blob/main/exampl... Looks rea
by staticassertion 5y ago
Pretty cool:
https://github.com/facebookresearch/Cupcake/blob/main/examples/basic.rs https://github.com/facebookresearch/Cupcake/blob/main/exampl...
Looks really straightforward. For reference, output for the above program:
Encrypting a constant vector v of 1s...decrypted v: [1, 1, ..., 1]
Encrypting a constant vector w of 2s...decrypted w: [2, 2, ..., 2]
Decrypting the sum...decrypted v+w: [3, 3, ..., 3]
Decrypting the sum...decrypted v+w+w: [5, 5, ..., 5]