@qevm/keccak256 5.7.0 → 5.7.1
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/README.md +4 -6
- package/lib/_version.d.ts +1 -1
- package/lib/_version.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +28 -24
- package/src.ts/_version.ts +1 -1
- package/src.ts/index.ts +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
KECCAK256 Hash Function
|
|
2
2
|
=======================
|
|
3
3
|
|
|
4
|
-
This sub-module is part of the [ethers project](https://github.com/ethers-io/ethers.js).
|
|
4
|
+
This sub-module is part of the qethers, a fork of [ethers project](https://github.com/ethers-io/ethers.js).
|
|
5
5
|
|
|
6
|
-
It is responsible for the identify function (i.e. KECCAK256) use in
|
|
7
|
-
|
|
8
|
-
For more information, see the [documentation](https://docs.ethers.io/v5/api/utils/hashing/#utils-keccak256).
|
|
6
|
+
It is responsible for the identify function (i.e. KECCAK256) use in QEVM.
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
Importing
|
|
12
10
|
---------
|
|
13
11
|
|
|
14
|
-
Most users will prefer to use the [umbrella package](https://www.npmjs.com/package/
|
|
12
|
+
Most users will prefer to use the [umbrella package](https://www.npmjs.com/package/@qevm/qethers),
|
|
15
13
|
but for those with more specific needs, individual components can be imported.
|
|
16
14
|
|
|
17
15
|
```javascript
|
|
@@ -19,7 +17,7 @@ const {
|
|
|
19
17
|
|
|
20
18
|
keccak256
|
|
21
19
|
|
|
22
|
-
} = require("@
|
|
20
|
+
} = require("@qevm/keccak256");
|
|
23
21
|
```
|
|
24
22
|
|
|
25
23
|
|
package/lib/_version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "keccak256/5.7.
|
|
1
|
+
export declare const version = "keccak256/5.7.1";
|
|
2
2
|
//# sourceMappingURL=_version.d.ts.map
|
package/lib/_version.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -7,6 +7,6 @@ exports.keccak256 = keccak256;
|
|
|
7
7
|
const js_sha3_1 = __importDefault(require("js-sha3"));
|
|
8
8
|
const bytes_1 = require("@qevm/bytes");
|
|
9
9
|
function keccak256(data) {
|
|
10
|
-
return
|
|
10
|
+
return "0x" + js_sha3_1.default.keccak_256((0, bytes_1.arrayify)(data));
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"qethers"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
"contributors": [
|
|
3
|
+
"Eugene Kuleshov <kulevgen32@gmail.com>",
|
|
4
|
+
"Richard Moore <me@ricmoo.com>"
|
|
5
|
+
],
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@qevm/bytes": "^5.7.2",
|
|
8
|
+
"js-sha3": "0.8.0"
|
|
9
|
+
},
|
|
10
|
+
"description": "The keccak256 hash function for qethers.",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"QuantumEVM",
|
|
13
|
+
"QEVM",
|
|
14
|
+
"qethers"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"main": "./lib/index.js",
|
|
18
|
+
"module": "./lib.esm/index.js",
|
|
19
|
+
"name": "@qevm/keccak256",
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"tarballHash": "0x37a7d1dd604198317d0d61c892bbdcff7f8c88420f5e6f5dd9c73c2dc0de026a",
|
|
28
|
+
"types": "./lib/index.d.ts",
|
|
29
|
+
"version": "5.7.1"
|
|
26
30
|
}
|
package/src.ts/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "keccak256/5.7.
|
|
1
|
+
export const version = "keccak256/5.7.1";
|
package/src.ts/index.ts
CHANGED