Files
BTCPayServerPlugins/Plugins/BTCPayServer.Plugins.NIP05/ZapperSettings.cs
2024-06-06 13:13:29 +02:00

26 lines
631 B
C#

using NBitcoin.Secp256k1;
using Newtonsoft.Json;
using NNostr.Client;
namespace BTCPayServer.Plugins.NIP05;
public class ZapperSettings
{
public ZapperSettings(string ZapperPrivateKey)
{
this.ZapperPrivateKey = ZapperPrivateKey;
}
public ZapperSettings()
{
}
[JsonIgnore]
public ECPrivKey ZappingKey => NostrExtensions.ParseKey(ZapperPrivateKey);
[JsonIgnore]
public ECXOnlyPubKey ZappingPublicKey => ZappingKey.CreateXOnlyPubKey();
[JsonIgnore]
public string ZappingPublicKeyHex => ZappingPublicKey.ToHex();
public string ZapperPrivateKey { get; set; }
}