Esempio n. 1
0
        public void Sign()
        {
            TestVerifiable verifiable = new TestVerifiable();

            byte[] res = verifiable.Sign(new KeyPair(TestUtils.GetByteArray(32, 0x42)));
            res.Length.Should().Be(64);
        }
Esempio n. 2
0
        public void GetHashData()
        {
            TestVerifiable verifiable = new TestVerifiable();

            byte[] res = verifiable.GetHashData();
            res.Length.Should().Be(8);
            byte[] requiredData = new byte[] { 7, 116, 101, 115, 116, 83, 116, 114 };
            for (int i = 0; i < requiredData.Length; i++)
            {
                res[i].Should().Be(requiredData[i]);
            }
        }