docs: public byte[] getPubKeyHash() throws ScriptException {
          if (ScriptPattern.isP2PKH(this))
              return ScriptPattern.extractHashFromP2PKH(this);
          else if (ScriptPattern.isP2SH(this))
              return ScriptPattern.extractHashFromP2SH(this);
          else if (ScriptPattern.isP2WH(this))
              return ScriptPattern.extractHashFromP2WH(this);
          else
              throw new ScriptException(ScriptError.SCRIPT_ERR_UNKNOWN_ERROR, "Script not in the standard scriptPubKey form");
      }