Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Node+Browser-friendly fork of rlp with following changes:
Buffer
usage with Uint8Array
- which is a superclass of Buffer
,
which makes rlp browser-friendlyInstall via:
npm install micro-rlp
Recursive Length Prefix Encoding for node.js.
npm install rlp
install with -g
if you want to use the cli.
var RLP = require('rlp')
var assert = require('assert')
var nestedList = [[], [[]], [[], [[]]]]
var encoded = RLP.encode(nestedList)
var decoded = RLP.decode(encoded)
assert.deepEqual(nestedList, decoded)
rlp.encode(plain)
- RLP encodes an Array
, Buffer
or String
and returns a Buffer
.
rlp.decode(encoded, [skipRemainderCheck=false])
- Decodes an RLP encoded Buffer
, Array
or String
and returns a Buffer
or an Array
of Buffers
. If skipRemainderCheck
is enabled, rlp
will just decode the first rlp sequence in the buffer. By default, it would throw an error if there are more bytes in Buffer than used by rlp sequence.
rlp decode <hex string>
rlp encode <json String>
Test uses mocha. To run tests and linting: npm test
. To auto fix linting problems use: npm run test:fix
.
Install dev dependencies
npm install
Run
npm run coverage
The results are at
coverage/lcov-report/index.html
See our organizational documentation for an introduction to EthereumJS
as well as information on current standards and best practices.
If you want to join for work or do improvements on the libraries have a look at our contribution guidelines.
FAQs
Better RLP: 0 deps + with browser support (Recursive Length Prefix)
The npm package micro-rlp receives a total of 2 weekly downloads. As such, micro-rlp popularity was classified as not popular.
We found that micro-rlp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.