ethereumjs-util
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -12,9 +12,9 @@ const SHA3 = require('sha3') | ||
// hex string of SHA3-256 hash of `null` | ||
exports.SHA3_NULL = 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470' | ||
exports.SHA3_NULL = new Buffer('c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470', 'hex') | ||
// SHA3-256 hash of the rlp of [] | ||
exports.SHA3_RLP_ARRAY = '1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347' | ||
exports.SHA3_RLP_ARRAY = new Buffer('1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347', 'hex') | ||
// SHA3-256 hash of the rlp of `null` | ||
exports.SHA3_RLP = '56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421' | ||
exports.SHA3_RLP = new Buffer('56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421', 'hex') | ||
@@ -292,3 +292,3 @@ exports.BN = BN | ||
assert(field.length >= v.length) | ||
} else if (!(field.empty && v.length === 0) && field.length) { | ||
} else if (!(field.allowZero && v.length === 0) && field.length) { | ||
assert(field.length === v.length, 'The field ' + field.name + 'must have byte length of ' + field.length) | ||
@@ -295,0 +295,0 @@ } |
{ | ||
"name": "ethereumjs-util", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "a collection of utility functions for Ethereum", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"elliptic": "^5.0.0", | ||
"rlp": "^1.1.2", | ||
"rlp": "^2.0.0", | ||
"sha3": "^1.1.0" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57202
+ Addedbn.js@5.2.1(transitive)
+ Addedrlp@2.2.7(transitive)
- Removedrlp@1.1.2(transitive)
Updatedrlp@^2.0.0