Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    void4
    @void4
    Do I interpret it correctly that you will build your own Kong-style API middleware?
    Referring to: "We're building etherapis on top of geth as a library"
    Péter Szilágyi
    @karalabe
    For the first round, I'd say yes, though it would be a single node (no cross node communication until whisper srrives)
    void4
    @void4
    Nice :D
    Péter Szilágyi
    @karalabe
    I think we just want to get something out the door as soon as we can without complicating with too much infrastructure, then get some feedback on what we did wrong
    :D
    make is a "consumer" driven project
    just need to get the first working prototype done :D
    void4
    @void4
    The Homestead release will mark the beginning of the most exciting time of Ethereum development. I can't wait for Whisper and Swarm! In the meantime I will have a look at alternative approaches - although I think yours is the most promising.
    Jeffrey Wilcke
    @obscuren
    Whisper and swarm together with ethereal will bring true decentralization to the web
    ethereum * damn autocorrect
    Péter Szilágyi
    @karalabe
    lol :P
    bugfoot
    Jeffrey Wilcke
    @obscuren
    xD
    void4
    @void4

    I finally understand why Swarm is not as essential as I thought and can be added later as an addon.

    I have also been thinking more about APIs on Ethereum in general, and in the end it comes down to either having a middleware/gateway/proxy or programming language library implementing some standards on both the client and server side. Latter may be preferable because it includes no heavy dependencies (as is the case with Kong (Nginx+Cassandra)), but at some scale, load balancing for virtual services and fragile p2p links would have to be handled anyway.

    There are many open questions, for example how authentication (with HTTP Header signatures?) or payments are handled. Restricting payments to a subscription based model brings its own problems, for example users acting as proxies for others. With regards to an offchain SDL, https://openapis.org/ still looks promising, maybe it would make sense to add some custom identity fields and corresponding functionality to the server/client generator.

    I haven't created an API on a larger scale before. It all depends on the scale of the deployment, it certainly makes a difference whether a toaster or the entire Facebook API is behind it.

    void4
    @void4
    Why do I even think about this? Because I want to find a way to connect services and devices with each other that depend on networks, not logically centralised intermediaries. If I can find a way to add my room light to this system in a way that millions of others could as well, interesting things will happen.
    Péter Szilágyi
    @karalabe
    @void4 You might want to look into http://iris.karalabe.com/ ;) It was my PhD, but has a lot of considerations you're pondering about
    I abandoned the project a while ago sadly :(
    void4
    @void4
    Will do, thanks for the link!
    void4
    @void4
    Woah, interesting. That gives it an entirely new perspective. I have to read more of your papers.
    Guess what, they are using Swagger/OpenApis as well!
    Jeffrey Wilcke
    @obscuren
    Funny thing is, they aren't the first ;-)
    void4
    @void4
    :)
    As the OpenAPI spec also provides the host location, it doesn't matter where it is hosted. The service registry contract can store either its URL, its IPFS hash or IPNS name.
    In the first case, the file could provided under the host root (/swagger.yaml)
    Péter Szilágyi
    @karalabe
    I think this will be a nice thing to investigate after we're done with the second POC
    I already see that we need to be able to describe the schemas somehow in a more descriptive but integrated state
    void4
    @void4

    Thanks for your answer on ethereumprogramming :) Do you know of anyone else working on generalized API micropayments? Another subarea to investigate would be search. With service descriptor files, the API could include (externally signed/certified or selfmade) tags, but finding a service would still require iterating over the entire list. This might be an appropriate place to go meta and let the Google of tomorrow offer a service for search ;)

    I should look for datastructures that make finding ranges of values, signifying prices, positions etc. easier.

    void4
    @void4

    I just completed the first iteration of my API payment prototype in Python. I had to create web3.py first. This is sufficient on the server side: https://raw.githubusercontent.com/void4/paymentchannel/master/example.png

    The hug framework with the new extensions takes care of everything (documentation generation, signature validation and persistent storage). It also returns the 402 status code if no header was included, together with the payment path (e.g. pay://0xaccount/value).

    Jeffrey Wilcke
    @obscuren
    Does this connect to ether APIs ?
    Péter Szilágyi
    @karalabe
    @obscuren Pushed out a few stuff into etherapis at 6AM :|... might want to take a look (don't look at the commit, just try to find it ;) )
    Jeffrey Wilcke
    @obscuren
    Why so early? And will do
    Péter Szilágyi
    @karalabe
    late
    I took me till then to finish it
    ok, I also watched a 3 h movie at around midnight :P just was in the mood to finish it :))
    Jeffrey Wilcke
    @obscuren
    You haven't slept yet?
    Péter Szilágyi
    @karalabe
    yeah, I have :)
    pushed and went to bed :)
    Jeffrey Wilcke
    @obscuren
    Don't need many hours of sleep?
    Péter Szilágyi
    @karalabe
    I was in the zone :D
    Jeffrey Wilcke
    @obscuren
    Ah
    Péter Szilágyi
    @karalabe
    I do need sleep, bu tan occasional nighter can go in :)
    found a few annoyances with geth though
    so I'll need to do some code refactors in there too :P
    but not telling until you find it yourself what I'm taling about :))
    void4
    @void4
    @obscuren: Right now it does not, but I hope it can in the future when we have more common specifications.
    Rakesh
    @betheone5
    Just a question about this value proposition: Private: interacting peers are anonymous, communication is direct between them, no middleman
    Which protocol is used for communication?
    Jeffrey Wilcke
    @obscuren
    @betheone5 devp2p. It's our own (ethereum) p2p network