Expand description

secp256k1-zkp-sys FFI bindings

Direct bindings to the underlying C library functions. These should not be needed for most users.

Modules

Macros

Structs

Constants

Statics

Traits

  • A trait for producing pointers that will always be valid in C (assuming NULL pointer is a valid no-op).

Functions

Type Aliases

  • Hash function to use to post-process an ECDH point to get a shared secret.
  • Same as secp256k1_nonce_function_hardened with the exception of using the compressed 33-byte encoding for the pubkey argument.
  • A hash function used by ellswift_ecdh to hash the final ECDH shared secret.
  • A nonce generation function. Ordinary users of the library never need to see this type; only if you need to control nonce generation do you need to use it. I have deliberately made this hard to do: you have to write your own wrapper around the FFI functions to use it. And it’s an unsafe type. Nonces are generated deterministically by RFC6979 by default; there should be no need to ever change this.
  • Same as secp256k1_nonce function with the exception of accepting an additional pubkey argument and not requiring an attempt argument. The pubkey argument can protect signature schemes with key-prefixed challenge hash inputs against reusing the nonce when signing with the wrong precomputed pubkey.