Re-export Scep256k1 Schnorr keys under `util::schnorr`

This is second step in introducing Schnorr key support as per #588
This commit is contained in:
Dr Maxim Orlovsky 2021-04-12 13:24:25 +02:00
parent b17d7fc31c
commit 664b09cdfd
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
2 changed files with 21 additions and 1 deletions

View File

@ -17,6 +17,8 @@
//! Functions needed by all parts of the Bitcoin library //! Functions needed by all parts of the Bitcoin library
pub mod ecdsa; pub mod ecdsa;
pub mod key;
pub mod schnorr;
pub mod address; pub mod address;
pub mod amount; pub mod amount;
pub mod base58; pub mod base58;
@ -30,7 +32,6 @@ pub mod psbt;
pub mod taproot; pub mod taproot;
pub mod uint; pub mod uint;
pub mod bip158; pub mod bip158;
pub mod key;
pub(crate) mod endian; pub(crate) mod endian;

19
src/util/schnorr.rs Normal file
View File

@ -0,0 +1,19 @@
// Rust Bitcoin Library
// Written in 2014 by
// Andrew Poelstra <apoelstra@wpsoftware.net>
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights to this software to
// the public domain worldwide. This software is distributed without
// any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication
// along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! Schnorr Bitcoin Keys
//!
//! Schnorr keys used in Bitcoin, reexporting Secp256k1 Schnorr key types
//!
pub use secp256k1::schnorrsig::{PublicKey, KeyPair};