@smartledger/bsv 3.4.1 → 3.4.3

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.
@@ -25,7 +25,7 @@ Based on actual library analysis, SmartLedger-BSV provides **12 distinct modules
25
25
  | **bsv-smartcontract.min.js** | SmartContract framework | 451KB | Covenant development | ✅ Documented |
26
26
  | **bsv-covenant.min.js** | Covenant interface | 32KB | Covenant operations | ✅ Documented |
27
27
  | **bsv-script-helper.min.js** | Custom script tools | 27KB | Script development | ✅ Documented |
28
- | **bsv-security.min.js** | Security enhancements | 290KB | Hardened crypto | ✅ Documented |
28
+ | **bsv-security.min.js** | Security enhancements (opt-in helpers) | 26KB | `SmartVerify` / `EllipticFixed` | ✅ Documented |
29
29
 
30
30
  ### **Utility Modules**
31
31
 
@@ -55,19 +55,19 @@ Three major modules totaling **1.82MB** of functionality are completely missing
55
55
  - **Purpose**: Threshold cryptography for secure secret distribution
56
56
  - **Use Cases**: Backup keys, multi-party security, key recovery
57
57
  - **Features**: Split secrets into N shares, require M to reconstruct
58
- - **CDN**: `unpkg.com/@smartledger/bsv@3.3.4/bsv-shamir.min.js`
58
+ - **CDN**: `unpkg.com/@smartledger/bsv@3.4.2/bsv-shamir.min.js`
59
59
 
60
60
  #### **🌐 Global Digital Attestation Framework - GDAF (604KB)**
61
61
  - **Purpose**: W3C Verifiable Credentials and decentralized identity
62
62
  - **Use Cases**: Identity verification, attestations, zero-knowledge proofs
63
63
  - **Features**: DID creation, credential issuance, selective disclosure
64
- - **CDN**: `unpkg.com/@smartledger/bsv@3.3.4/bsv-gdaf.min.js`
64
+ - **CDN**: `unpkg.com/@smartledger/bsv@3.4.2/bsv-gdaf.min.js`
65
65
 
66
66
  #### **⚖️ Legal Token Protocol - LTP (817KB)**
67
67
  - **Purpose**: Legal compliance framework for tokenized assets
68
68
  - **Use Cases**: Property rights, obligations, compliant tokenization
69
69
  - **Features**: Legal primitives, compliance checking, attestation anchoring
70
- - **CDN**: `unpkg.com/@smartledger/bsv@3.3.4/bsv-ltp.min.js`
70
+ - **CDN**: `unpkg.com/@smartledger/bsv@3.4.2/bsv-ltp.min.js`
71
71
 
72
72
  ### **2. Incorrect File Sizes in Documentation**
73
73
 
@@ -82,18 +82,18 @@ Three major modules totaling **1.82MB** of functionality are completely missing
82
82
 
83
83
  | Module | Size | Use Case | CDN Link |
84
84
  |--------|------|----------|----------|
85
- | **bsv.min.js** | 449KB | Core BSV + SmartContract | `unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js` |
86
- | **bsv.bundle.js** | 885KB | Everything in one file | `unpkg.com/@smartledger/bsv@3.3.4/bsv.bundle.js` |
87
- | **bsv-smartcontract.min.js** | 451KB | Covenant development | `unpkg.com/@smartledger/bsv@3.3.4/bsv-smartcontract.min.js` |
88
- | **bsv-covenant.min.js** | 32KB | Covenant operations | `unpkg.com/@smartledger/bsv@3.3.4/bsv-covenant.min.js` |
89
- | **bsv-script-helper.min.js** | 27KB | Custom script tools | `unpkg.com/@smartledger/bsv@3.3.4/bsv-script-helper.min.js` |
90
- | **bsv-security.min.js** | 290KB | Security enhancements | `unpkg.com/@smartledger/bsv@3.3.4/bsv-security.min.js` |
91
- | **bsv-ecies.min.js** | 71KB | Encryption | `unpkg.com/@smartledger/bsv@3.3.4/bsv-ecies.min.js` |
92
- | **bsv-message.min.js** | 26KB | Message signing | `unpkg.com/@smartledger/bsv@3.3.4/bsv-message.min.js` |
93
- | **bsv-mnemonic.min.js** | 670KB | HD wallets | `unpkg.com/@smartledger/bsv@3.3.4/bsv-mnemonic.min.js` |
94
- | **🆕 bsv-shamir.min.js** | 433KB | **Secret sharing** | `unpkg.com/@smartledger/bsv@3.3.4/bsv-shamir.min.js` |
95
- | **🆕 bsv-gdaf.min.js** | 604KB | **Digital attestation** | `unpkg.com/@smartledger/bsv@3.3.4/bsv-gdaf.min.js` |
96
- | **🆕 bsv-ltp.min.js** | 817KB | **Legal tokens** | `unpkg.com/@smartledger/bsv@3.3.4/bsv-ltp.min.js` |
85
+ | **bsv.min.js** | 449KB | Core BSV + SmartContract | `unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js` |
86
+ | **bsv.bundle.js** | 885KB | Everything in one file | `unpkg.com/@smartledger/bsv@3.4.2/bsv.bundle.js` |
87
+ | **bsv-smartcontract.min.js** | 451KB | Covenant development | `unpkg.com/@smartledger/bsv@3.4.2/bsv-smartcontract.min.js` |
88
+ | **bsv-covenant.min.js** | 32KB | Covenant operations | `unpkg.com/@smartledger/bsv@3.4.2/bsv-covenant.min.js` |
89
+ | **bsv-script-helper.min.js** | 27KB | Custom script tools | `unpkg.com/@smartledger/bsv@3.4.2/bsv-script-helper.min.js` |
90
+ | **bsv-security.min.js** | 26KB | Security enhancements (opt-in helpers — see README › Security) | `unpkg.com/@smartledger/bsv@3.4.2/bsv-security.min.js` |
91
+ | **bsv-ecies.min.js** | 71KB | Encryption | `unpkg.com/@smartledger/bsv@3.4.2/bsv-ecies.min.js` |
92
+ | **bsv-message.min.js** | 26KB | Message signing | `unpkg.com/@smartledger/bsv@3.4.2/bsv-message.min.js` |
93
+ | **bsv-mnemonic.min.js** | 670KB | HD wallets | `unpkg.com/@smartledger/bsv@3.4.2/bsv-mnemonic.min.js` |
94
+ | **🆕 bsv-shamir.min.js** | 433KB | **Secret sharing** | `unpkg.com/@smartledger/bsv@3.4.2/bsv-shamir.min.js` |
95
+ | **🆕 bsv-gdaf.min.js** | 604KB | **Digital attestation** | `unpkg.com/@smartledger/bsv@3.4.2/bsv-gdaf.min.js` |
96
+ | **🆕 bsv-ltp.min.js** | 817KB | **Legal tokens** | `unpkg.com/@smartledger/bsv@3.4.2/bsv-ltp.min.js` |
97
97
 
98
98
  ## 🎯 **Updated Usage Examples**
99
99
 
@@ -101,22 +101,22 @@ Three major modules totaling **1.82MB** of functionality are completely missing
101
101
 
102
102
  #### **1. Basic Development (476KB)**
103
103
  ```html
104
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
105
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-script-helper.min.js"></script>
104
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
105
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-script-helper.min.js"></script>
106
106
  ```
107
107
 
108
108
  #### **2. Smart Contract Development (932KB)**
109
109
  ```html
110
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
111
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-covenant.min.js"></script>
112
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-smartcontract.min.js"></script>
110
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
111
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-covenant.min.js"></script>
112
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-smartcontract.min.js"></script>
113
113
  ```
114
114
 
115
115
  #### **3. 🆕 Legal & Compliance Development (1.7MB)**
116
116
  ```html
117
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
118
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-ltp.min.js"></script>
119
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-gdaf.min.js"></script>
117
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
118
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-ltp.min.js"></script>
119
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-gdaf.min.js"></script>
120
120
  <script>
121
121
  // Legal Token Protocol
122
122
  const legalToken = bsv.createLegalToken({
@@ -133,9 +133,9 @@ Three major modules totaling **1.82MB** of functionality are completely missing
133
133
 
134
134
  #### **4. 🆕 Security & Cryptography (1.35MB)**
135
135
  ```html
136
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
137
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-security.min.js"></script>
138
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-shamir.min.js"></script>
136
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
137
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-security.min.js"></script>
138
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-shamir.min.js"></script>
139
139
  <script>
140
140
  // Shamir Secret Sharing
141
141
  const shares = bsv.splitSecret('my_secret_key', 5, 3); // 5 shares, 3 needed
@@ -147,7 +147,7 @@ Three major modules totaling **1.82MB** of functionality are completely missing
147
147
 
148
148
  #### **5. Everything Bundle (885KB)**
149
149
  ```html
150
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.bundle.js"></script>
150
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.bundle.js"></script>
151
151
  <script>
152
152
  // Everything available immediately
153
153
  const shares = bsv.splitSecret('secret', 5, 3);
@@ -165,7 +165,7 @@ LTP is built on top of SmartLedger-BSV's modular architecture and integrates sea
165
165
 
166
166
  #### **Foundation Layer (Required)**
167
167
  - **Core BSV (`bsv.min.js`)**: Provides Bitcoin SV primitives (keys, transactions, addresses)
168
- - **Cryptographic Functions**: Uses hardened elliptic curve implementations for all signatures
168
+ - **Cryptographic Functions**: Token signing uses BSV's standard ECDSA path (the same one used by Bitcoin transaction signing). For stricter verification of incoming tokens from untrusted sources, callers can route verification through `bsv.SmartVerify.smartVerify(...)` explicitly — it is not on by default. See [README › Security](../../README.md#-security).
169
169
 
170
170
  #### **Identity Layer (Recommended)**
171
171
  - **GDAF Module (`bsv-gdaf.min.js`)**: Provides DID creation and Verifiable Credential standards
@@ -242,7 +242,7 @@ const propertyToken = bsv.createRightToken({
242
242
  type: 'PropertyTitle', // LTP: Legal structure
243
243
  owner: ownerDID, // GDAF: Digital identity
244
244
  jurisdiction: 'US-CA', // LTP: Legal compliance
245
- // Signed with hardened crypto // Core: Enhanced security
245
+ // Signed with BSV's standard ECDSA // Core: Bitcoin SV signature
246
246
  // Can be covenant-protected // SmartContract: Enforcement
247
247
  // Keys can use Shamir sharing // Shamir: Distributed control
248
248
  });
@@ -301,7 +301,7 @@ const anchor = bsv.LTP.Anchor.prepareCommitment(rightToken); // 6. Pr
301
301
 
302
302
  ## 🔐 Security & Trust Features
303
303
 
304
- - **🔒 Cryptographic Signatures** - All tokens signed with enhanced elliptic curves
304
+ - **🔒 Cryptographic Signatures** - Tokens signed with BSV's standard secp256k1 ECDSA path. Opt-in `bsv.SmartVerify` available for stricter verification of incoming tokens.
305
305
  - **🎭 Selective Disclosure** - Privacy-preserving proof generation with zero-knowledge
306
306
  - **⚖️ Legal Validity Proofs** - Jurisdiction-specific compliance verification
307
307
  - **⛓️ Blockchain Anchoring** - Immutable commitment proofs on BSV blockchain
@@ -12,10 +12,10 @@ SmartLedger-BSV offers multiple installation methods to suit different developme
12
12
  npm install @smartledger/bsv
13
13
 
14
14
  # Install specific version
15
- npm install @smartledger/bsv@3.3.4
15
+ npm install @smartledger/bsv@3.4.2
16
16
 
17
17
  # Install with exact version lock
18
- npm install --save-exact @smartledger/bsv@3.3.4
18
+ npm install --save-exact @smartledger/bsv@3.4.2
19
19
  ```
20
20
 
21
21
  ### **Usage in Node.js**
@@ -48,7 +48,7 @@ const tx: Transaction = new Transaction();
48
48
  #### **Core Library Only (449KB)**
49
49
  For basic Bitcoin SV operations:
50
50
  ```html
51
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
51
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
52
52
  <script>
53
53
  const privateKey = new bsv.PrivateKey();
54
54
  const address = privateKey.toAddress();
@@ -58,7 +58,7 @@ For basic Bitcoin SV operations:
58
58
  #### **Complete Bundle (885KB)**
59
59
  Everything in one file:
60
60
  ```html
61
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.bundle.js"></script>
61
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.bundle.js"></script>
62
62
  <script>
63
63
  // All features available immediately
64
64
  const shares = bsv.splitSecret('secret', 5, 3);
@@ -71,9 +71,9 @@ Everything in one file:
71
71
 
72
72
  #### **Smart Contract Development (932KB total)**
73
73
  ```html
74
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
75
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-covenant.min.js"></script>
76
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-smartcontract.min.js"></script>
74
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
75
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-covenant.min.js"></script>
76
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-smartcontract.min.js"></script>
77
77
  <script>
78
78
  const covenant = bsv.SmartContract.createCovenantBuilder()
79
79
  .extractField('amount').push(50000).greaterThanOrEqual().build();
@@ -82,9 +82,9 @@ Everything in one file:
82
82
 
83
83
  #### **Legal & Identity Development (1.87MB total)**
84
84
  ```html
85
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
86
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-ltp.min.js"></script>
87
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-gdaf.min.js"></script>
85
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
86
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-ltp.min.js"></script>
87
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-gdaf.min.js"></script>
88
88
  <script>
89
89
  // Legal Token Protocol
90
90
  const propertyToken = bsv.createPropertyToken({
@@ -98,9 +98,9 @@ Everything in one file:
98
98
 
99
99
  #### **Security & Cryptography (1.17MB total)**
100
100
  ```html
101
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
102
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-security.min.js"></script>
103
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-shamir.min.js"></script>
101
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
102
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-security.min.js"></script>
103
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-shamir.min.js"></script>
104
104
  <script>
105
105
  // Threshold Cryptography
106
106
  const shares = bsv.splitSecret('my_secret_key', 5, 3);
@@ -114,18 +114,18 @@ Everything in one file:
114
114
 
115
115
  | Module | Size | Purpose | CDN Link |
116
116
  |--------|------|---------|----------|
117
- | **bsv.min.js** | 449KB | Core BSV + SmartContract | `unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js` |
118
- | **bsv.bundle.js** | 885KB | Everything in one file | `unpkg.com/@smartledger/bsv@3.3.4/bsv.bundle.js` |
119
- | **bsv-smartcontract.min.js** | 451KB | Complete covenant framework | `unpkg.com/@smartledger/bsv@3.3.4/bsv-smartcontract.min.js` |
120
- | **bsv-ltp.min.js** | 817KB | **Legal Token Protocol** | `unpkg.com/@smartledger/bsv@3.3.4/bsv-ltp.min.js` |
121
- | **bsv-gdaf.min.js** | 604KB | **Digital Identity & Attestation** | `unpkg.com/@smartledger/bsv@3.3.4/bsv-gdaf.min.js` |
122
- | **bsv-shamir.min.js** | 433KB | **Threshold Cryptography** | `unpkg.com/@smartledger/bsv@3.3.4/bsv-shamir.min.js` |
123
- | **bsv-security.min.js** | 290KB | Security enhancements | `unpkg.com/@smartledger/bsv@3.3.4/bsv-security.min.js` |
124
- | **bsv-mnemonic.min.js** | 670KB | HD wallets | `unpkg.com/@smartledger/bsv@3.3.4/bsv-mnemonic.min.js` |
125
- | **bsv-ecies.min.js** | 71KB | Encryption | `unpkg.com/@smartledger/bsv@3.3.4/bsv-ecies.min.js` |
126
- | **bsv-covenant.min.js** | 32KB | Covenant operations | `unpkg.com/@smartledger/bsv@3.3.4/bsv-covenant.min.js` |
127
- | **bsv-script-helper.min.js** | 27KB | Custom script tools | `unpkg.com/@smartledger/bsv@3.3.4/bsv-script-helper.min.js` |
128
- | **bsv-message.min.js** | 26KB | Message signing | `unpkg.com/@smartledger/bsv@3.3.4/bsv-message.min.js` |
117
+ | **bsv.min.js** | 449KB | Core BSV + SmartContract | `unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js` |
118
+ | **bsv.bundle.js** | 885KB | Everything in one file | `unpkg.com/@smartledger/bsv@3.4.2/bsv.bundle.js` |
119
+ | **bsv-smartcontract.min.js** | 451KB | Complete covenant framework | `unpkg.com/@smartledger/bsv@3.4.2/bsv-smartcontract.min.js` |
120
+ | **bsv-ltp.min.js** | 817KB | **Legal Token Protocol** | `unpkg.com/@smartledger/bsv@3.4.2/bsv-ltp.min.js` |
121
+ | **bsv-gdaf.min.js** | 604KB | **Digital Identity & Attestation** | `unpkg.com/@smartledger/bsv@3.4.2/bsv-gdaf.min.js` |
122
+ | **bsv-shamir.min.js** | 433KB | **Threshold Cryptography** | `unpkg.com/@smartledger/bsv@3.4.2/bsv-shamir.min.js` |
123
+ | **bsv-security.min.js** | 26KB | Security enhancements (opt-in helpers — see README › Security) | `unpkg.com/@smartledger/bsv@3.4.2/bsv-security.min.js` |
124
+ | **bsv-mnemonic.min.js** | 670KB | HD wallets | `unpkg.com/@smartledger/bsv@3.4.2/bsv-mnemonic.min.js` |
125
+ | **bsv-ecies.min.js** | 71KB | Encryption | `unpkg.com/@smartledger/bsv@3.4.2/bsv-ecies.min.js` |
126
+ | **bsv-covenant.min.js** | 32KB | Covenant operations | `unpkg.com/@smartledger/bsv@3.4.2/bsv-covenant.min.js` |
127
+ | **bsv-script-helper.min.js** | 27KB | Custom script tools | `unpkg.com/@smartledger/bsv@3.4.2/bsv-script-helper.min.js` |
128
+ | **bsv-message.min.js** | 26KB | Message signing | `unpkg.com/@smartledger/bsv@3.4.2/bsv-message.min.js` |
129
129
 
130
130
  ## ⚙️ **Development Environment Setup**
131
131
 
@@ -14,10 +14,10 @@ npm install @smartledger/bsv
14
14
  ### Browser CDN (Instant)
15
15
  ```html
16
16
  <!-- Core library (449KB) -->
17
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
17
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
18
18
 
19
19
  <!-- Everything included (885KB) -->
20
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.bundle.js"></script>
20
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.bundle.js"></script>
21
21
  ```
22
22
 
23
23
  ## 💰 **Your First Transaction (60 seconds)**
@@ -127,27 +127,27 @@ SmartLedger-BSV offers 12 different loading options - use only what you need:
127
127
 
128
128
  ```html
129
129
  <!-- Core BSV only (449KB) -->
130
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.min.js"></script>
130
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.min.js"></script>
131
131
 
132
132
  <!-- Smart contracts (873KB) -->
133
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-smartcontract.min.js"></script>
133
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-smartcontract.min.js"></script>
134
134
 
135
135
  <!-- Legal tokens (1.1MB) -->
136
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-ltp.min.js"></script>
136
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-ltp.min.js"></script>
137
137
 
138
138
  <!-- Digital identity (1.1MB) -->
139
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv-gdaf.min.js"></script>
139
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv-gdaf.min.js"></script>
140
140
 
141
141
  <!-- Everything (885KB) -->
142
- <script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.bundle.js"></script>
142
+ <script src="https://unpkg.com/@smartledger/bsv@3.4.2/bsv.bundle.js"></script>
143
143
  ```
144
144
 
145
145
  ## ⚡ **Key Advantages**
146
146
 
147
- ### **Security First**
148
- - ✅ **Elliptic curve hardening** - Enhanced cryptographic security
149
- - ✅ **Production tested** - Battle-tested in real applications
150
- - ✅ **Comprehensive validation** - Built-in error checking
147
+ ### **Security helpers (opt-in)**
148
+ - ✅ **`bsv.SmartVerify` / `bsv.EllipticFixed`** - hardened verify with strict input validation and low-`s` canonicalization. Call explicitly; the default `signature.verify()` does **not** route through them. See [README › Security](../../README.md#-security).
149
+ - ✅ **Pinned dependencies** - `elliptic@6.6.1` (upstream-patched), `bn.js@4.11.9`, `bs58@4.0.1`
150
+ - ✅ **Comprehensive validation** - Built-in error checking and 534+ mocha tests
151
151
 
152
152
  ### **Developer Experience**
153
153
  - ✅ **Zero breaking changes** - Drop-in replacement for bsv@1.5.6
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Seamless upgrade path with zero breaking changes**
4
4
 
5
- SmartLedger-BSV is designed as a **100% backward-compatible** drop-in replacement for bsv@1.5.6. Your existing code will work unchanged while gaining access to enhanced security and powerful new features.
5
+ SmartLedger-BSV is designed as a **100% backward-compatible** drop-in replacement for bsv@1.5.6. Your existing code will work unchanged while gaining access to optional hardening helpers and powerful new features.
6
6
 
7
7
  ## 🔄 **Instant Migration (30 seconds)**
8
8
 
@@ -73,13 +73,19 @@ const hdKey = bsv.HDPrivateKey.fromSeed(mnemonic.toSeed());
73
73
 
74
74
  ## 🚀 **What You Gain (No Code Changes Required)**
75
75
 
76
- ### **Enhanced Security**
76
+ ### **Optional hardening helpers (opt-in)**
77
77
  ```javascript
78
- // Same API, enhanced security under the hood
79
- const privateKey = new bsv.PrivateKey(); // Now with hardened elliptic curves
80
- const signature = privateKey.sign(hash); // Enhanced cryptographic operations
78
+ // Standard API behaves identically to bsv@1.5.6
79
+ const privateKey = new bsv.PrivateKey();
80
+ const signature = privateKey.sign(hash);
81
+
82
+ // Opt-in: stricter verification helpers that reject malformed signatures
83
+ // (r=0, s=0, r>=n, s>=n) and canonicalize s to the low half. Call explicitly.
84
+ const ok = bsv.SmartVerify.smartVerify(msgHashBuffer, derSigBuffer, publicKey);
81
85
  ```
82
86
 
87
+ > **Note:** the standard `signature.verify()` / `transaction.verify()` / `Message().verify()` paths in this library use BSV's own pure-JS ECDSA and are **not** routed through `SmartVerify` or `EllipticFixed` by default. See the [Security section in the README](../../README.md#-security) for details on what's opt-in vs. on by default.
88
+
83
89
  ### **Improved Performance**
84
90
  - ✅ **Optimized operations** - Faster transaction creation and signing
85
91
  - ✅ **Better memory usage** - Reduced memory footprint
package/index.js CHANGED
@@ -29,7 +29,15 @@ bsv.versionGuard = function (version) {
29
29
  bsv.versionGuard(global._bsv)
30
30
  global._bsv = bsv.version
31
31
 
32
- // SmartLedger security information
32
+ // SmartLedger security information.
33
+ // NOTE: these properties advertise that hardening *helpers* ship in this
34
+ // package (`bsv.SmartVerify`, `bsv.EllipticFixed`, `signature.toCanonical()`,
35
+ // etc.). They are NOT automatically wired into the default verify path:
36
+ // `transaction.verify()`, `signature.verify()`, and `Message().verify()` go
37
+ // through `lib/crypto/ecdsa.js`, which uses BSV's own pure-JS ECDSA and does
38
+ // not route through `SmartVerify` or `EllipticFixed`. To get the strict
39
+ // input validation, call `bsv.SmartVerify.smartVerify(...)` explicitly.
40
+ // See the Security section of README.md.
33
41
  bsv.isHardened = true
34
42
  bsv.hardenedBy = 'SmartLedger'
35
43
  bsv.baseVersion = 'v1.5.6'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartledger/bsv",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "🚀 Complete Bitcoin SV development framework with legally-recognizable DID:web + W3C VC-JWT toolkit, Legal Token Protocol (LTP), Global Digital Attestation Framework (GDAF), StatusList2021 revocation, and 16 flexible loading options. Standards-based credentials with ES256/ES256K support, on-chain BSV anchoring, and comprehensive Bitcoin SV API. Perfect for legal tokens, verifiable credentials, DeFi, smart contracts, and secure Bitcoin applications.",
5
5
  "author": "SmartLedger Technology <hello@smartledger.technology> (https://smartledger.technology)",
6
6
  "homepage": "https://github.com/codenlighten/smartledger-bsv#readme",