Vm-bgvbot <Trusted ⟶>

Vm-bgvbot <Trusted ⟶>

:

# Encrypt data sk, pk = bgv_keygen(level=128) ct_a = encrypt(pk, [1,2,3,4]) ct_b = encrypt(pk, [5,6,7,8]) script = """ LOAD R0, ct_a LOAD R1, ct_b C_ADD R0, R1 → R2 C_BOOT R2 STORE R2, result """ Send to cloud where vm-bgvbot runs vm.run("compute.vmb", inputs=[ct_a, ct_b], output="result.enc") Download and decrypt ct_out = load("result.enc") plain = decrypt(sk, ct_out) # [6,8,10,12] vm-bgvbot

: