@@ -24,42 +24,36 @@ exports.TWO_POW256 = new BN('100000000000000000000000000000000000000000000000000
2424 * @var {String} KECCAK256_NULL_S
2525 */
2626exports . 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 */
3332exports . 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 */
4038exports . 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 */
4744exports . 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 */
5450exports . 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 */
6156exports . 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