/// <summary>
/// Is it true that script doesn't contain anything except push value operations?
/// </summary>
- /// <returns>Checking result</returns>
public bool IsPushonly
{
get
/// <summary>
/// Is it true that script doesn't contain non-canonical push operations?
/// </summary>
- /// <returns>Checking result</returns>
public bool HasOnlyCanonicalPushes
{
get
/// <summary>
/// Quick test for pay-to-script-hash CScripts
/// </summary>
- /// <returns>Checking result</returns>
public bool IsPayToScriptHash
{
get
/// <summary>
/// Quick test for pay-to-pubkeyhash CScripts
/// </summary>
- /// <returns>Checking result</returns>
public bool IsPayToPubKeyHash
{
get
}
/// <summary>
+ /// Quick test for Null destination
+ /// </summary>
+ public bool IsNull
+ {
+ get { return codeBytes.Count == 0; }
+ }
+
+ /// <summary>
/// Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs
/// as 20 sigops. With pay-to-script-hash, that changed:
/// CHECKMULTISIGs serialized in scriptSigs are