BitSharper.Test.ScriptTest.TestScriptSig C# (CSharp) Method

TestScriptSig() private method

private TestScriptSig ( ) : void
return void
        public void TestScriptSig()
        {
            var sigProgBytes = Hex.Decode(_sigProg);
            var script = new Script(_params, sigProgBytes, 0, sigProgBytes.Length);
            // Test we can extract the from address.
            var hash160 = Utils.Sha256Hash160(script.PubKey);
            var a = new Address(_params, hash160);
            Assert.AreEqual("mkFQohBpy2HDXrCwyMrYL5RtfrmeiuuPY2", a.ToString());
        }