upd nostr lib

This commit is contained in:
Kukks
2023-08-18 12:23:19 +02:00
parent 4483806f82
commit ed26b33f26
3 changed files with 4 additions and 7 deletions

View File

@@ -11,7 +11,7 @@
<PropertyGroup>
<Product>Nostr </Product>
<Description>Allows you to verify your nostr account with NIP5 and zap like the rest of the crazies</Description>
<Version>1.0.14</Version>
<Version>1.0.15</Version>
</PropertyGroup>
<!-- Plugin development properties -->
<PropertyGroup>
@@ -35,7 +35,7 @@
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NNostr.Client" Version="0.0.33" />
<PackageReference Include="NNostr.Client" Version="0.0.34" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources" />

View File

@@ -43,7 +43,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NNostr.Client" Version="0.0.33" />
<PackageReference Include="NNostr.Client" Version="0.0.34" />
<PackageReference Include="WabiSabi" Version="1.0.1.2" />
</ItemGroup>
<Target Name="DeleteExampleFile" AfterTargets="Publish">

View File

@@ -16,10 +16,7 @@ public class WabisabiCoordinatorSettings
public List<DiscoveredCoordinator> DiscoveredCoordinators { get; set; } = new();
public ECPrivKey GetKey()
{
return string.IsNullOrEmpty(NostrIdentity) ? null : NostrExtensions.ParseKey(NostrIdentity);
}
public ECPrivKey GetKey() => string.IsNullOrEmpty(NostrIdentity) ? null : NostrExtensions.ParseKey(NostrIdentity);
public ECXOnlyPubKey GetPubKey() => GetKey()?.CreatePubKey().ToXOnlyPubKey();
public Uri UriToAdvertise { get; set; }