Help with secp256k1_schnorrsig_verify in a simple C# test console importing a generated libsecp256k1.dll #1672
Answered
by
ScoobyDooWho
ScoobyDooWho
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Have you seen the docs? Just use Line 266 in 9fab425
|
Beta Was this translation helpful? Give feedback.
3 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.
-
I was hoping someone could help me with this last problem... I've converted the C example to a C# one, everything works great until the last secp256k1_schnorrsig_verify that just crashes the app. Everything seems to be compiled right with the DLL or it wouldn't even work with a secp256k1_schnorrsig_sign32 call. As one test, if I try to create with a secp256k1_context_create(SECP256K1_CONTEXT_BOTH); (sign and verify 1|2), it crashes right off the top. Not sure what I'm missing here.
Impl Notes:
Client Flow (Unity 3D client .Net 4.8, which is why I've gotta compile a 2,0 framework version):
Client requests challenge from server
Server returns a challenge (random message hash)
Client signs the challenge with private key using simple DLL I've compiled with the C secp256k1 DLL (This all works)
Client POSTs public key, signature, challenge, and session ID
Server verifies the signature: secp256k1_schnorrsig_verify ... This bombs... In the simple end to end C# console test, doesn't work.
If valid, login continues
Compile of DLL on Windows 11 x64 machine Using MSYS2 MinGW 64-bit
git clone https://github.com/bitcoin-core/secp256k1
./autogen.sh
./configure --enable-module-schnorrsig --enable-experimental
make
I appreciate any help!
Example_Program .txt
Beta Was this translation helpful? Give feedback.
All reactions