BitSharp.Core.Domain.PrevTxOutput.IsPayToScriptHash C# (CSharp) Méthode

IsPayToScriptHash() public méthode

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