@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 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 Ethereum.
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/ethers),
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("@ethersproject/keccak256");
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.0";
1
+ export declare const version = "keccak256/5.7.1";
2
2
  //# sourceMappingURL=_version.d.ts.map
package/lib/_version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "keccak256/5.7.0";
4
+ exports.version = "keccak256/5.7.1";
5
5
  //# sourceMappingURL=_version.js.map
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 '0x' + js_sha3_1.default.keccak_256((0, bytes_1.arrayify)(data));
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
- "author": "Eugene Kuleshov",
3
- "dependencies": {
4
- "@qevm/bytes": "5.7.1",
5
- "js-sha3": "0.8.0"
6
- },
7
- "description": "The keccak256 hash function for qethers.",
8
- "keywords": [
9
- "QuantumEVM",
10
- "qethers"
11
- ],
12
- "license": "MIT",
13
- "main": "./lib/index.js",
14
- "module": "./lib.esm/index.js",
15
- "name": "@qevm/keccak256",
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "scripts": {
20
- "test": "echo \"Error: no test specified\" && exit 1"
21
- },
22
- "sideEffects": false,
23
- "tarballHash": "0x37a7d1dd604198317d0d61c892bbdcff7f8c88420f5e6f5dd9c73c2dc0de026a",
24
- "types": "./lib/index.d.ts",
25
- "version": "5.7.0"
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
  }
@@ -1 +1 @@
1
- export const version = "keccak256/5.7.0";
1
+ export const version = "keccak256/5.7.1";
package/src.ts/index.ts CHANGED
@@ -5,5 +5,5 @@ import sha3 from "js-sha3";
5
5
  import { arrayify, BytesLike } from "@qevm/bytes";
6
6
 
7
7
  export function keccak256(data: BytesLike): string {
8
- return '0x' + sha3.keccak_256(arrayify(data));
8
+ return "0x" + sha3.keccak_256(arrayify(data));
9
9
  }