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); } }
public bool MatchPublicKey(Script script) { var scriptHex = script.Hash.ScriptPubKey.ToHex(); var keyScriptHex = ScriptKey.ToHex(); if (keyScriptHex.Equals(scriptHex)) { return(true); } return(false); }