Skip to content

Commit 76a0804

Browse files
committed
Fix typo in public method
We have a method called `from_raw_signining_only`, I'm guessing this should be `from_raw_signing_only`.
1 parent 15a8c20 commit 76a0804

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl<'buf> Secp256k1<SignOnlyPreallocated<'buf>> {
374374
/// * The user must handle the freeing of the context(using the correct functions) by himself.
375375
/// * This list *is not* exhaustive, and any violation may lead to Undefined Behavior.
376376
///
377-
pub unsafe fn from_raw_signining_only(raw_ctx: *mut ffi::Context) -> ManuallyDrop<Secp256k1<SignOnlyPreallocated<'buf>>> {
377+
pub unsafe fn from_raw_signing_only(raw_ctx: *mut ffi::Context) -> ManuallyDrop<Secp256k1<SignOnlyPreallocated<'buf>>> {
378378
ManuallyDrop::new(Secp256k1 {
379379
ctx: raw_ctx,
380380
phantom: PhantomData,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ mod tests {
610610
let ctx_vrfy = Secp256k1::verification_only();
611611

612612
let mut full = unsafe {Secp256k1::from_raw_all(ctx_full.ctx)};
613-
let mut sign = unsafe {Secp256k1::from_raw_signining_only(ctx_sign.ctx)};
613+
let mut sign = unsafe {Secp256k1::from_raw_signing_only(ctx_sign.ctx)};
614614
let mut vrfy = unsafe {Secp256k1::from_raw_verification_only(ctx_vrfy.ctx)};
615615

616616
let (sk, pk) = full.generate_keypair(&mut thread_rng());

0 commit comments

Comments
 (0)