Skip to content

Commit a5ef3fb

Browse files
committed
Mark RawBolt11Invoice's de/ser methods as no-export
1 parent aff3ea1 commit a5ef3fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning-invoice/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,12 +1196,16 @@ impl RawBolt11Invoice {
11961196

11971197
/// Convert to HRP prefix and Fe32 encoded data part.
11981198
/// Can be used to transmit unsigned invoices for remote signing.
1199+
///
1200+
/// This is not exported to bindings users as we don't currently support Fe32s
11991201
pub fn to_raw(&self) -> (String, Vec<Fe32>) {
12001202
(self.hrp.to_string(), self.data.fe_iter().collect())
12011203
}
12021204

12031205
/// Convert from HRP prefix and Fe32 encoded data part.
12041206
/// Can be used to receive unsigned invoices for remote signing.
1207+
///
1208+
/// This is not exported to bindings users as we don't currently support Fe32s
12051209
pub fn from_raw(hrp: &str, data: &[Fe32]) -> Result<Self, Bolt11ParseError> {
12061210
let raw_hrp: RawHrp = RawHrp::from_str(hrp)?;
12071211
let data_part = RawDataPart::from_base32(data)?;

0 commit comments

Comments
 (0)