public void AddressesToBytes_ShortMessage() { byte[] expectedBytes = new byte[] { 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; var inputAddresses = new List <BitcoinAddress> { BitcoinAddress.Create("TJp6YfcXar2jF1LA3QjmfzfeD26hp9qXNn", RedstoneNetworks.TestNet) }; byte[] output = BlockChainDataConversions.AddressesToBytes(inputAddresses); Assert.Equal(expectedBytes, output); }
public void AddressesToBytes_ShortMessage() { var expectedBytes = new byte[] { 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; List <BitcoinAddress> inputAddresses = new List <BitcoinAddress>(); inputAddresses.Add(BitcoinAddress.Create("mpMqqfKnF9M2rwk9Ai4RymBqADx6TssFuM")); var output = BlockChainDataConversions.AddressesToBytes(inputAddresses); Assert.Equal(expectedBytes, output); }