public bool IsPayToScriptHash()
{
return ScriptPublicKey.Length == 23
&& ScriptPublicKey[0] == (byte)ScriptOp.OP_HASH160
&& ScriptPublicKey[1] == 0x14 // push 20 bytes
&& ScriptPublicKey[22] == (byte)ScriptOp.OP_EQUAL;
}