Skip to content

Commit

Permalink
Make validate_witness_program_length public
Browse files Browse the repository at this point in the history
The `validate_witness_program_length` function is useful to users of the
library, lets make it public.
  • Loading branch information
tcharding committed Jan 23, 2024
1 parent bdd6855 commit bde1df5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/primitives/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ impl<'s> CheckedHrpstring<'s> {
/// Validates the segwit witness length rules.
///
/// Must be called after the witness version byte is removed from the data part.
fn validate_witness_program_length(
#[inline]
pub fn validate_witness_program_length(
&self,
witness_version: Fe32,
) -> Result<(), WitnessLengthError> {
Expand Down

0 comments on commit bde1df5

Please sign in to comment.