Skip to content
Merged
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
18 changes: 14 additions & 4 deletions orange-sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(missing_docs)]
#![deny(missing_docs)]

//! A library implementing the full backend for a modern, highly usable, Bitcoin wallet focusing on
//! maximizing security and self-custody without trading off user experience.
Expand Down Expand Up @@ -169,11 +169,11 @@ pub enum VssAuth {
#[allow(dead_code)]
pub struct VssConfig {
/// The URL of the VSS.
vss_url: String,
pub vss_url: String,
/// The store ID for the VSS.
store_id: String,
pub store_id: String,
/// Authentication method for the VSS.
headers: VssAuth,
pub headers: VssAuth,
}

/// Configuration for wallet storage, either local SQLite or VSS.
Expand Down Expand Up @@ -388,6 +388,16 @@ impl PaymentInfo {
},
}
}

/// Get the payment instructions.
pub fn instructions(&self) -> PaymentInstructions {
self.instructions.clone()
}

/// Get the amount to be paid.
pub fn amount(&self) -> Amount {
self.amount
}
}

/// Represents possible failures during wallet initialization.
Expand Down
Loading