Esempio n. 1
0
 public EncrytpedRecord(Unpacker unpacker)
 {
     KeyInfo     = SecretKeyInfo.Restore(unpacker);
     SecretInput = new ScryptInput(unpacker);
     unpacker.Unpack(out byte[] data);
     RecordData = Encryption.Restore(new ArraySegment <byte>(data));
 }
Esempio n. 2
0
 public TodoList(Unpacker unpacker, Todo todo, ServiceNode serviceNode)
 {
     unpacker.Unpack(out byte dataVersion);
     unpacker.Unpack(out ListId);
     LastProcessedTransactionId = unpacker.UnpackLong();
     if (unpacker.UnpackBool())
     {
         LastUsedSecretKeyInfo = SecretKeyInfo.Restore(unpacker);
     }
     unpacker.Unpack(_items, (u) => new TodoTask(u));
     unpacker.Unpack(_historyTransactionIds);
     if (unpacker.UnpackBool())
     {
         CurrentListNameRecord = new TodoRecordStorage <TodoListNameRecord>(unpacker);
     }
     Index       = BuildIndex(ListId);
     ServiceNode = serviceNode;
     Todo        = todo;
 }
Esempio n. 3
0
 EncrytpedRecord(SecretKeyInfo keyInfo, ScryptInput secretInput, Encryption recordData)
 {
     KeyInfo     = keyInfo;
     SecretInput = secretInput;
     RecordData  = recordData;
 }