Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Updating a single element in encrypt array #53

@imtiyazuddin

Description

@imtiyazuddin

I want to be able to update a single element in the ciphertext array, something like:

ct_a[0] = ct_a[0]*5

but I am getting following error


TypeError Traceback (most recent call last)
Cell In[58], line 1
----> 1 ct_a[0] = ct_a[0]*5

TypeError: 'PaillierEncryptedNumber' object does not support item assignment

is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions