Use lowercase for schnorr
In docs "schnorr signature" does not need, or deserve, a capital letter.
This commit is contained in:
parent
27b3e92889
commit
47f19a78ef
|
@ -34,10 +34,10 @@ pub const MAX_SIGNATURE_SIZE: usize = 72;
|
|||
/// The maximum size of a compact signature.
|
||||
pub const COMPACT_SIGNATURE_SIZE: usize = 64;
|
||||
|
||||
/// The size of a Schnorr signature.
|
||||
/// The size of a schnorr signature.
|
||||
pub const SCHNORR_SIGNATURE_SIZE: usize = 64;
|
||||
|
||||
/// The size of a Schnorr public key.
|
||||
/// The size of a schnorr public key.
|
||||
pub const SCHNORR_PUBLIC_KEY_SIZE: usize = 32;
|
||||
|
||||
/// The size of a key pair.
|
||||
|
|
|
@ -1078,7 +1078,7 @@ impl CPtr for KeyPair {
|
|||
fn as_mut_c_ptr(&mut self) -> *mut Self::Target { &mut self.0 }
|
||||
}
|
||||
|
||||
/// An x-only public key, used for verification of Schnorr signatures and serialized according to BIP-340.
|
||||
/// An x-only public key, used for verification of schnorr signatures and serialized according to BIP-340.
|
||||
///
|
||||
/// # Serde support
|
||||
///
|
||||
|
@ -1165,7 +1165,7 @@ impl XOnlyPublicKey {
|
|||
}
|
||||
}
|
||||
|
||||
/// Creates a Schnorr public key directly from a slice.
|
||||
/// Creates a schnorr public key directly from a slice.
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
|
@ -1472,7 +1472,7 @@ impl CPtr for XOnlyPublicKey {
|
|||
fn as_mut_c_ptr(&mut self) -> *mut Self::Target { &mut self.0 }
|
||||
}
|
||||
|
||||
/// Creates a new Schnorr public key from a FFI x-only public key.
|
||||
/// Creates a new schnorr public key from a FFI x-only public key.
|
||||
impl From<ffi::XOnlyPublicKey> for XOnlyPublicKey {
|
||||
#[inline]
|
||||
fn from(pk: ffi::XOnlyPublicKey) -> XOnlyPublicKey { XOnlyPublicKey(pk) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//! Support for Schnorr signatures.
|
||||
//! Support for schnorr signatures.
|
||||
//!
|
||||
|
||||
use core::{fmt, ptr, str};
|
||||
|
@ -14,7 +14,7 @@ use crate::{
|
|||
constants, from_hex, impl_array_newtype, Error, Message, Secp256k1, Signing, Verification,
|
||||
};
|
||||
|
||||
/// Represents a Schnorr signature.
|
||||
/// Represents a schnorr signature.
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct Signature([u8; constants::SCHNORR_SIGNATURE_SIZE]);
|
||||
impl_array_newtype!(Signature, u8, constants::SCHNORR_SIGNATURE_SIZE);
|
||||
|
@ -132,7 +132,7 @@ impl<C: Signing> Secp256k1<C> {
|
|||
self.sign_schnorr_helper(msg, keypair, ptr::null())
|
||||
}
|
||||
|
||||
/// Create a Schnorr signature using the given auxiliary random data.
|
||||
/// Create a schnorr signature using the given auxiliary random data.
|
||||
pub fn sign_schnorr_with_aux_rand(
|
||||
&self,
|
||||
msg: &Message,
|
||||
|
@ -159,7 +159,7 @@ impl<C: Signing> Secp256k1<C> {
|
|||
}
|
||||
|
||||
impl<C: Verification> Secp256k1<C> {
|
||||
/// Verify a Schnorr signature.
|
||||
/// Verify a schnorr signature.
|
||||
pub fn verify_schnorr(
|
||||
&self,
|
||||
sig: &Signature,
|
||||
|
|
Loading…
Reference in New Issue