Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 9396416

Browse files
committed
Removed deprecated sha3-named constants and methods
1 parent d85a78f commit 9396416

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

index.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,42 +24,36 @@ exports.TWO_POW256 = new BN('100000000000000000000000000000000000000000000000000
2424
* @var {String} KECCAK256_NULL_S
2525
*/
2626
exports.KECCAK256_NULL_S = 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
27-
exports.SHA3_NULL_S = exports.KECCAK256_NULL_S
2827

2928
/**
3029
* Keccak-256 hash of null (a ```Buffer```)
3130
* @var {Buffer} KECCAK256_NULL
3231
*/
3332
exports.KECCAK256_NULL = Buffer.from(exports.KECCAK256_NULL_S, 'hex')
34-
exports.SHA3_NULL = exports.KECCAK256_NULL
3533

3634
/**
3735
* Keccak-256 of an RLP of an empty array (a ```String```)
3836
* @var {String} KECCAK256_RLP_ARRAY_S
3937
*/
4038
exports.KECCAK256_RLP_ARRAY_S = '1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'
41-
exports.SHA3_RLP_ARRAY_S = exports.KECCAK256_RLP_ARRAY_S
4239

4340
/**
4441
* Keccak-256 of an RLP of an empty array (a ```Buffer```)
4542
* @var {Buffer} KECCAK256_RLP_ARRAY
4643
*/
4744
exports.KECCAK256_RLP_ARRAY = Buffer.from(exports.KECCAK256_RLP_ARRAY_S, 'hex')
48-
exports.SHA3_RLP_ARRAY = exports.KECCAK256_RLP_ARRAY
4945

5046
/**
5147
* Keccak-256 hash of the RLP of null (a ```String```)
5248
* @var {String} KECCAK256_RLP_S
5349
*/
5450
exports.KECCAK256_RLP_S = '56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'
55-
exports.SHA3_RLP_S = exports.KECCAK256_RLP_S
5651

5752
/**
5853
* Keccak-256 hash of the RLP of null (a ```Buffer```)
5954
* @var {Buffer} KECCAK256_RLP
6055
*/
6156
exports.KECCAK256_RLP = Buffer.from(exports.KECCAK256_RLP_S, 'hex')
62-
exports.SHA3_RLP = exports.KECCAK256_RLP
6357

6458
/**
6559
* [`BN`](https://github.com/indutny/bn.js)
@@ -242,14 +236,6 @@ exports.keccak256 = function (a) {
242236
return exports.keccak(a)
243237
}
244238

245-
/**
246-
* Creates SHA-3 (Keccak) hash of the input [OBSOLETE]
247-
* @param {Buffer|Array|String|Number} a the input data
248-
* @param {Number} [bits=256] the SHA-3 width
249-
* @return {Buffer}
250-
*/
251-
exports.sha3 = exports.keccak
252-
253239
/**
254240
* Creates SHA256 hash of the input
255241
* @param {Buffer|Array|String|Number} a the input data

0 commit comments

Comments
 (0)