public EncryptedPayloadWrapper(string received)
 {
     if (!string.IsNullOrEmpty(received))
     {
         EncryptedPayloadWrapper <T> enc = BTCWalletHelpers.ObjectFromEncryptedJSON <EncryptedPayloadWrapper <T> >(received);
         this.AuthKey       = enc.AuthKey;
         this.Payload       = enc.Payload;
         this.WrappedObject = BTCWalletHelpers.ObjectFromEncryptedJSON <T>(this.Payload);
     }
 }
 public EncryptedPayloadWrapper(T obj)
 {
     WrappedObject = obj;
     Payload       = BTCWalletHelpers.ObjectToEncryptedJSON(obj);
     AuthKey       = "";
 }
 public override string ToString()
 {
     return(BTCWalletHelpers.ObjectToEncryptedJSON(this));
 }