Exemplo n.º 1
0
 public SignedPreKeyRecord(UInt32 id, long timestamp, ECKeyPair keyPair, byte[] signature)
 {
     _structure = new SignedPreKeyRecordStructure {
         Id = id,
         PublicKey = keyPair.PublicKey.Serialize(),
         PrivateKey = keyPair.PrivateKey.Serialize(),
         Signature =  signature,
         // Timestamp = timestamp //UNDONE
     };
 }
Exemplo n.º 2
0
 public SignedPreKeyRecord(byte[] serialized)
 {
     using (var stream = new MemoryStream(serialized)) {
         _structure = Serializer.Deserialize<SignedPreKeyRecordStructure> (stream);
     }
 }