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

TestScriptPubKey() private method

private TestScriptPubKey ( ) : void
return void
        public void TestScriptPubKey()
        {
            // Check we can extract the to address
            var pubkeyBytes = Hex.Decode(_pubkeyProg);
            var pubkey = new Script(_params, pubkeyBytes, 0, pubkeyBytes.Length);
            var toAddr = new Address(_params, pubkey.PubKeyHash);
            Assert.AreEqual("mkFQohBpy2HDXrCwyMrYL5RtfrmeiuuPY2", toAddr.ToString());
        }