From c739fd4f09ca62b33cdd2e5b99de6aba31b92333 Mon Sep 17 00:00:00 2001 From: TheDude Date: Thu, 16 Nov 2023 17:26:42 +0000 Subject: [PATCH] Fixing issues with the signatures returned from the relay --- src/Angor/Client/Pages/Invest.razor | 83 +++++++++++-------- src/Angor/Client/Pages/Settings.razor | 8 +- src/Angor/Server/TestNostrSigningFromRelay.cs | 75 +++++++++-------- src/Angor/Shared/Models/OperationResult.cs | 8 ++ src/Angor/Shared/Services/RelayService.cs | 24 ++++-- src/Angor/Shared/Services/SignService.cs | 7 +- .../Shared/Utilities/UnixDateTimeConverter.cs | 24 ++++++ 7 files changed, 143 insertions(+), 86 deletions(-) create mode 100644 src/Angor/Shared/Utilities/UnixDateTimeConverter.cs diff --git a/src/Angor/Client/Pages/Invest.razor b/src/Angor/Client/Pages/Invest.razor index a770c32f..b6e3ffc7 100644 --- a/src/Angor/Client/Pages/Invest.razor +++ b/src/Angor/Client/Pages/Invest.razor @@ -2,12 +2,13 @@ @using Angor.Shared @using Angor.Client.Storage @using Angor.Shared.Models -@using Blockcore.Consensus.TransactionInfo @using Blockcore.NBitcoin @using Angor.Client.Services @using Angor.Shared.ProtocolNew @using Blockcore.NBitcoin.DataEncoders @using JSException = Microsoft.JSInterop.JSException +@using Money = Blockcore.NBitcoin.Money +@using Transaction = Blockcore.Consensus.TransactionInfo.Transaction @inject IJSRuntime JS @@ -160,16 +161,19 @@ } } - @if (recoverySigs != null) + @if (recoverySigs?.Signatures.Count == project.Stages.Count) { -