Skip to content

Commit bde1df5

Browse files
committed
Make validate_witness_program_length public
The `validate_witness_program_length` function is useful to users of the library, lets make it public.
1 parent bdd6855 commit bde1df5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/primitives/decode.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ impl<'s> CheckedHrpstring<'s> {
444444
/// Validates the segwit witness length rules.
445445
///
446446
/// Must be called after the witness version byte is removed from the data part.
447-
fn validate_witness_program_length(
447+
#[inline]
448+
pub fn validate_witness_program_length(
448449
&self,
449450
witness_version: Fe32,
450451
) -> Result<(), WitnessLengthError> {

0 commit comments

Comments
 (0)