smartledger-bsv 3.3.3 → 3.3.5
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/CHANGELOG.md +50 -28
- package/README.md +55 -36
- package/bsv-covenant.min.js +6 -6
- package/bsv-gdaf.min.js +6 -6
- package/bsv-ltp.min.js +6 -6
- package/bsv-mnemonic.min.js +4 -4
- package/bsv-smartcontract.min.js +5 -5
- package/bsv.bundle.js +5 -5
- package/bsv.min.js +5 -5
- package/demos/README.md +188 -0
- package/demos/architecture_demo.js +247 -0
- package/demos/browser-test.html +1208 -0
- package/demos/bsv_wallet_demo.js +242 -0
- package/demos/complete_ltp_demo.js +511 -0
- package/demos/debug_tools_demo.js +87 -0
- package/demos/demo_features.js +123 -0
- package/demos/easy_interface_demo.js +109 -0
- package/demos/ecies_demo.js +182 -0
- package/demos/gdaf_core_test.js +131 -0
- package/demos/gdaf_demo.js +237 -0
- package/demos/ltp_demo.js +361 -0
- package/demos/ltp_primitives_demo.js +403 -0
- package/demos/message_demo.js +209 -0
- package/demos/preimage_separation_demo.js +383 -0
- package/demos/script_helper_demo.js +289 -0
- package/demos/security_demo.js +287 -0
- package/demos/shamir_demo.js +121 -0
- package/demos/simple_demo.js +204 -0
- package/demos/simple_p2pkh_demo.js +169 -0
- package/demos/simple_utxo_preimage_demo.js +196 -0
- package/demos/smart_contract_demo.html +1347 -0
- package/demos/smart_contract_demo.js +910 -0
- package/demos/utxo_generator_demo.js +244 -0
- package/demos/validation_pipeline_demo.js +155 -0
- package/demos/web3keys.html +740 -0
- package/docs/BUNDLE_UPDATE_SUMMARY.md +40 -0
- package/docs/DOCUMENTATION_REVIEW_REPORT.md +11 -11
- package/docs/FIX_CREATEHMAC_ISSUE.md +91 -0
- package/docs/MODULE_REFERENCE_COMPLETE.md +28 -28
- package/docs/SMARTLEDGER_BSV_USAGE_ANSWERS.md +477 -0
- package/docs/SMARTLEDGER_BSV_USAGE_EXAMPLES.js +372 -0
- package/docs/SMARTLEDGER_BSV_USAGE_GUIDE.md +555 -0
- package/docs/SMART_CONTRACT_DEVELOPMENT_GUIDE.md +1459 -0
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +2 -2
- package/docs/getting-started/INSTALLATION.md +25 -25
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/examples/complete_workflow_demo.js +783 -0
- package/examples/definitive_working_demo.js +261 -0
- package/examples/final_working_contracts.js +338 -0
- package/examples/smart_contract_templates.js +718 -0
- package/examples/working_smart_contracts.js +348 -0
- package/index.js +7 -0
- package/lib/browser-utxo-manager-es5.js +316 -0
- package/lib/browser-utxo-manager.js +533 -0
- package/lib/mnemonic/pbkdf2.browser.js +69 -0
- package/lib/mnemonic/pbkdf2.js +2 -68
- package/lib/mnemonic/pbkdf2.node.js +68 -0
- package/package.json +19 -8
- package/tests/browser-compatibility/README.md +35 -0
- package/tests/browser-compatibility/test-cdn-vs-local.html +186 -0
- package/tests/browser-compatibility/test-pbkdf2.html +51 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Bundle Update Summary - PBKDF2 createHmac Fix
|
|
2
|
+
|
|
3
|
+
## All Bundles Successfully Updated ✅
|
|
4
|
+
|
|
5
|
+
**Timestamp: October 31, 2025 06:06 AM**
|
|
6
|
+
|
|
7
|
+
### Core Bundles
|
|
8
|
+
- ✅ `bsv.min.js` (893 KB) - Main BSV library with fixed PBKDF2
|
|
9
|
+
- ✅ `bsv.bundle.js` (893 KB) - Complete bundle with all modules
|
|
10
|
+
- ✅ `bsv-mnemonic.min.js` (696 KB) - Standalone mnemonic module with fix
|
|
11
|
+
|
|
12
|
+
### Specialized Bundles (that include full BSV core)
|
|
13
|
+
- ✅ `bsv-smartcontract.min.js` (893 KB) - Smart contract module with BSV core
|
|
14
|
+
- ✅ `bsv-covenant.min.js` (869 KB) - Covenant builder with BSV core
|
|
15
|
+
- ✅ `bsv-ltp.min.js` (1.15 MB) - Legal Token Protocol with BSV core
|
|
16
|
+
- ✅ `bsv-gdaf.min.js` (1.15 MB) - Global Digital Attestation Framework with BSV core
|
|
17
|
+
|
|
18
|
+
### Lightweight Bundles (external BSV dependency)
|
|
19
|
+
- ✅ `bsv-ecies.min.js` (73 KB) - ECIES encryption (depends on external BSV)
|
|
20
|
+
- ✅ `bsv-message.min.js` (26 KB) - Message signing (depends on external BSV)
|
|
21
|
+
- ✅ `bsv-shamir.min.js` (441 KB) - Shamir secret sharing
|
|
22
|
+
- ✅ `bsv-script-helper.min.js` (26 KB) - Script utilities
|
|
23
|
+
- ✅ `bsv-security.min.js` (26 KB) - Security utilities
|
|
24
|
+
|
|
25
|
+
## Fix Applied To
|
|
26
|
+
- **pbkdf2.js** - Main entry with browser/node detection
|
|
27
|
+
- **pbkdf2.browser.js** - Browser-compatible implementation using BSV crypto
|
|
28
|
+
- **pbkdf2.node.js** - Original Node.js implementation
|
|
29
|
+
|
|
30
|
+
## Impact
|
|
31
|
+
- ❌ **Before:** CDN users get `createHmac is not a function` errors
|
|
32
|
+
- ✅ **After:** All mnemonic and HD wallet functionality works in browsers
|
|
33
|
+
|
|
34
|
+
## Next Steps
|
|
35
|
+
1. **Version bump** (if needed)
|
|
36
|
+
2. **Publish to npm** to update CDN
|
|
37
|
+
3. **Test CDN delivery** (jsdelivr/unpkg will auto-update)
|
|
38
|
+
|
|
39
|
+
## Verification
|
|
40
|
+
All bundles showing consistent Oct 31 06:06 timestamp confirms complete rebuild with the PBKDF2 fix included.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## 🔍 **Comprehensive Analysis of SmartLedger-BSV Documentation**
|
|
4
4
|
|
|
5
5
|
*Review Date: October 28, 2025*
|
|
6
|
-
*SmartLedger-BSV Version: v3.3.
|
|
6
|
+
*SmartLedger-BSV Version: v3.3.4*
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
|
|
31
31
|
| Document | Version Referenced | Actual Version | Status |
|
|
32
32
|
|----------|-------------------|----------------|---------|
|
|
33
|
-
| `README.md` | v3.2.1 | v3.3.
|
|
34
|
-
| `SMARTCONTRACT_INTEGRATION.md` | v3.2.1 | v3.3.
|
|
35
|
-
| `examples/README.md` | v3.1.1+ | v3.3.
|
|
36
|
-
| `ADVANCED_COVENANT_DEVELOPMENT.md` | v3.1.1+ | v3.3.
|
|
37
|
-
| `lib/smart_contract/EXAMPLES.md` | v3.2.0 | v3.3.
|
|
33
|
+
| `README.md` | v3.2.1 | v3.3.4 | ❌ Outdated |
|
|
34
|
+
| `SMARTCONTRACT_INTEGRATION.md` | v3.2.1 | v3.3.4 | ❌ Outdated |
|
|
35
|
+
| `examples/README.md` | v3.1.1+ | v3.3.4 | ❌ Outdated |
|
|
36
|
+
| `ADVANCED_COVENANT_DEVELOPMENT.md` | v3.1.1+ | v3.3.4 | ❌ Outdated |
|
|
37
|
+
| `lib/smart_contract/EXAMPLES.md` | v3.2.0 | v3.3.4 | ❌ Outdated |
|
|
38
38
|
|
|
39
|
-
**Recommendation**: Update all version references to v3.3.
|
|
39
|
+
**Recommendation**: Update all version references to v3.3.4
|
|
40
40
|
|
|
41
41
|
### 2. **Outdated API Usage Examples**
|
|
42
42
|
|
|
@@ -169,7 +169,7 @@ const pushtxCovenant = covenant.createAdvancedCovenant('pushtx', {...});
|
|
|
169
169
|
|
|
170
170
|
### **Phase 1: Critical Fixes (Immediate)**
|
|
171
171
|
|
|
172
|
-
1. **Update All Version References** → v3.3.
|
|
172
|
+
1. **Update All Version References** → v3.3.4
|
|
173
173
|
- `README.md`: Update CDN links and version badges
|
|
174
174
|
- `SMARTCONTRACT_INTEGRATION.md`: Update version references
|
|
175
175
|
- `examples/README.md`: Update version claims
|
|
@@ -221,7 +221,7 @@ const pushtxCovenant = covenant.createAdvancedCovenant('pushtx', {...});
|
|
|
221
221
|
### **High Priority Updates Needed:**
|
|
222
222
|
|
|
223
223
|
1. **`README.md`** - Major updates required
|
|
224
|
-
- Version references (v3.2.1 → v3.3.
|
|
224
|
+
- Version references (v3.2.1 → v3.3.4)
|
|
225
225
|
- API examples (createTestEnvironment → UTXOGenerator)
|
|
226
226
|
- File sizes and CDN links
|
|
227
227
|
- Add links to new SmartContract documentation
|
|
@@ -249,7 +249,7 @@ const pushtxCovenant = covenant.createAdvancedCovenant('pushtx', {...});
|
|
|
249
249
|
- Verify all examples work
|
|
250
250
|
|
|
251
251
|
### **Cross-Cutting Updates:**
|
|
252
|
-
- Global version update (v3.3.
|
|
252
|
+
- Global version update (v3.3.4)
|
|
253
253
|
- Consistent package naming
|
|
254
254
|
- Standardized error handling
|
|
255
255
|
- Updated cross-references
|
|
@@ -290,6 +290,6 @@ const pushtxCovenant = covenant.createAdvancedCovenant('pushtx', {...});
|
|
|
290
290
|
|
|
291
291
|
---
|
|
292
292
|
|
|
293
|
-
This review identifies **42 specific issues** across **15 documentation files**, with a clear prioritized plan for resolution. The documentation foundation is solid, but needs systematic updates to match the current v3.3.
|
|
293
|
+
This review identifies **42 specific issues** across **15 documentation files**, with a clear prioritized plan for resolution. The documentation foundation is solid, but needs systematic updates to match the current v3.3.4 implementation.
|
|
294
294
|
|
|
295
295
|
*Next Step: Begin Phase 1 critical fixes immediately to restore documentation accuracy.*
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# SmartLedger BSV: Browser createHmac Issue - Analysis & Solution
|
|
2
|
+
|
|
3
|
+
## Problem Summary
|
|
4
|
+
|
|
5
|
+
Users experiencing `createHmac is not a function` errors when using SmartLedger BSV CDN bundles in browser environments.
|
|
6
|
+
|
|
7
|
+
## Root Cause Analysis
|
|
8
|
+
|
|
9
|
+
The issue occurs in the PBKDF2 implementation used by the mnemonic module:
|
|
10
|
+
- **File:** `lib/mnemonic/pbkdf2.js`
|
|
11
|
+
- **Problem:** Direct usage of Node.js `crypto.createHmac()` which doesn't exist in browsers
|
|
12
|
+
- **Code snippet causing issue:**
|
|
13
|
+
```javascript
|
|
14
|
+
U = crypto.createHmac('sha512', key).update(block1).digest()
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Solution Implemented
|
|
18
|
+
|
|
19
|
+
### 1. Browser/Node.js Split Pattern
|
|
20
|
+
Created separate implementations following the existing BSV pattern:
|
|
21
|
+
- `pbkdf2.js` - Main entry point with browser/node detection
|
|
22
|
+
- `pbkdf2.node.js` - Original Node.js implementation
|
|
23
|
+
- `pbkdf2.browser.js` - New browser-compatible implementation
|
|
24
|
+
|
|
25
|
+
### 2. Browser-Compatible PBKDF2
|
|
26
|
+
The browser version uses BSV's existing crypto modules:
|
|
27
|
+
- Replaced `crypto.createHmac('sha512', key)` with `Hash.sha512hmac(data, key)`
|
|
28
|
+
- Uses BSV's `Hash.sha512hmac()` which is already browser-compatible
|
|
29
|
+
- Maintains identical functionality and API
|
|
30
|
+
|
|
31
|
+
### 3. Updated Bundle Builds
|
|
32
|
+
Rebuilt the following bundles with the fix:
|
|
33
|
+
- `bsv-mnemonic.min.js` - Standalone mnemonic module
|
|
34
|
+
- `bsv.min.js` - Main BSV library
|
|
35
|
+
- `bsv.bundle.js` - Complete bundle
|
|
36
|
+
|
|
37
|
+
## Files Modified
|
|
38
|
+
|
|
39
|
+
1. **lib/mnemonic/pbkdf2.js** - Changed to browser/node split
|
|
40
|
+
2. **lib/mnemonic/pbkdf2.node.js** - Original Node.js implementation
|
|
41
|
+
3. **lib/mnemonic/pbkdf2.browser.js** - New browser implementation
|
|
42
|
+
4. **Generated bundles** - Rebuilt with fixes
|
|
43
|
+
|
|
44
|
+
## Testing
|
|
45
|
+
|
|
46
|
+
Created test files to verify the fix:
|
|
47
|
+
- `test-pbkdf2.html` - Simple PBKDF2 functionality test
|
|
48
|
+
- `test-cdn-vs-local.html` - CDN vs local comparison test
|
|
49
|
+
- Updated `demos/web3keys.html` with diagnostic tools
|
|
50
|
+
|
|
51
|
+
## What CDN Users Will Experience
|
|
52
|
+
|
|
53
|
+
### Before Fix (Current CDN v3.3.4):
|
|
54
|
+
- ❌ `createHmac is not a function` errors
|
|
55
|
+
- ❌ Cannot generate mnemonics
|
|
56
|
+
- ❌ Cannot derive HD wallet keys
|
|
57
|
+
|
|
58
|
+
### After Fix (Next CDN Release):
|
|
59
|
+
- ✅ Mnemonic generation works in browsers
|
|
60
|
+
- ✅ HD wallet derivation works
|
|
61
|
+
- ✅ Full browser compatibility
|
|
62
|
+
|
|
63
|
+
## Next Steps for CDN Distribution
|
|
64
|
+
|
|
65
|
+
1. **Publish Updated Package:** Increment version and publish to npm
|
|
66
|
+
2. **Verify CDN Updates:** Ensure jsdelivr/unpkg reflect the new bundles
|
|
67
|
+
3. **Update Documentation:** Add browser compatibility notes
|
|
68
|
+
4. **Notify Users:** Announce the fix for the createHmac issue
|
|
69
|
+
|
|
70
|
+
## Technical Details
|
|
71
|
+
|
|
72
|
+
The fix leverages BSV's existing crypto infrastructure:
|
|
73
|
+
- `Hash.sha512hmac(data, key)` replaces `crypto.createHmac('sha512', key).update(data).digest()`
|
|
74
|
+
- Uses `hash.js` library under the hood (already included)
|
|
75
|
+
- Maintains cryptographic correctness and security
|
|
76
|
+
- Zero breaking changes to the API
|
|
77
|
+
|
|
78
|
+
## Verification Commands
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Rebuild all bundles
|
|
82
|
+
npm run build-mnemonic
|
|
83
|
+
npm run build-bsv
|
|
84
|
+
npm run build-bundle
|
|
85
|
+
|
|
86
|
+
# Test in browser
|
|
87
|
+
# Open test-cdn-vs-local.html in browser
|
|
88
|
+
# Should show CDN failing, local working
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This fix resolves the browser compatibility issue while maintaining full Node.js functionality.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## 🔍 **Actual vs Documented Module Analysis**
|
|
4
4
|
|
|
5
5
|
*Analysis Date: October 28, 2025*
|
|
6
|
-
*SmartLedger-BSV Version: v3.3.
|
|
6
|
+
*SmartLedger-BSV Version: v3.3.4*
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -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.
|
|
58
|
+
- **CDN**: `unpkg.com/@smartledger/bsv@3.3.4/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.
|
|
64
|
+
- **CDN**: `unpkg.com/@smartledger/bsv@3.3.4/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.
|
|
70
|
+
- **CDN**: `unpkg.com/@smartledger/bsv@3.3.4/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.
|
|
86
|
-
| **bsv.bundle.js** | 885KB | Everything in one file | `unpkg.com/@smartledger/bsv@3.3.
|
|
87
|
-
| **bsv-smartcontract.min.js** | 451KB | Covenant development | `unpkg.com/@smartledger/bsv@3.3.
|
|
88
|
-
| **bsv-covenant.min.js** | 32KB | Covenant operations | `unpkg.com/@smartledger/bsv@3.3.
|
|
89
|
-
| **bsv-script-helper.min.js** | 27KB | Custom script tools | `unpkg.com/@smartledger/bsv@3.3.
|
|
90
|
-
| **bsv-security.min.js** | 290KB | Security enhancements | `unpkg.com/@smartledger/bsv@3.3.
|
|
91
|
-
| **bsv-ecies.min.js** | 71KB | Encryption | `unpkg.com/@smartledger/bsv@3.3.
|
|
92
|
-
| **bsv-message.min.js** | 26KB | Message signing | `unpkg.com/@smartledger/bsv@3.3.
|
|
93
|
-
| **bsv-mnemonic.min.js** | 670KB | HD wallets | `unpkg.com/@smartledger/bsv@3.3.
|
|
94
|
-
| **🆕 bsv-shamir.min.js** | 433KB | **Secret sharing** | `unpkg.com/@smartledger/bsv@3.3.
|
|
95
|
-
| **🆕 bsv-gdaf.min.js** | 604KB | **Digital attestation** | `unpkg.com/@smartledger/bsv@3.3.
|
|
96
|
-
| **🆕 bsv-ltp.min.js** | 817KB | **Legal tokens** | `unpkg.com/@smartledger/bsv@3.3.
|
|
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` |
|
|
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.
|
|
105
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
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>
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
#### **2. Smart Contract Development (932KB)**
|
|
109
109
|
```html
|
|
110
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
111
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
112
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
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>
|
|
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.
|
|
118
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
119
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
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>
|
|
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.
|
|
137
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
138
|
-
<script src="https://unpkg.com/@smartledger/bsv@3.3.
|
|
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>
|
|
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.
|
|
150
|
+
<script src="https://unpkg.com/@smartledger/bsv@3.3.4/bsv.bundle.js"></script>
|
|
151
151
|
<script>
|
|
152
152
|
// Everything available immediately
|
|
153
153
|
const shares = bsv.splitSecret('secret', 5, 3);
|