Latest 1.0.7
License MIT
Platforms ios 11.0, requires ARC
Frameworks Foundation


Objective-C implementation of RLP (Recursive Length Prefix).

This implementation is faster than most other implementations because it only allocates one buffer per encode operation instead of recursively concatenating smaller buffers.

While encode can handle NSString and NSData, decode only returns NSData.
You must use ABI to interpet the types.
ABI support would be appreciated; please submit a pull request.


pod 'RLP-ObjC'


#import <rlp.h>

NSData *encoded = rlp_encode(@[ @"cat", @(0) ]);
NSArray *decoded = rlp_decode(encoded);

Build with Makefile

  • make: incrementally build the things

  • make again: rebuild the things

  • make clean: remove all build products

  • make check: incrementally run the tests

  • make distcheck: rerun all the tests

Latest podspec

    "name": "RLP-ObjC",
    "version": "1.0.7",
    "summary": "Ethereum RLP in Objective-C",
    "description": "Encodes and decodes nested objects for Ethereum",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "William Morriss": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.7"
    "platforms": {
        "ios": "11.0"
    "source_files": [
    "public_header_files": "include/*",
    "requires_arc": true,
    "frameworks": "Foundation",
    "user_target_xcconfig": {
        "HEADER_SEARCH_PATHS": ""${PODS_ROOT}/RLP-ObjC/include""
    "pod_target_xcconfig": {
        "HEADER_SEARCH_PATHS": ""${PODS_ROOT}/RLP-ObjC/include""

Pin It on Pinterest

Share This