예제 #1
0
        public void GetAddressFromPrivateKey_InValid_Test()
        {
            var key = "123";

            var result = DogeTransactionHelpers.GetAddressFromPrivateKey(key);

            Assert.False(result.Success);
        }
예제 #2
0
        public void GetAddressFromPrivateKey_Valid_Test()
        {
            var key     = "QNoNA2w58ceiKr8Py6F5FE8ShFqkJr8TxQ5m5YEpUQDXmume8fN9";
            var address = "DD9or9JWdMJBYhPKcYS2BNu4PAUkun6bnW";

            var result = DogeTransactionHelpers.GetAddressFromPrivateKey(key);

            Assert.True(result.Success);
            Assert.NotEmpty(result.Value.ToString());
            Assert.Equal(address, result.Value.ToString());
        }