Skip to content

Commit 4560d71

Browse files
committed
Mark RawBolt11Invoice's de/ser methods as no-export
1 parent 53934a2 commit 4560d71

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
@@ -1220,12 +1220,16 @@ impl RawBolt11Invoice {
12201220

12211221
/// Convert to HRP prefix and Fe32 encoded data part.
12221222
/// Can be used to transmit unsigned invoices for remote signing.
1223+
///
1224+
/// This is not exported to bindings users as we don't currently support Fe32s
12231225
pub fn to_raw(&self) -> (String, Vec<Fe32>) {
12241226
(self.hrp.to_string(), self.data.fe_iter().collect())
12251227
}
12261228

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

0 commit comments

Comments
 (0)