23 lines
625 B
Markdown
23 lines
625 B
Markdown
# @polkadot/util-rlp
|
|
|
|
Utility methods for encoding and decoding [Ethereum RLP structures](https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP). This is port adapted from the original [EthereumJS RLP](https://github.com/ethereumjs/rlp/blob/0ce09db81fc303fcee593f7cc094ba44015f9b92.js) implementation to cater for `Uint8Array` outputs (instead of `Buffer`) in addition to typings.
|
|
|
|
## Usage
|
|
|
|
Installation -
|
|
|
|
```
|
|
yarn add @polkadot/util-rlp
|
|
```
|
|
|
|
Functions can be imported as follows:
|
|
|
|
```js
|
|
import { decode } from '@polkadot/util-rlp';
|
|
import { encode } from '@polkadot/util-rlp';
|
|
```
|
|
|
|
## Utilities
|
|
|
|
[Utilities](SUMMARY.md)
|