mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 15:44:26 +01:00
26 lines
631 B
C#
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; }
|
|
} |