1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) DUSK NETWORK. All rights reserved.
//! Phoenix's Core library types and behaviors
#![allow(non_snake_case)]
#![deny(missing_docs)]
#![no_std]
#[cfg(feature = "alloc")]
extern crate alloc;
/// Type's Conversion module
mod convert;
/// Crossover
pub mod crossover;
/// Phoenix's Core Errors
pub mod error;
/// Fee
pub mod fee;
/// Message representation
pub mod message;
/// Transparent and Obfuscated Notes
pub mod note;
/// Phoenix Core Keys & Addresses
mod keys;
/// Hash function
pub use keys::hash;
/// Public (Spend) Key
pub use keys::public::PublicKey;
/// Secret (Spend) Key
pub use keys::secret::SecretKey;
/// Stealth Address
pub use keys::stealth::{Ownable, StealthAddress};
/// ViewKey
pub use keys::view::ViewKey;
/// Transaction types & utilities
#[cfg(feature = "alloc")]
pub mod transaction;
pub use crossover::Crossover;
pub use error::Error;
pub use fee::Fee;
pub use fee::Remainder;
pub use message::Message;
pub use note::{Note, NoteType};
#[cfg(feature = "alloc")]
pub use transaction::Transaction;