Ejemplo n.º 1
0
        public override void Read(Util.DataDeserializer reader)
        {
            base.Read(reader);
            var size = reader.ReadShort();

            Book.Capacity = size;
            for (short i = 0; i < size; ++i)
            {
                var r = new PrivateKeyBookRecord();
                r.Purpose    = (KeyPurpose)reader.ReadShort();
                r.PrivateKey = reader.ReadContent <ECDSAKeyPair>();
                Book.Add(r);
            }
        }
 public override void Read(Util.DataDeserializer reader)
 {
     base.Read(reader);
     Book = reader.ReadContent <PrivateKeyBook>();
 }