P2WSH.fromScript constructor
P2WSH.fromScript(
- Script script
Construct using an output script, not to be confused with the witness script. For that use P2WSH.fromWitnessScript.
Implementation
P2WSH.fromScript(super.script) : super.fromScript() {
if (data.length != 32 || version != 0) throw NoProgramMatch();
}