mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
nip5 improve
This commit is contained in:
26
Plugins/BTCPayServer.Plugins.NIP05/ZapperSettings.cs
Normal file
26
Plugins/BTCPayServer.Plugins.NIP05/ZapperSettings.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user