@l.x/hashcash-native 1.0.3 → 1.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/LICENSE +122 -0
- package/lib/benchmark.js +1 -1
- package/lib/specs/Hashcash.nitro.d.ts.map +1 -1
- package/package.json +22 -22
package/LICENSE
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Lux Ecosystem License
|
|
2
|
+
Version 1.2, December 2025
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2020-2025 Lux Industries Inc.
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
TECHNOLOGY PORTFOLIO - PATENT APPLICATIONS PLANNED
|
|
8
|
+
Contact: licensing@lux.network
|
|
9
|
+
|
|
10
|
+
================================================================================
|
|
11
|
+
TERMS AND CONDITIONS
|
|
12
|
+
================================================================================
|
|
13
|
+
|
|
14
|
+
1. DEFINITIONS
|
|
15
|
+
|
|
16
|
+
"Lux Primary Network" means the official Lux blockchain with Network ID=1
|
|
17
|
+
and EVM Chain ID=96369.
|
|
18
|
+
|
|
19
|
+
"Authorized Network" means the Lux Primary Network, official testnets/devnets,
|
|
20
|
+
and any L1/L2/L3 chain descending from the Lux Primary Network.
|
|
21
|
+
|
|
22
|
+
"Descending Chain" means an L1/L2/L3 chain built on, anchored to, or deriving
|
|
23
|
+
security from the Lux Primary Network or its authorized testnets.
|
|
24
|
+
|
|
25
|
+
"Research Use" means non-commercial academic research, education, personal
|
|
26
|
+
study, or evaluation purposes.
|
|
27
|
+
|
|
28
|
+
"Commercial Use" means any use in connection with a product or service
|
|
29
|
+
offered for sale or fee, internal use by a for-profit entity, or any use
|
|
30
|
+
to generate revenue.
|
|
31
|
+
|
|
32
|
+
2. GRANT OF LICENSE
|
|
33
|
+
|
|
34
|
+
Subject to these terms, Lux Industries Inc grants you a non-exclusive,
|
|
35
|
+
royalty-free license to:
|
|
36
|
+
|
|
37
|
+
(a) Use for Research Use without restriction;
|
|
38
|
+
|
|
39
|
+
(b) Operate on the Lux Primary Network (Network ID=1, EVM Chain ID=96369);
|
|
40
|
+
|
|
41
|
+
(c) Operate on official Lux testnets and devnets;
|
|
42
|
+
|
|
43
|
+
(d) Operate L1/L2/L3 chains descending from the Lux Primary Network;
|
|
44
|
+
|
|
45
|
+
(e) Build applications within the Lux ecosystem;
|
|
46
|
+
|
|
47
|
+
(f) Contribute improvements back to the original repositories.
|
|
48
|
+
|
|
49
|
+
3. RESTRICTIONS
|
|
50
|
+
|
|
51
|
+
Without a commercial license from Lux Industries Inc, you may NOT:
|
|
52
|
+
|
|
53
|
+
(a) Fork the Lux Network or any Lux software;
|
|
54
|
+
|
|
55
|
+
(b) Create competing networks not descending from Lux Primary Network;
|
|
56
|
+
|
|
57
|
+
(c) Use for Commercial Use outside the Lux ecosystem;
|
|
58
|
+
|
|
59
|
+
(d) Sublicense or transfer rights outside the Lux ecosystem;
|
|
60
|
+
|
|
61
|
+
(e) Use to create competing blockchain networks, exchanges, custody
|
|
62
|
+
services, or cryptographic systems outside the Lux ecosystem.
|
|
63
|
+
|
|
64
|
+
4. NO FORKS POLICY
|
|
65
|
+
|
|
66
|
+
Lux Industries Inc maintains ZERO TOLERANCE for unauthorized forks.
|
|
67
|
+
Any fork or deployment on an unauthorized network constitutes:
|
|
68
|
+
|
|
69
|
+
(a) Breach of this license;
|
|
70
|
+
(b) Grounds for immediate legal action.
|
|
71
|
+
|
|
72
|
+
5. RIGHTS RESERVATION
|
|
73
|
+
|
|
74
|
+
All rights not explicitly granted are reserved by Lux Industries Inc.
|
|
75
|
+
|
|
76
|
+
We plan to apply for patent protection for the technology in this
|
|
77
|
+
repository. Any implementation outside the Lux ecosystem may require
|
|
78
|
+
a separate commercial license.
|
|
79
|
+
|
|
80
|
+
6. DISCLAIMER OF WARRANTY
|
|
81
|
+
|
|
82
|
+
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
83
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
84
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
85
|
+
|
|
86
|
+
7. LIMITATION OF LIABILITY
|
|
87
|
+
|
|
88
|
+
IN NO EVENT SHALL LUX INDUSTRIES INC BE LIABLE FOR ANY CLAIM, DAMAGES
|
|
89
|
+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
90
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE.
|
|
91
|
+
|
|
92
|
+
8. TERMINATION
|
|
93
|
+
|
|
94
|
+
This license terminates immediately upon any breach, including but not
|
|
95
|
+
limited to deployment on unauthorized networks or creation of forks.
|
|
96
|
+
|
|
97
|
+
9. GOVERNING LAW
|
|
98
|
+
|
|
99
|
+
This License shall be governed by the laws of the State of Delaware.
|
|
100
|
+
|
|
101
|
+
10. COMMERCIAL LICENSING
|
|
102
|
+
|
|
103
|
+
For commercial use outside the Lux ecosystem:
|
|
104
|
+
|
|
105
|
+
Lux Industries Inc.
|
|
106
|
+
Email: licensing@lux.network
|
|
107
|
+
Subject: Commercial License Request
|
|
108
|
+
|
|
109
|
+
================================================================================
|
|
110
|
+
TL;DR
|
|
111
|
+
================================================================================
|
|
112
|
+
|
|
113
|
+
- Research/academic use = OK
|
|
114
|
+
- Lux Primary Network (Network ID=1, Chain ID=96369) = OK
|
|
115
|
+
- L1/L2/L3 chains descending from Lux Primary Network = OK
|
|
116
|
+
- Commercial products outside Lux ecosystem = Contact licensing@lux.network
|
|
117
|
+
- Forks = Absolutely not
|
|
118
|
+
|
|
119
|
+
================================================================================
|
|
120
|
+
|
|
121
|
+
See LP-0012 for full licensing documentation:
|
|
122
|
+
https://github.com/luxfi/lps/blob/main/LPs/lp-0012-ecosystem-licensing.md
|
package/lib/benchmark.js
CHANGED
|
@@ -30,7 +30,7 @@ export async function benchmarkNative(difficulty) {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Run a single benchmark with the JS implementation
|
|
33
|
-
* Requires passing in the findProof function from @
|
|
33
|
+
* Requires passing in the findProof function from @l.x/sessions
|
|
34
34
|
*/
|
|
35
35
|
export async function benchmarkJS(difficulty, findProof) {
|
|
36
36
|
var _a, _b, _c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hashcash.nitro.d.ts","sourceRoot":"","sources":["../../src/specs/Hashcash.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAA;IAClB,
|
|
1
|
+
{"version":3,"file":"Hashcash.nitro.d.ts","sourceRoot":"","sources":["../../src/specs/Hashcash.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAA;IAClB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,mCAAmC;IACnC,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAA;IACf,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,iBAAiB,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,QACf,SAAQ,YAAY,CAAC;IACnB,GAAG,EAAE,OAAO,CAAA;IACZ,OAAO,EAAE,QAAQ,CAAA;CAClB,CAAC;IACF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;IAE5E;;;OAGG;IACH,MAAM,IAAI,IAAI,CAAA;CACf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@l.x/hashcash-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Native hashcash proof-of-work solver for React Native",
|
|
5
5
|
"author": "Lux Industries",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,24 +30,6 @@
|
|
|
30
30
|
"*.podspec",
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
|
-
"scripts": {
|
|
34
|
-
"postinstall": "tsc || exit 0;",
|
|
35
|
-
"typecheck": "nx typecheck hashcash-native",
|
|
36
|
-
"typecheck:tsgo": "nx typecheck:tsgo hashcash-native",
|
|
37
|
-
"build": "nx build hashcash-native",
|
|
38
|
-
"clean": "nx clean hashcash-native",
|
|
39
|
-
"lint": "nx lint hashcash-native",
|
|
40
|
-
"lint:fix": "nx lint:fix hashcash-native",
|
|
41
|
-
"lint:biome": "nx lint:biome hashcash-native",
|
|
42
|
-
"lint:biome:fix": "nx lint:biome:fix hashcash-native",
|
|
43
|
-
"lint:eslint": "nx lint:eslint hashcash-native",
|
|
44
|
-
"lint:eslint:fix": "nx lint:eslint:fix hashcash-native",
|
|
45
|
-
"check:deps:usage": "nx check:deps:usage hashcash-native",
|
|
46
|
-
"lint-ci": "nx lint-ci hashcash-native",
|
|
47
|
-
"specs": "nx specs hashcash-native",
|
|
48
|
-
"codegen": "nx codegen hashcash-native",
|
|
49
|
-
"codegen:clean": "nx codegen:clean hashcash-native"
|
|
50
|
-
},
|
|
51
33
|
"nx": {
|
|
52
34
|
"includedScripts": []
|
|
53
35
|
},
|
|
@@ -56,18 +38,36 @@
|
|
|
56
38
|
},
|
|
57
39
|
"devDependencies": {
|
|
58
40
|
"@typescript/native-preview": "7.0.0-dev.20260311.1",
|
|
59
|
-
"@luxfi/eslint-config": "workspace:^",
|
|
60
41
|
"eslint": "8.57.1",
|
|
61
42
|
"nitrogen": "0.31.10",
|
|
62
43
|
"react": "19.0.3",
|
|
63
44
|
"react-native": "0.79.5",
|
|
64
45
|
"react-native-nitro-modules": "0.31.10",
|
|
65
|
-
"typescript": "5.8.3"
|
|
46
|
+
"typescript": "5.8.3",
|
|
47
|
+
"@luxfi/eslint-config": "^1.0.6"
|
|
66
48
|
},
|
|
67
49
|
"peerDependencies": {
|
|
68
50
|
"react": ">=19.0.0",
|
|
69
51
|
"react-native": ">=0.79.0",
|
|
70
52
|
"react-native-nitro-modules": ">=0.31.0"
|
|
71
53
|
},
|
|
72
|
-
"private": false
|
|
54
|
+
"private": false,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"postinstall": "tsc || exit 0;",
|
|
57
|
+
"typecheck": "nx typecheck hashcash-native",
|
|
58
|
+
"typecheck:tsgo": "nx typecheck:tsgo hashcash-native",
|
|
59
|
+
"build": "nx build hashcash-native",
|
|
60
|
+
"clean": "nx clean hashcash-native",
|
|
61
|
+
"lint": "nx lint hashcash-native",
|
|
62
|
+
"lint:fix": "nx lint:fix hashcash-native",
|
|
63
|
+
"lint:biome": "nx lint:biome hashcash-native",
|
|
64
|
+
"lint:biome:fix": "nx lint:biome:fix hashcash-native",
|
|
65
|
+
"lint:eslint": "nx lint:eslint hashcash-native",
|
|
66
|
+
"lint:eslint:fix": "nx lint:eslint:fix hashcash-native",
|
|
67
|
+
"check:deps:usage": "nx check:deps:usage hashcash-native",
|
|
68
|
+
"lint-ci": "nx lint-ci hashcash-native",
|
|
69
|
+
"specs": "nx specs hashcash-native",
|
|
70
|
+
"codegen": "nx codegen hashcash-native",
|
|
71
|
+
"codegen:clean": "nx codegen:clean hashcash-native"
|
|
72
|
+
}
|
|
73
73
|
}
|