Impl `Send` and `Sync` for secp256k1 contexts
This commit is contained in:
parent
fb75373b47
commit
d7c7230f28
|
@ -47,6 +47,9 @@ struct ContextInner;
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct Context(*mut ContextInner);
|
pub struct Context(*mut ContextInner);
|
||||||
|
|
||||||
|
unsafe impl Send for Context {}
|
||||||
|
unsafe impl Sync for Context {}
|
||||||
|
|
||||||
#[link(name = "secp256k1")]
|
#[link(name = "secp256k1")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub static secp256k1_nonce_function_rfc6979: NonceFn;
|
pub static secp256k1_nonce_function_rfc6979: NonceFn;
|
||||||
|
|
Loading…
Reference in New Issue