Adapt payjoin for BIP78

This commit is contained in:
nicolas.dorier
2020-06-17 21:43:56 +09:00
parent 0b720768b8
commit 24a88fcfb5
12 changed files with 381 additions and 270 deletions

View File

@@ -4,7 +4,7 @@
{
<input type="hidden" asp-for="PSBT" />
<input type="hidden" asp-for="OriginalPSBT" />
<input type="hidden" asp-for="PayJoinEndpointUrl" />
<input type="hidden" asp-for="PayJoinBIP21" />
<input type="hidden" asp-for="EnforceLowR" />
<input type="hidden" asp-for="ChangeAddress" />
}

View File

@@ -142,7 +142,7 @@
<partial name="SigningContext" for="SigningContext" />
@if (!Model.HasErrors)
{
@if (!string.IsNullOrEmpty(Model.SigningContext?.PayJoinEndpointUrl))
@if (!string.IsNullOrEmpty(Model.SigningContext?.PayJoinBIP21))
{
<button type="submit" class="btn btn-primary" name="command" value="payjoin">Broadcast (Payjoin)</button>
<span> or </span>

View File

@@ -203,12 +203,12 @@
</select>
</div>
}
@if (!string.IsNullOrEmpty(Model.PayJoinEndpointUrl))
@if (!string.IsNullOrEmpty(Model.PayJoinBIP21))
{
<div class="form-group">
<label asp-for="PayJoinEndpointUrl" class="control-label"></label>
<input asp-for="PayJoinEndpointUrl" class="form-control" />
<span asp-validation-for="PayJoinEndpointUrl" class="text-danger"></span>
<label asp-for="PayJoinBIP21" class="control-label"></label>
<input asp-for="PayJoinBIP21" class="form-control" />
<span asp-validation-for="PayJoinBIP21" class="text-danger"></span>
</div>
}
<div class="form-group">