BitSharp.Core.Domain.PrevTxOutput.IsPayToScriptHash C# (CSharp) Method

IsPayToScriptHash() public method

public IsPayToScriptHash ( ) : bool
return bool
        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;
        }