/// <summary> /// /// </summary> /// <param name="output"></param> /// <param name="scan"></param> /// <returns></returns> public static string Memo(Vout output, Key scan) { var message = string.Empty; try { message = MessagePackSerializer.Deserialize <WalletTransactionMessage>(scan.Decrypt(output.N)).Memo; } catch (Exception) { // Ignore } return(message); }
/// <summary> /// /// </summary> /// <param name="output"></param> /// <param name="scan"></param> /// <returns></returns> public static ulong Amount(Vout output, Key scan) { ulong amount = 0; try { amount = MessagePackSerializer.Deserialize <WalletTransactionMessage>(scan.Decrypt(output.N)).Amount; } catch (Exception ex) { var e = ex.Message; // Ignore } return(amount); }
/// <summary> /// /// </summary> /// <param name="output"></param> /// <param name="scan"></param> /// <returns></returns> public static WalletTransactionMessage Message(Vout output, Key scan) { WalletTransactionMessage message = null; try { message = MessagePackSerializer.Deserialize <WalletTransactionMessage>(scan.Decrypt(output.N)); message.Output = output; } catch (Exception) { // Ignore } return(message); }