mirror of
https://github.com/RustCrypto/signatures
synced 2026-06-21 13:45:42 +00:00
lib.rs: Improve comments and other minor cleanups
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
//! Digital signature types and traits
|
||||
//! Traits which provide generic, object-safe APIs for generating and verifying
|
||||
//! digital signatures, which provide message authentication using public-key
|
||||
//! cryptography.
|
||||
|
||||
#![no_std]
|
||||
#![cfg_attr(all(feature = "nightly", not(feature = "std")), feature(alloc))]
|
||||
@@ -17,7 +19,7 @@
|
||||
extern crate std;
|
||||
|
||||
mod error;
|
||||
pub(crate) mod prelude;
|
||||
mod prelude;
|
||||
mod signature;
|
||||
|
||||
pub use crate::{error::Error, signature::Signature};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use core::fmt::Debug;
|
||||
|
||||
use error::Error;
|
||||
#[allow(unused_imports)]
|
||||
use prelude::*;
|
||||
use crate::error::Error;
|
||||
#[cfg(feature = "alloc")]
|
||||
use crate::prelude::*;
|
||||
|
||||
/// Trait impl'd by concrete types that represent digital signatures
|
||||
pub trait Signature: AsRef<[u8]> + Debug + Sized {
|
||||
|
||||
Reference in New Issue
Block a user