txo_parser 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/index.html CHANGED
@@ -4,6 +4,18 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <title>TXO — Voucher Management &amp; Bitcoin Anchoring</title>
7
+ <meta name="description" content="Parse, build, and manage TXO URIs. Voucher pool, faucet, blocktrails anchoring on Bitcoin, web ledger with history.">
8
+
9
+ <!-- Open Graph -->
10
+ <meta property="og:title" content="TXO — Voucher Management & Bitcoin Anchoring">
11
+ <meta property="og:description" content="Interactive demo for TXO URIs. Manage vouchers, anchor state to Bitcoin via blocktrails, track web ledger evolution.">
12
+ <meta property="og:type" content="website">
13
+ <meta property="og:url" content="https://sandy-mount.github.io/txo_parser/demo/">
14
+
15
+ <!-- Twitter Card -->
16
+ <meta name="twitter:card" content="summary">
17
+ <meta name="twitter:title" content="TXO — Voucher Management & Bitcoin Anchoring">
18
+ <meta name="twitter:description" content="Interactive demo for TXO URIs. Manage vouchers, anchor state to Bitcoin, track ledger evolution.">
7
19
  <style>
8
20
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
9
21
  body {
@@ -26,6 +38,9 @@
26
38
  #pane-tabs { max-width: 960px !important; margin: 0 auto !important; border-bottom-color: rgba(255,255,255,0.06) !important; }
27
39
  #pane-container { max-width: 960px !important; margin: 0 auto !important; }
28
40
  .boot { display: flex; align-items: center; justify-content: center; height: 40vh; color: rgba(255,255,255,0.25); font-size: 0.9rem; }
41
+ .txo-footer { text-align: center; padding: 32px 16px; font-size: 0.75rem; color: rgba(255,255,255,0.2); }
42
+ .txo-footer a { color: rgba(255,255,255,0.3); text-decoration: none; }
43
+ .txo-footer a:hover { color: rgba(255,255,255,0.5); }
29
44
  </style>
30
45
  </head>
31
46
  <body>
@@ -42,6 +57,11 @@
42
57
 
43
58
  <div id="losos"><div class="boot">Loading...</div></div>
44
59
 
60
+ <footer class="txo-footer">
61
+ Powered by <a href="https://losos.org/">LOSOS</a> &middot;
62
+ <a href="https://nostrcg.github.io/did-nostr/">did:nostr</a>
63
+ </footer>
64
+
45
65
  <script>
46
66
  (function() {
47
67
  // Capture ?key= for auto-import
@@ -488,7 +488,7 @@ export default {
488
488
 
489
489
  ${editingEntry === 'new' ? html`
490
490
  <div class="wl-add-row" style="margin-bottom:12px">
491
- <input class="wl-input wl-new-url" placeholder="URI (did:nostr:..., https://...)" style="flex:2"
491
+ <input class="wl-input wl-new-url" placeholder="did:nostr:pubkey or any URI" style="flex:2"
492
492
  onkeydown="${function(e) { if (e.key === 'Enter') addEntry() }}" />
493
493
  <input class="wl-input wl-new-amount" placeholder="Amount" style="flex:0.5;min-width:100px"
494
494
  onkeydown="${function(e) { if (e.key === 'Enter') addEntry() }}" />
@@ -100,12 +100,19 @@ export default {
100
100
  </div>
101
101
 
102
102
  <div class="sp-section">
103
- <h2>6. Security</h2>
103
+ <h2>6. Integration with did:nostr</h2>
104
+ <div class="sp-p">TXO URIs pair naturally with <a href="https://nostrcg.github.io/did-nostr/" style="color:#3b82f6">did:nostr</a> identifiers. A Nostr keypair can both control a TXO output (via Taproot P2TR) and identify the owner in a ledger:</div>
105
+ <div class="sp-code">did:nostr:d769d2b81c051d2f2c0b437d0ffe39e00ff0f7161b520f0bd30811f4c057795f</div>
106
+ <div class="sp-p">This enables web ledgers where did:nostr URIs map to balances, and the same keys anchor state to Bitcoin via <a href="https://blocktrails.org/" style="color:#f7931a">blocktrails</a>.</div>
107
+ </div>
108
+
109
+ <div class="sp-section">
110
+ <h2>7. Security</h2>
104
111
  <div class="sp-warn">\u26A0 Embedding privkey exposes spend authority. Use TLS + QR or secure channels only. URIs are immutable; to replace an output, create a new URI.</div>
105
112
  </div>
106
113
 
107
114
  <div class="sp-section">
108
- <h2>7. Install</h2>
115
+ <h2>8. Install</h2>
109
116
  <div class="sp-code">npm install txo_parser</div>
110
117
  <div class="sp-code">import { parseTxoUri, formatTxoUri } from 'txo_parser'</div>
111
118
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "txo_parser",
3
- "version": "0.0.3",
4
- "description": "Parser for TXO URI Specification (v0.1)",
3
+ "version": "0.0.4",
4
+ "description": "Parser for TXO URI Specification (v0.2)",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "bin": {