Exemplo n.º 1
0
        public void RegisterClientScriptBlock(Type type, string key, string script)
        {
            var scriptKey = new ScriptKey(type, key);

            if (this.ScriptBlocks[scriptKey] == null)
            {
                this.ScriptBlocks.Add(scriptKey, script);
            }
        }
Exemplo n.º 2
0
        public bool MatchPublicKey(Script script)
        {
            var scriptHex    = script.Hash.ScriptPubKey.ToHex();
            var keyScriptHex = ScriptKey.ToHex();

            if (keyScriptHex.Equals(scriptHex))
            {
                return(true);
            }
            return(false);
        }