Skip to content

Signed integers not supported? #12

@carlee0

Description

@carlee0

Hi, it seems that signed integers are not supported. Is this the case? Please see the example below and the error message.

>>> p1 = seal.Plaintext("5")
>>> p3 = seal.Plaintext("-5")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: unable to parse hex_poly
>>> p2 = seal.Plaintext(-5)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. seal.Plaintext()
    2. seal.Plaintext(arg0: int)
    3. seal.Plaintext(arg0: int, arg1: int)
    4. seal.Plaintext(arg0: str)
    5. seal.Plaintext(arg0: seal.Plaintext)
Invoked with: -5

I am new to c++ but I have some experience with c and quite comfortable with Python. I could give it a go to find a fix if you could point me to the direction. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions