private void LoadSave(SignatureParameters param)
 {
     MemoryStream os = new MemoryStream();
     param.writeTo(os);
     MemoryStream ins = new MemoryStream(os.ToArray());
     Assert.Equals(param, new SignatureParameters(ins));
 }
        private void EqualsHashCode(SignatureParameters param)
        {
            MemoryStream os = new MemoryStream();
            param.writeTo(os);
            MemoryStream ins = new MemoryStream(os.ToArray());
            SignatureParameters params2 = new SignatureParameters(ins);

            Assert.Equals(param, params2);
            Assert.Equals(param.GetHashCode(), params2.GetHashCode());

            param.N += 1;
            Assert.False(param.Equals(params2));
            Assert.False(param.Equals(params2));
            Assert.False(param.GetHashCode() == params2.GetHashCode());
        }