Socket
Socket
Sign inDemoInstall

@ethersproject/rlp

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/rlp

Recursive-Length Prefix (RLP) coder.


Version published
Weekly downloads
706K
decreased by-15.99%
Maintainers
1
Weekly downloads
 
Created

What is @ethersproject/rlp?

@ethersproject/rlp is a package from the ethers.js library that provides functionality for encoding and decoding data using Recursive Length Prefix (RLP) encoding, which is commonly used in Ethereum for serializing data.

What are @ethersproject/rlp's main functionalities?

RLP Encoding

This feature allows you to encode an array of data into RLP format. In this example, the array ['hello', 'world'] is encoded into its RLP representation.

const { RLP } = require('@ethersproject/rlp');
const encoded = RLP.encode(['hello', 'world']);
console.log(encoded);

RLP Decoding

This feature allows you to decode RLP-encoded data back into its original form. In this example, the RLP-encoded string '0xc68468656c6c6f83676f6f64' is decoded back into the array ['hello', 'world'].

const { RLP } = require('@ethersproject/rlp');
const encoded = '0xc68468656c6c6f83676f6f64';
const decoded = RLP.decode(encoded);
console.log(decoded);

Other packages similar to @ethersproject/rlp

Keywords

FAQs

Package last updated on 08 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc