bakaoh / solidity-rlp-encode

RLP encoding in Solidity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

solidity-rlp-encode

RLPEncode is an RLP encoding library written in Solidity. The original author of this library is Bakaoh. This repository cleans up the original code and adds tests for the standard RLP encoding test cases.

TODO

  • Fix support for ABIEncoderV2.
  • Add tests for encodeList.
  • See if there are any obvious optimizations.
  • Add documentation.

Requirements

This repository hosts a Truffle project. Install truffle globally via NPM:

$ npm install -g truffle

Testing

You can test this code by running:

$ truffle test

About

RLP encoding in Solidity

License:MIT License


Languages

Language:Solidity 72.3%Language:JavaScript 27.7%