@@ -188,7 +188,7 @@ where
188
188
/// Check whether the given satisfaction is valid under the ScriptContext
189
189
/// For example, segwit satisfactions may fail if the witness len is more
190
190
/// 3600 or number of stack elements are more than 100.
191
- fn check_witness < Pk : MiniscriptKey > ( _witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
191
+ fn check_witness ( _witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
192
192
// Only really need to do this for segwitv0 and legacy
193
193
// Bare is already restrcited by standardness rules
194
194
// and would reach these limits.
@@ -387,7 +387,7 @@ impl ScriptContext for Legacy {
387
387
}
388
388
}
389
389
390
- fn check_witness < Pk : MiniscriptKey > ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
390
+ fn check_witness ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
391
391
// In future, we could avoid by having a function to count only
392
392
// len of script instead of converting it.
393
393
if witness_to_scriptsig ( witness) . len ( ) > MAX_SCRIPTSIG_SIZE {
@@ -487,7 +487,7 @@ impl ScriptContext for Segwitv0 {
487
487
}
488
488
}
489
489
490
- fn check_witness < Pk : MiniscriptKey > ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
490
+ fn check_witness ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
491
491
if witness. len ( ) > MAX_STANDARD_P2WSH_STACK_ITEMS {
492
492
return Err ( ScriptContextError :: MaxWitnessItemssExceeded {
493
493
actual : witness. len ( ) ,
@@ -595,7 +595,7 @@ impl ScriptContext for Tap {
595
595
}
596
596
}
597
597
598
- fn check_witness < Pk : MiniscriptKey > ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
598
+ fn check_witness ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
599
599
// Note that tapscript has a 1000 limit compared to 100 of segwitv0
600
600
if witness. len ( ) > MAX_STACK_SIZE {
601
601
return Err ( ScriptContextError :: MaxWitnessItemssExceeded {
@@ -828,7 +828,7 @@ impl ScriptContext for NoChecks {
828
828
"NochecksEcdsa"
829
829
}
830
830
831
- fn check_witness < Pk : MiniscriptKey > ( _witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
831
+ fn check_witness ( _witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
832
832
// Only really need to do this for segwitv0 and legacy
833
833
// Bare is already restrcited by standardness rules
834
834
// and would reach these limits.
0 commit comments