This will open a public channel to your node.
"; +} + +public class LSPViewModel +{ + public LSPSettings Settings { get; set; } +} diff --git a/Plugins/BTCPayServer.Plugins.LSP/Views/LSP/Connect.cshtml b/Plugins/BTCPayServer.Plugins.LSP/Views/LSP/Connect.cshtml new file mode 100644 index 0000000..b1db246 --- /dev/null +++ b/Plugins/BTCPayServer.Plugins.LSP/Views/LSP/Connect.cshtml @@ -0,0 +1,73 @@ +@using BTCPayServer.Client.Models +@model BTCPayServer.Plugins.LSP.LSPController.LSPConnectPage +@inject ContentSecurityPolicies contentSecurityPolicies +@using BTCPayServer.Security +@using NBitcoin +@{ + var nonce = RandomUtils.GetUInt256().ToString().Substring(0, 32); + contentSecurityPolicies.Add("script-src", $"'nonce-{nonce}'"); + contentSecurityPolicies.AllowUnsafeHashes(); + Layout = "_LayoutSimple"; + var reloadPage = false; +} + + +Scan this QR with your wallet to proceed with opening the channel.
+ Open in wallet +Opening a channel of at least @inbound.ToString() sats.
+Generates commands to import your received liquid funds into an elements node
+
+ TicketTailor
+
+ @Html.Raw(description)
+ } +