Skip to content

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
Discussion options

You must be logged in to vote
  • Sorry, I mistyped my previous message. I meant to say SECP256K1_CONTEXT_NONE. This is the only one which is not deprecated.
  • Your definitions of the flags are wrong, see
    /* All flags' lower 8 bits indicate what they're for. Do not use directly. */
    #define SECP256K1_FLAGS_TYPE_MASK ((1 << 8) - 1)
    #define SECP256K1_FLAGS_TYPE_CONTEXT (1 << 0)
    #define SECP256K1_FLAGS_TYPE_COMPRESSION (1 << 1)
    /* The higher bits contain the actual data. Do not use directly. */
    #define SECP256K1_FLAGS_BIT_CONTEXT_VERIFY (1 << 8)
    #define SECP256K1_FLAGS_BIT_CONTEXT_SIGN (1 << 9)
    #define SECP256K1_FLAGS_BIT_…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ScoobyDooWho
Comment options

@real-or-random
Comment options

@ScoobyDooWho
Comment options

Answer selected by ScoobyDooWho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants