Exemple #1
0
        public void CanRecoverExtPubKeyFromHexString()
        {
            var key             = new ExtKey();
            var pubkeyBytes     = key.Neuter().ToBytes();
            var pubkeyHexString = Encoders.Hex.EncodeData(pubkeyBytes);


            var pubKeyFromBytes     = new ExtPubKey(pubkeyBytes);
            var pubKeyFromHexString = new ExtPubKey(pubkeyHexString);

            Assert.True(pubKeyFromBytes.Equals(pubKeyFromHexString));
        }