Skip to content

Commit 47f19a7

Browse files
committed
Use lowercase for schnorr
In docs "schnorr signature" does not need, or deserve, a capital letter.
1 parent 27b3e92 commit 47f19a7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ pub const MAX_SIGNATURE_SIZE: usize = 72;
3434
/// The maximum size of a compact signature.
3535
pub const COMPACT_SIGNATURE_SIZE: usize = 64;
3636

37-
/// The size of a Schnorr signature.
37+
/// The size of a schnorr signature.
3838
pub const SCHNORR_SIGNATURE_SIZE: usize = 64;
3939

40-
/// The size of a Schnorr public key.
40+
/// The size of a schnorr public key.
4141
pub const SCHNORR_PUBLIC_KEY_SIZE: usize = 32;
4242

4343
/// The size of a key pair.

src/key.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ impl CPtr for KeyPair {
10781078
fn as_mut_c_ptr(&mut self) -> *mut Self::Target { &mut self.0 }
10791079
}
10801080

1081-
/// An x-only public key, used for verification of Schnorr signatures and serialized according to BIP-340.
1081+
/// An x-only public key, used for verification of schnorr signatures and serialized according to BIP-340.
10821082
///
10831083
/// # Serde support
10841084
///
@@ -1165,7 +1165,7 @@ impl XOnlyPublicKey {
11651165
}
11661166
}
11671167

1168-
/// Creates a Schnorr public key directly from a slice.
1168+
/// Creates a schnorr public key directly from a slice.
11691169
///
11701170
/// # Errors
11711171
///
@@ -1472,7 +1472,7 @@ impl CPtr for XOnlyPublicKey {
14721472
fn as_mut_c_ptr(&mut self) -> *mut Self::Target { &mut self.0 }
14731473
}
14741474

1475-
/// Creates a new Schnorr public key from a FFI x-only public key.
1475+
/// Creates a new schnorr public key from a FFI x-only public key.
14761476
impl From<ffi::XOnlyPublicKey> for XOnlyPublicKey {
14771477
#[inline]
14781478
fn from(pk: ffi::XOnlyPublicKey) -> XOnlyPublicKey { XOnlyPublicKey(pk) }

src/schnorr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Support for Schnorr signatures.
1+
//! Support for schnorr signatures.
22
//!
33
44
use core::{fmt, ptr, str};
@@ -14,7 +14,7 @@ use crate::{
1414
constants, from_hex, impl_array_newtype, Error, Message, Secp256k1, Signing, Verification,
1515
};
1616

17-
/// Represents a Schnorr signature.
17+
/// Represents a schnorr signature.
1818
#[derive(Copy, Clone)]
1919
pub struct Signature([u8; constants::SCHNORR_SIGNATURE_SIZE]);
2020
impl_array_newtype!(Signature, u8, constants::SCHNORR_SIGNATURE_SIZE);
@@ -132,7 +132,7 @@ impl<C: Signing> Secp256k1<C> {
132132
self.sign_schnorr_helper(msg, keypair, ptr::null())
133133
}
134134

135-
/// Create a Schnorr signature using the given auxiliary random data.
135+
/// Create a schnorr signature using the given auxiliary random data.
136136
pub fn sign_schnorr_with_aux_rand(
137137
&self,
138138
msg: &Message,
@@ -159,7 +159,7 @@ impl<C: Signing> Secp256k1<C> {
159159
}
160160

161161
impl<C: Verification> Secp256k1<C> {
162-
/// Verify a Schnorr signature.
162+
/// Verify a schnorr signature.
163163
pub fn verify_schnorr(
164164
&self,
165165
sig: &Signature,

0 commit comments

Comments
 (0)