, impl IntoResponse> {
let s = state.load();
+ let cache = s.transparent_utxos_cache.clone();
match s
.rpc_client
- .utxo_digest(context::current(), s.token(), index)
+ .utxo_digest(context::current(), s.token(), index, cache)
.await
.map_err(rpc_err)?
.map_err(rpc_method_err)?
diff --git a/templates/web/html/page/announcement.html b/templates/web/html/page/announcement.html
index 32e23ee..f04b750 100644
--- a/templates/web/html/page/announcement.html
+++ b/templates/web/html/page/announcement.html
@@ -87,7 +87,13 @@
+ {% if let Some(Some(aocl_leaf_index)) =
+ self.addition_record_indices.get(&output.addition_record()) { %}
+ {{output.addition_record().canonical_commitment.to_hex()}}
+ {% } else { %}
{{output.addition_record().canonical_commitment.to_hex()}}
+ {% } %}
diff --git a/templates/web/html/page/utxo.html b/templates/web/html/page/utxo.html
index d059cb1..4544ba5 100644
--- a/templates/web/html/page/utxo.html
+++ b/templates/web/html/page/utxo.html
@@ -2,43 +2,92 @@
{{self.header.state.config.site_name}}: Utxo {{self.index}}
-{{html_escaper::Trusted(include_str!( concat!(env!("CARGO_MANIFEST_DIR"), "/templates/web/html/components/head.html")))}}
+ {{html_escaper::Trusted(include_str!( concat!(env!("CARGO_MANIFEST_DIR"),
+ "/templates/web/html/components/head.html")))}}
-{{Trusted(self.header.to_string())}}
+ {{Trusted(self.header.to_string())}}
-
+
-
-
- ⓘ
-
- UTXO = Unspent Transaction Output. It represents an output of transaction A which can also be an input to transaction B.
-
-
- UTXO Information
-
-
-
- | Index |
- {{self.index}} |
-
-
- | Digest |
- {{self.digest.to_hex()}} |
-
-
-
+
+
+ ⓘ
+
+ UTXO = Unspent Transaction Output. It represents an output of transaction A which can also be an
+ input to transaction B.
+
+
+ UTXO Information
+
+
+
+ | AOCL Leaf Index |
+ {{self.index}} |
+
+
+ | Addition Record |
+ {{self.digest.to_hex()}} |
+
+
+
-
-
- Home
- | Genesis
- | Tip
-
-
+ {% if let Some(utxo_info) = &self.transparent_utxo_info { %}
+
+
+ ⓘ
+
+ UTXOs consumed or produced by a transparent transaction disclose the information they otherwise
+ hide.
+
+
+ Transparent UTXO Information
+
+
+
+ | UTXO Digest: |
+ {{Tip5::hash(&utxo_info.utxo()).to_hex()}} |
+
+
+ | Sender Randomness: |
+ {{utxo_info.sender_randomness().to_hex()}} |
+
+
+ | Receiver Digest |
+ {{utxo_info.receiver_digest().to_hex()}} |
+
+ {% if let Some(receiver_preimage) = utxo_info.receiver_preimage() { %}
+
+ | Receiver Preimage |
+ {{receiver_preimage.to_hex()}} |
+
+ {% } %}
+ {% if utxo_info.utxo().has_native_currency() { %}
+
+ | Amount: |
+ {{utxo_info.utxo().get_native_currency_amount().display_n_decimals(5)}} NPT |
+
+ {% } %}
+ {% if let Some(release_date) = utxo_info.utxo().release_date() { %}
+
+ | Time-Locked Until |
+ {{release_date.standard_format()}} |
+
+ {% } %}
+
+
+ {% } %}
-
+
+
+ Home
+ | Genesis
+ | Tip
+
+
+
+
+
|