ComputeError: reading computation output: Array { inner_type: SecretInteger, size: 1 } is not a primitive type. #47
Devika-Pardeshi
started this conversation in
General
Replies: 2 comments
-
|
The issue is with Arrays here in your Nada program Instead you should use a Python list. Check out the examples here that go into the use of Python lists that contain secret integer values: https://docs.nillion.com/nada-lang-tutorial-lists-and-comprehensions |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hey @Devika-Pardeshi. Dave from the product team here. I was wondering how your journey building with Nillion is going? Do you need help with anything, or have any feedback for us? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to add three secrets to a variable and store it in an array. But facing following error in client.
Nada Program -
Client Program -
asyncio.run(main())
Error -
event = await client.next_compute_event()
|py_nillion_client.ComputeError: reading computation output: Array { inner_type: SecretInteger, size: 1 } is not a primitive type
Tried with casting nada program array initialization to integer as below
my_array = Array.new(Integer(addition))
then we are getting below compilation error,
nillion | raise ValueError(f"Expected int, got {type(value).name}")
nillion | ValueError: Expected int, got SecretInteger
Question :
Need input on handling primitive types at client side?
Beta Was this translation helpful? Give feedback.
All reactions