-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
value of type secp256k1_surjectionproof
has no member data
#272
Comments
Hey @mattiaferrari02 👋 Would you mind sharing the relevant code? It's difficult to understand the compilation error without seeing how the |
Ok sorry, this is a function that takes in input the
|
Looking over the API, I think you'll need to call |
That's is odd because the You might have an issue exposing the Surjection Proof module to the codebase you're working in. I'll try and reproduce this issue from with this package. It's possible that we are missing something from the upstream secp256k1-zkp repo. |
I find it quite weird myself, but i guess as a workaround i'll need to write this code directly in c... |
Reguarding this, it seems that this is the reason https://developer.apple.com/forums/thread/125614 |
Hey @mattiaferrari02 do you still need help with this? I haven't made much progress
This is a good find, thanks for sharing! |
Yeah, still need help... |
Are you using a reference implementation for Surjection Proof? I'm not aware of an official BIP that would tell us the expected bytes length. |
I don't know, everytime i tried it resulted like that |
@mattiaferrari02 I've started a draft PR with an initial implementation here: #325 Feel free to suggest any feedback you have 😁 EDIT: I'm still working through this documentation: https://elementsproject.org/features/confidential-transactions |
It's been a while since there was any activity on this thread. To keep issues organized, I'll be closing this thread. If you have any further questions or concerns related to this, please feel free to reopen it or create a new thread. |
hi guys!
I'm trying to use this struct https://github.com/ElementsProject/secp256k1-zkp/blob/d22774e248c703a191049b78f8d04f37d6fcfa05/include/secp256k1_surjectionproof.h#L42-L53 in my swift code.
When i try accessing the .data field i get this compilation error.
From what i can understand it is something reguarding the length of the array. If i try to modify the length of the array to something smaller is now recognised. but clearly i need the real length of the array that should be something around 8000 bytes.
Do you know what to do about this?
The text was updated successfully, but these errors were encountered: