From 1ca6f54b93a56d942a90f3e0072265c9df3b9e6c Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Mon, 11 Feb 2019 22:25:19 -0500 Subject: [PATCH] pubkey output type --- views/includes/transaction-io-details.pug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/includes/transaction-io-details.pug b/views/includes/transaction-io-details.pug index 15d0acb..6025f2e 100644 --- a/views/includes/transaction-io-details.pug +++ b/views/includes/transaction-io-details.pug @@ -86,7 +86,9 @@ div(class="row monospace") if (vout.scriptPubKey) if (vout.scriptPubKey.addresses) if (false) - if (vout.scriptPubKey.type == "pubkeyhash") + if (vout.scriptPubKey.type == "pubkey") + span(class="tag tx-out-type-tag") P2PK + else if (vout.scriptPubKey.type == "pubkeyhash") span(class="tag tx-out-type-tag") P2PKH else if (vout.scriptPubKey.type == "scripthash") span(class="tag tx-out-type-tag") P2SH @@ -113,6 +115,7 @@ div(class="row monospace") span(class="font-weight-bold") OP_RETURN span(title="Segregated Witness", data-toggle="tooltip") SegWit span committment + a(href="https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#commitment-structure", data-toggle="tooltip", title="View developer docs", target="_blank") i(class="fas fa-info-circle")