mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-25 23:20:33 +01:00
24 lines
662 B
C#
24 lines
662 B
C#
using BTCPayServer.Client.Models;
|
|
using BTCPayServer.Lightning;
|
|
using BTCPayServer.Lightning.JsonConverters;
|
|
using BTCPayServer.Services.Invoices;
|
|
using NBitcoin;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Payments.Lightning
|
|
{
|
|
public class LightningLikePaymentData : CryptoPaymentData
|
|
{
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.UInt256JsonConverter))]
|
|
public uint256 PaymentHash { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.UInt256JsonConverter))]
|
|
public uint256 Preimage { get; set; }
|
|
|
|
public string GetPaymentProof()
|
|
{
|
|
return Preimage?.ToString();
|
|
}
|
|
}
|
|
}
|