Git Product home page Git Product logo

rlpvalue's People

Contributors

btcdrak avatar datgrog avatar fwolfst avatar isle2983 avatar jasonbcox avatar jgarzik avatar jmcorgan avatar jnewbery avatar jonasschnelli avatar karelbilek avatar kozyilmaz avatar laanwj avatar paveljanik avatar practicalswift avatar ryanofsky avatar theuni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rlpvalue's Issues

Request feature: Exemple Usage + possible bug: strings above 55 bytes not handle properly

I'm playing around your rlpvalue package in order to serialize an ethereum transaction.

  • The possible bug is related to the "Lorem ipsum..." exemple
RLPValue lorem("Lorem ipsum dolor sit amet, consectetur adipisicing elit");
std::string serialized_lorem = lorem.write();

for (size_t i = 0; i < lorem.size(); i++) {
    printf("\\x%.2x ", lorem.c_str()[i]);
}

It prints \xffffffb8 \x4c \x6f ... but should print \xb8 \x38 \x4c ... instead, it looks like rlpvalue does not handle properly strings with length above 55 bytes, see medium post (Ctrl+F and "Rule 2")

  • Also, how does your package handle integer serialization ?

NB: On my mac, I also had to install brew install argp-standalone before doing the installation to compile properly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.