torvyon-core 0.1.2

Keys, addresses, post-quantum signing and transaction building for the Torvyon blockchain
Documentation
//! Transactions: types, encoding, signing, verification and payment building.

mod builder;
mod encode;
mod script;
mod types;

pub use builder::{build_payment, build_payment_for_network, Payment, Utxo, MAX_INPUTS};
pub use script::ScriptPubKey;
pub use types::{
    Input, OutPoint, Output, SignedTransaction, SpentOutput, UnsignedTransaction, UnsignedV4Transaction,
    Witness, WitnessSignature,
};

/// Maximum size of the optional data payload.
pub const MAX_DATA_SIZE: usize = 512;
/// Current transaction version (UTXO).
pub const VERSION_UTXO: u32 = 3;
/// Conditional UTXO transaction version.
pub const VERSION_CONDITIONAL: u32 = 4;
/// Historical chain-ID account transaction version.
pub const VERSION_CHAIN_ID: u32 = 2;
/// Historical legacy account transaction version.
pub const VERSION_LEGACY: u32 = 0;
/// Default input sequence.
pub const SEQUENCE_FINAL: u32 = u32::MAX;
/// Signature scheme name on the wire.
pub const SCHEME_SCHNORR: &str = "schnorr";