GithubHelp home page GithubHelp logo

payment-channel's Introduction

๐Ÿ‘‹

mattdf's github stats

payment-channel's People

Contributors

mattdf avatar shubhamtatvamasi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

payment-channel's Issues

Why require CloseChannel() to be called twice?

What is the rationale behind requiring CloseChannel() to be called twice (once with Bob's signature and once with Alice's signature)? Alice should be responsible for closing the channel so she would be the one to call CloseChannel() twice and pay the transaction fees. Why not have CloseChannel() take both signatures so it can be closed with one transaction? This would be clearer, cheaper and faster. I can't think of any advantage to having two transactions be required.

How is that possible that proof is the same hash as h ?

I dont understand how that code:
proof = sha3(this, value); if (proof != h) throw;
which seems to be equivalent to:
sha3(ContractAddress, value) == sha3(RadomAddress, value)
may works.

Could you add a unit test that call contract's CloseChannel function ?

Named variables?

Hi!
I think your example is one of the clearest... Yet, it would be helpful if you used more descriptive variable names in the method signature ;)

[HELP] Payment Channel Implementation for Dapp

Help please

Hi! I've been doing my research and I found this article Signing and Verifying Messages in Ethereum as well as this Ethereum Payment Channel in 50 Lines of Code and so far I haven't seen any implementation or tutorial about this.

My primary use of this smart contract is to pay transaction fees for the user in my Dapp. Is there an example of how to use the smart contract for a dapp?

Example: A simple ethereum dapp that writes a text on the blockchain but the creator of the contract pays for the transaction fees for a user that owns 0 ETH.

I really hope this is possible.

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.