Example #1
0
    public void Crytonight_Hash_CN_PICO_0()
    {
        var value = "0305a0dbd6bf05cf16e503f3a66f78007cbf34144332ecbfc22ed95c8700383b309ace1923a0964b00000008ba939a62724c0d7581fce5761e9d8a0e6a1c3f924fdd8493d1115649c05eb601".HexToByteArray();
        var hash  = new byte[32];

        Cryptonight.CryptonightPicoHash(value, hash, CN_PICO_0, 10);

        var result = hash.ToHexString();

        Assert.Equal("08f421d7833117300eda66e98f4a2569093df300500173944efc401e9a4a17af", result);
    }