From 76a0804ca56d7d0f9f5b2c35cd8c4628b137df6f Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 1 Nov 2022 14:45:05 +1100 Subject: [PATCH] Fix typo in public method We have a method called `from_raw_signining_only`, I'm guessing this should be `from_raw_signing_only`. --- src/context.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.rs b/src/context.rs index 2248ccd..6e6851d 100644 --- a/src/context.rs +++ b/src/context.rs @@ -374,7 +374,7 @@ impl<'buf> Secp256k1> { /// * The user must handle the freeing of the context(using the correct functions) by himself. /// * This list *is not* exhaustive, and any violation may lead to Undefined Behavior. /// - pub unsafe fn from_raw_signining_only(raw_ctx: *mut ffi::Context) -> ManuallyDrop>> { + pub unsafe fn from_raw_signing_only(raw_ctx: *mut ffi::Context) -> ManuallyDrop>> { ManuallyDrop::new(Secp256k1 { ctx: raw_ctx, phantom: PhantomData, diff --git a/src/lib.rs b/src/lib.rs index 9e336b5..1bcf326 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -610,7 +610,7 @@ mod tests { let ctx_vrfy = Secp256k1::verification_only(); let mut full = unsafe {Secp256k1::from_raw_all(ctx_full.ctx)}; - let mut sign = unsafe {Secp256k1::from_raw_signining_only(ctx_sign.ctx)}; + let mut sign = unsafe {Secp256k1::from_raw_signing_only(ctx_sign.ctx)}; let mut vrfy = unsafe {Secp256k1::from_raw_verification_only(ctx_vrfy.ctx)}; let (sk, pk) = full.generate_keypair(&mut thread_rng());