All Projects → ethereumjs → Rlp

ethereumjs / Rlp

Licence: mpl-2.0
Recursive Length Prefix Encoding in JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Rlp

Temporal
☄️ Temporal is an easy-to-use, enterprise-grade interface into distributed and decentralized storage
Stars: ✭ 202 (+117.2%)
Mutual labels:  ethereum, data
Vue Ethereum Ipfs
Distributed Application Starter: Vue front-end, Ethereum / IPFS Backend
Stars: ✭ 1,312 (+1310.75%)
Mutual labels:  ethereum
D3vue
A D3 Plugin for VueJS
Stars: ✭ 87 (-6.45%)
Mutual labels:  data
Pydap
A Python library implementing the Data Access Protocol (DAP, aka OPeNDAP or DODS).
Stars: ✭ 90 (-3.23%)
Mutual labels:  data
Paster
Pasting a text data from a clipboard directlly to Sketch text layers [Sketch plugin]
Stars: ✭ 88 (-5.38%)
Mutual labels:  data
Plasma Chamber
Plasma Chamber is a DApps development framework that guarantees security, scalability, and usability utilizing Plasma technology.
Stars: ✭ 91 (-2.15%)
Mutual labels:  ethereum
Openfintech
Opensource FinTech standards & payment provider data
Stars: ✭ 87 (-6.45%)
Mutual labels:  data
Deepblockchains
Deep Blockchains - reference implementation of Plasma, Stark, SMT and more
Stars: ✭ 93 (+0%)
Mutual labels:  ethereum
Jconv
Pure-JavaScript converter for Japanese character encodings.
Stars: ✭ 91 (-2.15%)
Mutual labels:  encoding
Encoding Wrapper
Collection of Go wrappers for Video encoding cloud providers (moved to @video-dev)
Stars: ✭ 90 (-3.23%)
Mutual labels:  encoding
Nitric
[ABANDONED] General-purpose data processing library. Mirror of https://gitlab.com/nitric/nitric
Stars: ✭ 90 (-3.23%)
Mutual labels:  data
Opensourcecontributors
Find all contributions for a user through the GitHub Archive
Stars: ✭ 88 (-5.38%)
Mutual labels:  data
Coincurve
Cross-platform Python bindings for libsecp256k1
Stars: ✭ 89 (-4.3%)
Mutual labels:  ethereum
Eltwallet
Non-custodial decentralized mobile wallet
Stars: ✭ 88 (-5.38%)
Mutual labels:  ethereum
Securify2
Securify v2.0
Stars: ✭ 92 (-1.08%)
Mutual labels:  ethereum
Rest Hooks
Delightful data fetching for React.
Stars: ✭ 1,276 (+1272.04%)
Mutual labels:  data
Svg To Geojson
Upload SVG, return GeoJSON.
Stars: ✭ 88 (-5.38%)
Mutual labels:  data
Cstc
CSTC is a Burp Suite extension that allows request/response modification using a GUI analogous to CyberChef
Stars: ✭ 91 (-2.15%)
Mutual labels:  encoding
Ml Pyxis
Tool for reading and writing datasets of tensors in a Lightning Memory-Mapped Database (LMDB). Designed to manage machine learning datasets with fast reading speeds.
Stars: ✭ 93 (+0%)
Mutual labels:  data
Binarykit
💾🔍🧮 BinaryKit helps you to break down binary data into bits and bytes, easily access specific parts and write data to binary.
Stars: ✭ 92 (-1.08%)
Mutual labels:  data

SYNOPSIS

NPM Package Actions Status Coverage Status Discord

Recursive Length Prefix Encoding for Node.js.

INSTALL

npm install rlp

install with -g if you want to use the cli.

USAGE

import * as assert from 'assert'
import * as rlp from 'rlp'

const nestedList = [[], [[]], [[], [[]]]]
const encoded = rlp.encode(nestedList)
const decoded = rlp.decode(encoded)
assert.deepEqual(nestedList, decoded)

API

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.

CLI

rlp decode <hex string>
rlp encode <json String>

TESTS

Test uses mocha. To run tests and linting: npm test. To auto fix linting problems use: npm run test:fix.

CODE COVERAGE

Install dev dependencies npm install

Run npm run coverage

The results are at coverage/lcov-report/index.html

EthereumJS

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].