Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions smite/src/bolt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ mod accept_channel;
mod accept_channel2;
mod attribution_data;
mod channel_ready;
mod commitment;
mod error;
mod funding;
mod funding_created;
mod funding_signed;
mod gossip_timestamp_filter;
Expand Down Expand Up @@ -39,12 +37,7 @@ pub use accept_channel::{AcceptChannel, AcceptChannelTlvs};
pub use accept_channel2::{AcceptChannel2, AcceptChannel2Tlvs};
pub use attribution_data::{AttributionData, TruncatedHmac};
pub use channel_ready::{ChannelReady, ChannelReadyTlvs};
pub use commitment::{
ChannelConfig, ChannelPartyConfig, CommitmentError, CommitmentPartyState, CommitmentState,
HolderIdentity, Side,
};
pub use error::Error;
pub use funding::{FundingTransaction, InsufficientFunds, build_funding_transaction};
pub use funding_created::FundingCreated;
pub use funding_signed::FundingSigned;
pub use gossip_timestamp_filter::GossipTimestampFilter;
Expand Down
13 changes: 13 additions & 0 deletions smite/src/channel_tx.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//! BOLT 3 channel transaction construction.
//!
//! This module builds Lightning channel on-chain transactions: the funding
//! transaction and the commitment transaction.

mod commitment;
mod funding;

pub use commitment::{
ChannelConfig, ChannelPartyConfig, CommitmentError, CommitmentPartyState, CommitmentState,
HolderIdentity, Side,
};
pub use funding::{FundingTransaction, InsufficientFunds, build_funding_transaction};
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions smite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! # Modules
//! - [`bitcoin`] - Utilities for interacting with `bitcoind` instances via `bitcoin-cli`.
//! - [`bolt`] - BOLT message encoding and decoding.
//! - [`channel_tx`] - BOLT 3 channel transaction construction (funding and commitment).
//! - [`noise`] - BOLT 8 `Noise_XK` encrypted transport.
//! - [`oracles`] - Post-scenario invariant checks.
//! - [`process`] - Managed subprocess utilities.
Expand All @@ -16,6 +17,7 @@

pub mod bitcoin;
pub mod bolt;
pub mod channel_tx;
pub mod noise;
pub mod oracles;
pub mod process;
Expand Down