Ejemplo n.º 1
0
        public void Both_addresses_can_be_exported_via_WIF()
        {
            var wallet1 = Fixture.Value;
            var wif1    = _wif.Value.Export(wallet1, wallet1.KeyPairs[0].PublicKey);
            var wif2    = _wif.Value.Export(wallet1, wallet1.KeyPairs[1].PublicKey);

            Assert.Equal(wallet1.KeyPairs[0].PrivateKey.ToHex(), WifAddressStorageFormat.GetPrivateKeyFromImport(wif1).ToHex());
            Assert.Equal(wallet1.KeyPairs[1].PrivateKey.ToHex(), WifAddressStorageFormat.GetPrivateKeyFromImport(wif2).ToHex());
        }
 public WifAddressStorageFormatFixture()
 {
     Value = new WifAddressStorageFormat();
 }