code: func isPubKeyHash(script []byte) (bool, []byte) {
  	if len(script) == 25 && script[0] == txscript.OP_DUP &&
  		script[1] == txscript.OP_HASH160 &&
  		script[2] == txscript.OP_DATA_20 &&
  		script[23] == txscript.OP_EQUALVERIFY &&
  		script[24] == txscript.OP_CHECKSIG {
  
  		return true, script[3:23]
  	}
  
  	return false, nil
  }
docs: // isPubKeyHash returns whether or not the passed public key script is a
  // standard pay-to-pubkey-hash script along with the pubkey hash it is paying to
  // if it is.